/* ============================================================
   WEDORIA MOODBOARD — planches d'inspiration (2026-08)
   La planche est une mosaïque : les images gardent leur format
   d'origine (colonnes CSS), le chrome disparaît (actions au survol,
   légende en voile), et l'embed Pinterest n'est plus enfermé dans
   une deuxième carte — il EST la carte.
   Scope : .wd-mood (page planner ET portail couple).
   ============================================================ */

/* ── 0. Respiration propre à la planche ─────────────────────
   Le rythme d'en-tête est mutualisé avec le studio photo
   (studio.css §0) ; ici seul l'écart avant la mosaïque diffère. */
.wd-mood-body { margin-top: 2.4rem; }
@media (max-width: 767.98px) {
    .wd-mood-body { margin-top: 1.6rem; }
}

/* ── 1. La planche : mosaïque en colonnes ──────────────────── */
/* Le widget Pinterest ne descend pas sous ~236 px de large : le nombre
   de colonnes est calibré pour qu'une colonne reste plus large que ça,
   sinon l'embed déborde de sa tuile. */
.wd-mood-board {
    column-count: 4;
    column-gap: 20px;
    margin: 0;
}
.wd-mood-board--rail { column-count: 3; } /* colonne latérale : moins de place */

@media (max-width: 1399.98px) { .wd-mood-board { column-count: 3; } }
@media (max-width: 1199.98px) { .wd-mood-board--rail { column-count: 2; } }
/* Sous lg, le rail passe dessous : la planche récupère toute la largeur */
@media (max-width: 991.98px) {
    .wd-mood-board,
    .wd-mood-board--rail { column-count: 3; }
}
@media (max-width: 899.98px) {
    .wd-mood-board,
    .wd-mood-board--rail { column-count: 2; }
}
@media (max-width: 575.98px) {
    .wd-mood-board,
    .wd-mood-board--rail { column-gap: 12px; }
    /* Deux colonnes = trop étroit pour le widget : les pins prennent
       toute la largeur, les photos restent côte à côte */
    .wd-mtile--embed { column-span: all; }
}

/* ── 2. La tuile : l'image est la carte ────────────────────── */
.wd-mtile {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin: 0 0 20px;
    border-radius: 14px;
    overflow: hidden;
    background: #ECE8E1;
    box-shadow: var(--wd-shadow-soft);
    animation: wd-mtile-in 450ms var(--wd-ease) both;
    transition: box-shadow 300ms var(--wd-ease), transform 300ms var(--wd-ease);
}
.wd-mtile:hover { box-shadow: var(--wd-shadow-lift); }
@media (max-width: 767.98px) { .wd-mtile { margin-bottom: 12px; } }
@keyframes wd-mtile-in {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wd-mtile-media {
    position: relative;
    display: block;
    line-height: 0;
    overflow: hidden;
}
.wd-mtile-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 600ms var(--wd-ease);
}
.wd-mtile:hover .wd-mtile-img { transform: scale(1.035); }

/* ── 3. Embed Pinterest : le widget apporte sa propre carte ──
   pinit.js construit le pin DANS notre page (spans PIN_*, largeur
   fluide) : il vient avec son fond blanc, ses coins arrondis et son
   bouton « Enregistrer ». On ne l'habille donc PAS d'une deuxième
   carte — la tuile s'efface et laisse le widget être la carte. Le
   contrôleur `pinterest-embed` se contente de le révéler une fois
   construit, ou de basculer sur le lien source s'il ne vient pas. */
.wd-mtile--embed {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}
.wd-mtile--embed:hover { box-shadow: none; }
/* Le widget gère sa propre typo et son ombre : on lève le carcan
   (line-height: 0 / overflow: hidden) hérité des tuiles image */
