/* Monde-Du-Vélo — éditeur de texte riche maison */
.ed-cadre { border: 1px solid #c9ced6; border-radius: 6px; background: #fff; max-width: 100%; overflow: hidden; }
.ed-cadre:focus-within { border-color: #1c154e; box-shadow: 0 0 0 3px rgba(28, 21, 78, .12); }
.ed-barre { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f3f5f8; border-bottom: 1px solid #e1e5eb; position: sticky; top: 0; z-index: 2; }
/* « .ed-cadre .ed-btn » : plus précis que les règles génériques « button » du site (marges, fond bleu au survol) */
.ed-cadre .ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 32px; width: auto; height: 32px; margin: 0; padding: 0 8px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; color: #1c154e; font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.ed-cadre .ed-btn .fa { font-size: 15px; }
.ed-cadre .ed-btn small { font-size: 10px; font-weight: 700; margin-top: 6px; }
.ed-cadre .ed-btn:hover, .ed-cadre .ed-btn:focus-visible { background: #fff; border-color: #c9ced6; box-shadow: none; color: #1c154e; outline: none; }
.ed-cadre .ed-btn.actif { background: #c6e74f; }
.ed-sep { width: 1px; margin: 4px 4px; background: #d5dae1; }
.ed-zone { padding: 12px 14px; outline: none; font: 15px/1.6 Roboto, Arial, sans-serif; color: #222; overflow-y: auto; max-height: 70vh; }
.ed-zone p { margin: 0 0 .8em; }
.ed-zone h2, .ed-zone h3 { margin: .8em 0 .4em; line-height: 1.25; }
.ed-zone img { max-width: 100%; height: auto; }
.ed-zone blockquote { margin: .5em 0; padding: .3em 1em; border-left: 4px solid #c6e74f; color: #444; }
.ed-zone a { color: #1a5fb4; }
.ed-cadre textarea { width: 100%; box-sizing: border-box; border: 0; padding: 12px 14px; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.ed-mode-source .ed-btn:not(:last-child) { opacity: .35; pointer-events: none; }
.ed-envoi { opacity: .6; cursor: progress; }

/* Boîte de dialogue « Produits affiliés » */
.ed-dialogue { width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(28, 21, 78, .35); color: #1c154e; font: 15px/1.45 system-ui, sans-serif; }
.ed-dialogue::backdrop { background: rgba(28, 21, 78, .5); }
.ed-dlg-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.ed-dlg-tete { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.ed-dlg-tete .fa { color: #9ab92f; }
.ed-dialogue .ed-dlg-fermer { width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #ebe7f7; color: #1c154e; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: none; }
.ed-onglets { display: flex; gap: 6px; border-bottom: 1px solid #e1e5eb; }
.ed-dialogue .ed-onglet { margin: 0 0 -1px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px 8px 0 0; background: none; color: #555; font: 600 .92rem system-ui, sans-serif; cursor: pointer; box-shadow: none; }
.ed-dialogue .ed-onglet.actif { background: #fff; border-color: #e1e5eb; border-bottom-color: #fff; color: #1c154e; }
.ed-dialogue .ed-onglet:hover { background: #f4f6f9; box-shadow: none; }
.ed-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ed-dialogue label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .88rem; }
.ed-dialogue .ed-large { grid-column: 1 / -1; }
.ed-dialogue input, .ed-dialogue select { height: 38px; padding: 0 10px; border: 1px solid #c9ced6; border-radius: 6px; font: 400 .95rem system-ui, sans-serif; color: #1c154e; background: #fff; }
.ed-apercu { width: 100%; height: 380px; margin-top: 10px; border: 1px solid #e1e5eb; border-radius: 8px; background: #f4f6f9; }
.ed-resultats { list-style: none; margin: 10px 0 0; padding: 0; max-height: 420px; overflow-y: auto; display: grid; gap: 6px; }
.ed-resultats .ed-vide { color: #6b7280; padding: 10px; }
.ed-dialogue .ed-resultats button { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; margin: 0; padding: 6px 10px; border: 1px solid #e1e5eb; border-radius: 8px; background: #fff; color: #1c154e; text-align: left; font: inherit; cursor: pointer; box-shadow: none; }
.ed-dialogue .ed-resultats button:hover { border-color: #1c154e; background: #f8f7fd; box-shadow: none; }
.ed-dialogue .ed-resultats button.choisi { border-color: #9ab92f; background: #f3f9df; box-shadow: inset 0 0 0 1px #9ab92f; }
.ed-resultats img, .ed-sans-img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #f4f6f9; }
.ed-resultats strong { display: block; font-size: .9rem; font-weight: 600; }
.ed-resultats small { color: #6b7280; font-size: .78rem; }
.ed-resultats b { white-space: nowrap; }
.ed-dlg-pied { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #e1e5eb; }
.ed-code { padding: 6px 10px; border-radius: 6px; background: #f4f6f9; font-size: .82rem; overflow-wrap: anywhere; flex: 1 1 300px; }
.ed-dialogue .ed-inserer { margin: 0; padding: 10px 18px; border: 0; border-radius: 8px; background: #1c154e; color: #fff; font: 600 .95rem system-ui, sans-serif; cursor: pointer; box-shadow: none; }
.ed-dialogue .ed-inserer:hover { background: #c6e74f; color: #1c154e; box-shadow: none; }
.ed-dialogue .ed-inserer:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .ed-grille { grid-template-columns: 1fr; } }
