/* Composants d’importation — identité visuelle Ma Bibliothèque de Recettes */
.import-modal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3d352b;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.05;
}
.import-modal-brand small {
    display: block;
    margin-top: 4px;
    color: #7d8a70;
    font: 700 9px/1.2 Arial, sans-serif;
    letter-spacing: .18em;
}
.import-modal-logo {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.import-modal-title {
    margin: 18px 0 8px;
    color: #3d352b;
    font: 600 clamp(22px,3vw,29px)/1.2 "Playfair Display", Georgia, serif;
}
.import-choice-panel { width: min(900px,100%); }
.import-choice-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.import-choice-option {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 16px;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 104px;
    padding: 17px;
    border: 1px solid #e6dccb;
    border-radius: 15px;
    background: #fff;
    color: #3d352b;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.import-choice-option:hover,.import-choice-option:focus-visible {
    border-color: #7d8a70;
    background: #f8f8f1;
    box-shadow: 0 7px 20px #52674718;
    transform: translateY(-1px);
}
.import-choice-option > span:nth-child(2) { display: grid; gap: 6px; }
.import-choice-option strong { color: #3d352b; font-size: 15px; }
.import-choice-option small { color: #766b5e; font-size: 13px; line-height: 1.4; }
.import-choice-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: #e9eddf;
    color: #536b49;
    font: 700 27px/1 Georgia,serif;
}
.import-choice-arrow { color: #7d8a70; font-size: 27px; text-align: right; }
.word-import-panel {
    display: flex;
    flex-direction: column;
    width: min(900px,100%);
    max-height: min(92vh,900px);
    overflow: hidden;
    padding-bottom: 0;
}
.word-import-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 2px 18px 0; }
.word-import-panel .manual-import-header { flex: 0 0 auto; padding-bottom: 4px; }
.word-import-panel .import-modal-title { margin-top: 10px; }
.word-import-panel .manual-import-form { margin-top: 16px; }
.word-import-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin: 0 -34px;
    padding: 14px 34px 20px;
    border-top: 1px solid #e9e0d3;
    background: #fffdf8;
    box-shadow: 0 -8px 18px #3d352b0a;
}
.word-import-footer[hidden] { display: none; }
.word-import-footer .manual-import-primary { min-width: 230px; }
@media (max-width: 700px) {
    .import-choice-options { grid-template-columns: 1fr; }
    .import-choice-option { min-height: 82px; }
    .word-import-footer { margin: 0 -20px; padding: 12px 20px 16px; }
    .word-import-footer .manual-import-primary { min-width: 0; flex: 1; }
}

/* État d'analyse : aucun panneau vide avant la réussite de l'extraction. */
.word-import-status[hidden] { display: none; }
.word-import-status { margin: 16px 0 0; }
.word-import-footer { justify-content: stretch; }
.word-import-footer .manual-import-primary { width: 100%; min-width: 0; }


.word-import-preview {
    margin: 22px 0 4px;
    padding: 20px;
    border: 1px solid #e9e0d3;
    border-radius: 14px;
    background: #fff;
}
.word-import-preview[hidden] { display: none; }
.word-import-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.word-import-preview-heading h3 {
    margin: 0;
    color: #3d352b;
    font: 600 22px/1.25 "Playfair Display", Georgia, serif;
    overflow-wrap: anywhere;
}
.word-import-preview-heading > span {
    flex: 0 0 auto;
    color: #7d8a70;
    font: 700 9px/1.4 Arial, sans-serif;
    letter-spacing: .12em;
}
.word-import-preview-image {
    display: block;
    width: 100%;
    max-height: 300px;
    margin: 0 0 16px;
    border-radius: 11px;
    object-fit: cover;
}
.word-import-preview-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(105px,1fr));
    gap: 9px;
    margin: 14px 0 20px;
}
.word-import-preview-meta > span {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f4ec;
}
.word-import-preview-meta strong { color: #3d352b; font-size: 15px; }
.word-import-preview-meta small { color: #807361; font-size: 11px; }
.word-import-preview-section { margin-top: 18px; }
.word-import-preview-section h4 {
    margin: 0 0 9px;
    color: #536b49;
    font: 600 17px/1.3 "Playfair Display", Georgia, serif;
}
.word-import-preview-section ul,
.word-import-preview-section ol {
    margin: 0;
    padding-left: 23px;
    color: #51483d;
    line-height: 1.65;
}
.word-import-preview-section li { padding-left: 4px; margin: 0 0 6px; }
@media (max-width: 560px) {
    .word-import-preview { padding: 15px; }
    .word-import-preview-heading { display: block; }
    .word-import-preview-heading > span { display: block; margin-top: 6px; }
}