.wd-mtile--embed .wd-mtile-media {
    overflow: visible;
    line-height: normal;
}
.wd-mtile-embed {
    position: relative;
    min-height: 190px;
}
/* Le widget n'est JAMAIS masqué en attendant notre JS : dès que pinit
   le construit, il s'affiche. Le voile d'attente est simplement DERRIÈRE
   lui (le widget a son propre fond blanc, il le recouvre). Sans ça, un
   pinit.js lent laissait la tuile vide jusqu'au rechargement de la page. */
.wd-mtile-embed-inner {
    display: block;
    position: relative;
    z-index: 1;
}
.wd-mtile-embed[data-fitted] { min-height: 0; }
/* Attente du rendu de l'embed : voile qui respire, pas un trou blanc */
.wd-mtile-embed:not([data-fitted])::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 14px;
    background: linear-gradient(100deg, #F1EDE6 30%, #F8F5EF 50%, #F1EDE6 70%);
    background-size: 300% 100%;
    animation: wd-mshimmer 1.5s ease-in-out infinite;
}
@keyframes wd-mshimmer {
    from { background-position: 130% 0; }
    to   { background-position: -30% 0; }
}
/* Embed jamais arrivé (script bloqué, pin supprimé) : repli lisible.
   Réversible — si le widget finit par se construire, le contrôleur
   retire data-failed et le repli disparaît. */
.wd-mtile-embed[data-failed]::after { display: none; }
.wd-mtile-embed[data-failed] { min-height: 0; }
/* Sélecteur descendant obligatoire : .wd-mtile-link, déclaré plus bas,
   remettrait display:flex à spécificité égale et le repli s'afficherait
   par-dessus l'embed rendu */
.wd-mtile-embed .wd-mtile-embed-fallback { display: none; }
.wd-mtile-embed[data-failed] .wd-mtile-embed-fallback { display: flex; }

/* Repli sans image : carte lien vers la source */
.wd-mtile-link {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.5rem 1.1rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--wd-shadow-soft);
    color: var(--ep-text-primary);
    text-decoration: none;
    line-height: 1.35;
}
.wd-mtile-link i.wd-mtile-link-ico {
    font-size: 1.4rem;
    color: #E60023;
}
.wd-mtile-link strong { font-size: 0.82rem; font-weight: 600; }
.wd-mtile-link small { font-size: 0.7rem; color: var(--ep-text-muted); word-break: break-all; }

/* ── 4. Actions : verre au survol, jamais au repos ─────────── */
.wd-mtile-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    display: flex;
    gap: 0.35rem;
}
.wd-mtile-actions form { display: contents; }
.wd-mtile-act {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(18, 18, 22, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 200ms var(--wd-ease), transform 200ms var(--wd-ease),
                background 200ms var(--wd-ease);
}
.wd-mtile-act:nth-of-type(2) { transition-delay: 25ms; }
.wd-mtile:hover .wd-mtile-act,
.wd-mtile:focus-within .wd-mtile-act {
    opacity: 1;
    transform: translateY(0);
}
.wd-mtile-act:hover {
    background: rgba(18, 18, 22, 0.78);
    color: #fff;
    transform: scale(1.07);
}
.wd-mtile-act:active { transform: scale(0.92); }
.wd-mtile-act-danger:hover { background: rgba(178, 90, 74, 0.88); }

/* ── 5. Chips d'état (repos) ↔ légende (survol) ────────────── */
.wd-mtile-chips {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    line-height: 1;
    transition: opacity 220ms var(--wd-ease);
}
.wd-mtile-chip {
    height: 21px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}
.wd-mtile-chip i { font-size: 0.68rem; }
.wd-mtile-chip.is-love i { color: #f2879a; }
.wd-mtile-chip.is-review i { color: #f0c07a; }
.wd-mtile-chip .txt {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Voile de légende : n'apparaît qu'au survol, laisse l'image parler */
.wd-mtile-veil {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 2.2rem 0.7rem 0.6rem;
    background: linear-gradient(transparent, rgba(10, 10, 13, 0.72));
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 240ms var(--wd-ease), transform 240ms var(--wd-ease);
}
.wd-mtile:hover .wd-mtile-veil,
.wd-mtile:focus-within .wd-mtile-veil { opacity: 1; transform: translateY(0); }
.wd-mtile:hover .wd-mtile-chips { opacity: 0; }
.wd-mtile-veil .cap {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wd-mtile-veil .note {
    display: block;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.68rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.86);
}

/* Le widget Pinterest occupe le coin haut-droit avec son bouton
   « Enregistrer » : nos actions passent à gauche pour ne pas le heurter,
   et la légende va sous la carte plutôt qu'en voile illisible */
.wd-mtile--embed .wd-mtile-veil { display: none; }
.wd-mtile--embed .wd-mtile-actions { right: auto; left: 0.5rem; }

/* Pied de tuile en lecture seule (portail couple sous un embed) */
.wd-mtile-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.25rem 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--ep-text-secondary);
}
/* Repli affiché : la carte lien porte déjà la légende, pas de doublon */
.wd-mtile--embed:has(.wd-mtile-embed[data-failed]) .wd-mtile-foot .cap { display: none; }
.wd-mtile-foot .cap {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 6. Portail couple : réactions posées sur l'image ──────── */
.wd-mreacts {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    z-index: 4;
    display: flex;
    gap: 0.3rem;
}
.wd-mreacts form { display: contents; }
.wd-mreact {
    height: 32px;
    min-width: 32px;
    padding: 0 9px;
    border: none;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 200ms var(--wd-ease), transform 200ms var(--wd-ease),
                color 200ms var(--wd-ease);
}
.wd-mreact:hover { background: rgba(18, 18, 22, 0.68); color: #fff; transform: scale(1.06); }
.wd-mreact:active { transform: scale(0.93); }
.wd-mreact.is-on {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}
.wd-mreact.is-on.wd-mreact--love { color: var(--ep-danger); }
.wd-mreact.is-on.wd-mreact--review { color: var(--ep-warning); }
.wd-mreact--love.is-on i { animation: wd-mheart 400ms var(--wd-ease); }
@keyframes wd-mheart {
    0% { transform: scale(1); }
    45% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
/* Sur un embed, les réactions passent sous la carte du widget : plus de
   verre sombre (il n'y a plus d'image dessous), des pastilles papier */
.wd-mtile--embed .wd-mreacts {
    position: static;
    padding: 0.5rem 0.25rem 0;
}
.wd-mtile--embed .wd-mreact {
    background: #fff;
    color: var(--ep-text-secondary);
    box-shadow: var(--wd-shadow-soft);
}
.wd-mtile--embed .wd-mreact:hover { background: #fff; color: var(--wd-onyx); }
.wd-mtile--embed .wd-mreact.is-on.wd-mreact--love { color: var(--ep-danger); }
.wd-mtile--embed .wd-mreact.is-on.wd-mreact--review { color: var(--ep-warning); }

/* ── Le mot du couple : ligne repliée, côté portail ──────────── */
.wd-mnote {
    background: #fff;
    border-top: 1px solid var(--wd-hairline);
}
/* Tuile sans chrome (embed) : la ligne devient sa propre carte */
.wd-mtile--embed .wd-mnote {
    margin-top: 0.45rem;
    border-top: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--wd-shadow-soft);
}
.wd-mnote > summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
    color: var(--ep-text-muted);
    cursor: pointer;
    list-style: none;
    transition: background 200ms var(--wd-ease), color 200ms var(--wd-ease);
}
.wd-mnote > summary::-webkit-details-marker { display: none; }
.wd-mnote > summary:hover { background: rgba(26, 26, 31, 0.03); color: var(--ep-text-primary); }
.wd-mnote > summary i { color: var(--wd-or-profond); font-size: 0.78rem; flex: none; }
.wd-mnote > summary .txt {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wd-mnote.has-note > summary { color: var(--ep-text-primary); font-style: italic; }
.wd-mnote[open] > summary { border-bottom: 1px solid var(--wd-hairline); }
.wd-mnote-body { padding: 0.55rem 0.65rem 0.65rem; }
.wd-mnote-body .form-control {
    font-size: 0.75rem;
    border-color: var(--wd-hairline-2);
}
.wd-mnote-body .btn {
    border-radius: 0 8px 8px 0 !important;
    background: var(--wd-onyx);
    border-color: var(--wd-onyx);
    color: var(--wd-ivoire);
}
.wd-mnote-body .btn:hover { background: var(--wd-onyx); color: var(--wd-ivoire); opacity: 0.92; }
.wd-mnote-body .input-group .form-control { border-radius: 8px 0 0 8px; }

/* ── La légende : une note sous un tirage, pas un champ ─────────
   Aucun cadre, aucun aplat : du texte sous l'image. Le crayon ne
   paraît qu'au survol de la tuile, l'édition se fait sur place. */
.wd-mcap {
    background: transparent;
    border: none;
}
.wd-mcap > summary {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.55rem 0.2rem 0.1rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ep-text-secondary);
    cursor: text;
    list-style: none;
    transition: color 200ms var(--wd-ease);
}
.wd-mcap > summary::-webkit-details-marker { display: none; }
.wd-mcap > summary:hover { color: var(--wd-onyx); }
.wd-mcap > summary .txt {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wd-mcap > summary i {
    flex: none;
    font-size: 0.68rem;
    color: var(--ep-text-muted);
    opacity: 0;
    transform: translateX(-2px);
    transition: opacity 200ms var(--wd-ease), transform 200ms var(--wd-ease);
}
.wd-mtile:hover .wd-mcap > summary i,
.wd-mcap > summary:hover i { opacity: 0.7; transform: translateX(0); }

/* Sans légende, l'invitation ne s'écrit qu'au survol : au repos,
   la planche n'affiche que les images */
.wd-mcap:not(.has-cap) > summary {
    font-style: italic;
    color: var(--ep-text-muted);
    opacity: 0;
    transition: opacity 220ms var(--wd-ease), color 200ms var(--wd-ease);
}
.wd-mtile:hover .wd-mcap:not(.has-cap) > summary,
.wd-mcap:not(.has-cap):focus-within > summary,
.wd-mcap[open]:not(.has-cap) > summary { opacity: 1; }

/* Édition sur place : le résumé s'efface, une ligne d'écriture le remplace */
.wd-mcap[open] > summary { display: none; }
.wd-mcap-form {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.2rem 0.1rem;
    border-bottom: 1px solid var(--wd-or-pale);
}
.wd-mcap-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--wd-onyx);
    outline: none;
}
.wd-mcap-input::placeholder { color: var(--ep-text-muted); font-style: italic; }
.wd-mcap-save {
    flex: none;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ep-text-muted);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms var(--wd-ease), color 200ms var(--wd-ease);
}
.wd-mcap-save:hover { background: rgba(26, 26, 31, 0.06); color: var(--wd-or-profond); }

/* ── 7. Tactile : pas de survol → tout reste accessible ────── */
@media (hover: none) {
    .wd-mtile-act { opacity: 1; transform: none; }
    .wd-mcap:not(.has-cap) > summary { opacity: 0.75; }
    .wd-mcap > summary i { opacity: 0.6; transform: none; }
    .wd-mtile-veil { display: none; }
    .wd-mtile-chips { opacity: 1 !important; }
}

/* ── 8. Planche vide : une invitation, pas un message d'erreur ── */
.wd-mood-blank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 3.2rem 1.5rem;
    border: 1.5px dashed var(--wd-hairline-2);
    border-radius: var(--wd-r-card);
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
}
.wd-mood-blank-ico {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wd-gold-wash);
    color: var(--wd-or-profond);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.wd-mood-blank strong { font-size: 1rem; font-weight: 600; }
.wd-mood-blank p {
    margin: 0;
    max-width: 46ch;
    font-size: 0.8rem;
    color: var(--ep-text-secondary);
}
.wd-mood-blank .btn { margin-top: 0.7rem; border-radius: 999px !important; }

/* ── 8 bis. Univers de la planche : palette et typographies ── */
.wd-muniverse {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 3.2rem;
    padding: 1.25rem 1.5rem;
    margin: 1.9rem 0 0;
    border-radius: var(--wd-r-card);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--wd-shadow-soft);
}
.wd-muni-label {
    margin: 0 0 0.7rem;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ep-text-secondary);
}
.wd-mswatches,
.wd-mtypos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    align-items: center;
}
.wd-mswatch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--ep-text-primary);
}
.wd-mswatch .dab {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(26, 26, 31, 0.1);
}
.wd-mswatch .txt { font-variant-numeric: tabular-nums; }
.wd-mtypo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.wd-mtypo .sample {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--wd-onyx);
}
.wd-mtypo .meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.wd-mtypo .meta strong { font-size: 0.74rem; font-weight: 600; }
.wd-mtypo .meta small { font-size: 0.66rem; color: var(--ep-text-muted); }

/* Aperçu de palette dans la carte de rail */
.wd-hub-dabs {
    flex: none;
    display: flex;
    gap: 2px;
    margin-left: auto;
}
.wd-hub-dabs span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(26, 26, 31, 0.12);
}

/* Panneau palette / typographies */
.wd-mpal-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.wd-mpal-row + .wd-mpal-row { border-top: 1px solid var(--wd-hairline); }
.wd-mpal-row:first-child { padding-top: 0.1rem; }
.wd-mpal-row:last-child { padding-bottom: 0.1rem; }
.wd-mpal-dab {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(26, 26, 31, 0.1);
}
.wd-mtypo-dab {
    flex: none;
    width: 30px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--wd-onyx);
}
.wd-mpal-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.wd-mpal-text strong { font-size: 0.78rem; font-weight: 600; }
.wd-mpal-text small { font-size: 0.68rem; color: var(--ep-text-muted); font-variant-numeric: tabular-nums; }
.wd-mpal-remove {
    flex: none;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ep-text-muted);
    font-size: 0.7rem;
    transition: background 200ms var(--wd-ease), color 200ms var(--wd-ease);
}
.wd-mpal-remove:hover { background: rgba(178, 90, 74, 0.1); color: var(--ep-danger); }

.wd-mpal-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.wd-mpal-suggest button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(26, 26, 31, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.96;
    transition: transform 200ms var(--wd-ease), box-shadow 200ms var(--wd-ease);
}
.wd-mpal-suggest button i {
    opacity: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    transition: opacity 180ms var(--wd-ease);
}
.wd-mpal-suggest button:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--wd-shadow-soft), inset 0 0 0 1px rgba(26, 26, 31, 0.12);
}
.wd-mpal-suggest button:hover i { opacity: 1; }

.wd-mpal-picker {
    flex: none;
    width: 42px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--wd-hairline-2);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

/* Choix de typographie : l'aperçu EST l'option */
.wd-mfont-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.4rem;
}
.wd-mfont-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 0.5rem 0.3rem 0.4rem;
    border: 1px solid var(--wd-hairline);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 200ms var(--wd-ease), box-shadow 200ms var(--wd-ease);
}
.wd-mfont-opt:hover { border-color: var(--wd-or-pale); }
.wd-mfont-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.wd-mfont-opt:has(input:checked) {
    border-color: var(--wd-or);
    box-shadow: 0 0 0 2px rgba(184, 154, 94, 0.22);
}
.wd-mfont-opt .sample {
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--wd-onyx);
}
.wd-mfont-opt .name {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ep-text-primary);
}
.wd-mfont-opt .cat { font-size: 0.58rem; color: var(--ep-text-muted); }

@media (max-width: 575.98px) {
    .wd-muniverse { gap: 0.9rem 1.4rem; padding: 0.8rem 0.9rem; }
    .wd-mtypo .sample { font-size: 1.2rem; }
}

/* ── 9. Index : la planche se présente par ses images ──────── */
.wd-mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}
.wd-mood-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--wd-r-card);
    overflow: hidden;
    background: var(--ep-bg-surface, #fff);
    box-shadow: var(--wd-shadow-soft);
    text-decoration: none;
    color: var(--ep-text-primary);
    transition: transform 280ms var(--wd-ease), box-shadow 280ms var(--wd-ease);
}
.wd-mood-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wd-shadow-lift);
    color: var(--ep-text-primary);
}
.wd-mood-cover {
    position: relative;
    display: grid;
    gap: 2px;
    aspect-ratio: 16 / 10;
    background: var(--wd-gold-wash);
    overflow: hidden;
}
.wd-mood-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms var(--wd-ease);
}
.wd-mood-card:hover .wd-mood-cover img { transform: scale(1.04); }
.wd-mood-cover--1 { grid-template-columns: 1fr; }
.wd-mood-cover--2 { grid-template-columns: 1fr 1fr; }
.wd-mood-cover--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.wd-mood-cover--3 > :first-child { grid-row: span 2; }
.wd-mood-cover--4 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.wd-mood-cover--4 > :first-child { grid-row: span 3; }
.wd-mood-cover--0 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wd-or-profond);
    font-size: 1.8rem;
}
.wd-mood-cover-count {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.wd-mood-card-body {
    padding: 0.8rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.wd-mood-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}
.wd-mood-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.7rem;
    font-size: 0.72rem;
    color: var(--ep-text-muted);
}
.wd-mood-card-meta .wd-dot { margin-right: 3px; }
.wd-mood-card-meta i { font-size: 0.75rem; }
.wd-mood-card-meta .love { color: var(--ep-danger); }

/* ── 10. Panneau « Ajouter » : les trois voies, une grammaire ── */
.wd-mood-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.2rem 1rem;
    border: 1.5px dashed var(--wd-hairline-2);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: background 220ms var(--wd-ease), border-color 220ms var(--wd-ease);
}
.wd-mood-drop:hover { border-color: var(--wd-or-pale); background: #FFFDF8; }
.wd-mood-drop i { font-size: 1.2rem; color: var(--wd-or-profond); }
.wd-mood-drop strong { font-size: 0.8rem; font-weight: 600; }
.wd-mood-drop small { font-size: 0.68rem; color: var(--ep-text-muted); }
/* Champ invisible mais focusable : en display:none, un input required
   bloque la soumission sans message (le navigateur ne peut pas le cibler) */
.wd-mood-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.wd-mood-drop.is-picked { border-color: var(--wd-or); background: var(--wd-gold-wash); }

/* Rail de la planche : cartes moins serrées que dans le studio photo */
.wd-mood .wd-studio-rail { gap: 0.75rem; }

/* Carte de rail sans contenu à ouvrir : présente mais éteinte */
.wd-mood .wd-hub-card:disabled { opacity: 0.55; cursor: default; }
.wd-mood .wd-hub-card:disabled:hover {
    transform: none;
    box-shadow: var(--wd-shadow-soft);
}

/* Retours du couple, en panneau */
.wd-mfeed {
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0;
}
.wd-mfeed + .wd-mfeed { border-top: 1px solid var(--wd-hairline); }
.wd-mfeed-thumb {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--wd-gold-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wd-or-profond);
    font-size: 0.9rem;
}
.wd-mfeed-text { min-width: 0; font-size: 0.75rem; }
.wd-mfeed-text strong {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
}
.wd-mfeed-text strong .bi-heart-fill { color: var(--ep-danger); }
.wd-mfeed-text strong .bi-arrow-repeat { color: var(--ep-warning); }
.wd-mfeed-text p {
    margin: 0.15rem 0 0;
    font-style: italic;
    color: var(--ep-text-secondary);
}
