/* =====================================================================
   Moteur de site autonome : apparence du MODE ÉDITION (/edition/)
   Rien ici ne s'applique aux visiteurs : tout est sous body.edition
   ou sur des éléments .ed-* créés seulement en édition.
   ===================================================================== */
:root { --ed-h: 64px; --ed-bleu: #2563eb; --ed-bleu-clair: #dbe7ff; --ed-vert: #16a34a; --ed-encre: #1f2937; }

body.edition { padding-top: var(--ed-h); }
body.edition header { top: var(--ed-h); }
body.edition section { scroll-margin-top: calc(84px + var(--ed-h)); }
body.edition .tuile span { opacity: 1; transform: none; }
body.edition .photos figure { cursor: default; }
body.edition [data-section] { position: relative; }

/* ---------- barre du haut ---------- */
.ed-barre { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px; background: var(--ed-encre); color: #fff; font: 14px/1.3 "Inter", system-ui, sans-serif; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.ed-gauche { display: flex; align-items: center; gap: 10px; }
.ed-logo { font-size: 24px; }
.ed-gauche b { display: block; font-size: 15px; }
.ed-statut { display: block; font-size: 12.5px; color: #a7f3d0; }
.ed-statut.ed-sauve { color: #fde68a; }
.ed-statut.ed-erreur { color: #fca5a5; font-weight: 600; }
.ed-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ed-actions button, .ed-actions a { font: 600 13px "Inter", system-ui, sans-serif; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; padding: 9px 12px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.ed-actions button:hover, .ed-actions a:hover { background: rgba(255,255,255,.2); }
.ed-actions .ed-publier { background: #4b5563; border-color: #4b5563; font-size: 14px; padding: 10px 18px; }
.ed-actions .ed-publier.ed-attente { background: var(--ed-vert); border-color: var(--ed-vert); animation: ed-pulse 2.2s infinite; }
@keyframes ed-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 50% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }

/* ---------- textes modifiables ---------- */
body.edition:not(.ed-apercu) .ed-txt { outline: 2px dashed rgba(37,99,235,.55); outline-offset: 3px; border-radius: 2px; cursor: text; transition: outline-color .15s, background .15s; }
body.edition:not(.ed-apercu) .ed-txt:hover { outline-color: var(--ed-bleu); background: rgba(219,231,255,.35); }
body.edition .ed-txt.ed-actif { outline: 3px solid var(--ed-bleu) !important; background: #fff !important; color: #111 !important; text-shadow: none !important; opacity: 1 !important; }

/* ---------- photos ---------- */
body.edition .ed-hote { position: relative; }
.ed-photo { position: absolute; top: 12px; right: 12px; z-index: 30; display: inline-flex; align-items: center; gap: 6px;
  font: 700 14px "Inter", system-ui, sans-serif; color: var(--ed-encre); background: #fff; border: 2px solid var(--ed-bleu); border-radius: 999px;
  padding: 9px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.28); cursor: pointer; text-transform: none; letter-spacing: 0; text-shadow: none; }
.ed-photo:hover { background: var(--ed-bleu); color: #fff; }
.marque .ed-photo, .photos .ed-photo { top: 8px; right: 8px; padding: 7px 11px; font-size: 13px; }
.marque .ed-photo span { display: none; }

/* ---------- liens ---------- */
.ed-lien { margin-left: 8px; font: 600 12px "Inter", system-ui, sans-serif; color: var(--ed-encre); background: #fff; border: 2px solid var(--ed-bleu); border-radius: 999px; padding: 4px 10px; cursor: pointer; }

/* ---------- listes ---------- */
body.edition .ed-item { position: relative; }
.ed-outils { position: absolute; top: 8px; left: 8px; z-index: 31; display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
  background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.25); font: 13px "Inter", system-ui, sans-serif; }
.ed-outils button, .ed-outils select { font: 600 14px "Inter", system-ui, sans-serif; color: var(--ed-encre); background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 7px;
  min-width: 36px; height: 36px; padding: 0 8px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ed-outils button:disabled { opacity: .35; cursor: default; }
.ed-outils .ed-danger { color: #b91c1c; }
/* outils visibles seulement au survol, pendant l'écriture, ou quand on a touché l'élément (téléphone) */
body.edition .ed-outils { opacity: 0; pointer-events: none; transition: opacity .15s; }
body.edition .ed-item:hover .ed-outils, body.edition .ed-item:focus-within .ed-outils, body.edition .ed-item.ed-choisi .ed-outils { opacity: 1; pointer-events: auto; }
body.edition .ed-item.ed-choisi { outline: 3px solid var(--ed-bleu); outline-offset: 2px; }
body.edition:not(.ed-apercu) .tuile .ed-txt, body.edition:not(.ed-apercu) .bandeau .ed-txt,
body.edition:not(.ed-apercu) .engagements .ed-txt, body.edition:not(.ed-apercu) .contact .ed-txt { outline-color: rgba(255,255,255,.75); }
tr .ed-outils { position: static; display: inline-flex; margin-left: 8px; box-shadow: none; padding: 0; background: transparent; }
.villes .ed-outils, .chiffre .ed-outils, .etape .ed-outils, .atout .ed-outils { top: auto; bottom: calc(100% + 4px); left: 0; }
.atout { position: relative; }
.ed-ajouter { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 14px 18px;
  font: 600 15px "Inter", system-ui, sans-serif; color: var(--ed-bleu); background: rgba(219,231,255,.55); border: 2px dashed var(--ed-bleu); border-radius: 10px; cursor: pointer; }
.ed-ajouter b { font-size: 16px; }
.ed-ajouter span { font-size: 13px; font-weight: 500; color: #475569; }
.ed-ajouter:hover { background: var(--ed-bleu-clair); }
.mosaique > .ed-ajouter, .grille > .ed-ajouter, .photos > .ed-ajouter, .avis > .ed-ajouter { min-height: 180px; }
.villes > .ed-ajouter { min-height: 0; padding: 6px 14px; border-radius: 999px; flex-direction: row; }
.horaires + .ed-ajouter, table + .ed-ajouter { margin-top: 12px; width: 100%; }
.ed-flash { animation: ed-flash 1.6s ease-out 2; }
@keyframes ed-flash { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.9); } 100% { box-shadow: 0 0 0 18px rgba(37,99,235,0); } }

/* ---------- sections ---------- */
.ed-section-bascule { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 32; font: 600 13px "Inter", system-ui, sans-serif;
  color: var(--ed-encre); background: #fff; border: 2px solid #d1d5db; border-radius: 999px; padding: 7px 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.ed-section-bascule.ed-off { border-color: #b91c1c; color: #b91c1c; }
body.edition:not(.ed-apercu) .ed-masquee { opacity: .45; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 12px, transparent 12px 24px); }
body.edition:not(.ed-apercu) .ed-masquee .ed-section-bascule { opacity: 1; }
.promo-bandeau .ed-section-bascule { position: relative; top: auto; left: auto; transform: none; display: block; margin: 0 auto; padding: 5px 12px; box-shadow: none; }
.ed-actions .ed-quitter { background: transparent; }
.ed-effet { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 32; font: 600 13px "Inter", system-ui, sans-serif; color: #fff;
  background: linear-gradient(90deg, #7c3aed, #db2777); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.promo-bandeau .ed-effet { position: relative; top: auto; left: auto; transform: none; padding: 5px 12px; box-shadow: none; }
body.edition .promo-bandeau { text-align: center; }
body.edition .promo-bandeau .ed-section-bascule, body.edition .promo-bandeau .ed-effet { display: inline-block; margin: 5px 4px 0; vertical-align: middle; }
.ed-effets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ed-effets button { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: 13px "Inter", system-ui, sans-serif; color: var(--ed-encre); }
.ed-effets button.on, .ed-effets button:hover { border-color: var(--ed-bleu); background: var(--ed-bleu-clair); }
.ed-effets button.on b::before { content: "✓ "; color: var(--ed-bleu); }
.ed-effets .fx-mini { margin-bottom: 4px; pointer-events: none; }
.ed-effets small { color: #6b7280; font-size: 12px; line-height: 1.3; }
.ed-fenetre:has(.ed-effets) { width: min(720px, 100%); }

/* ---------- mini barre pendant l'écriture ---------- */
.ed-mini { position: absolute; z-index: 1100; display: flex; gap: 6px; background: var(--ed-encre); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ed-mini button { font: 600 14px "Inter", system-ui, sans-serif; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 7px; padding: 9px 12px; cursor: pointer; }
.ed-mini .ed-ok { background: var(--ed-vert); }

/* ---------- aperçu : on cache tout l'outillage ---------- */
body.ed-apercu .ed-ui:not(.ed-barre):not(.ed-toasts):not(.ed-voile) { display: none !important; }

/* ---------- fenêtres ---------- */
.ed-voile { position: fixed; inset: 0; z-index: 2000; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 16px; font: 15px/1.5 "Inter", system-ui, sans-serif; color: var(--ed-encre); }
.ed-fenetre { background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ed-fenetre h3 { margin: 0 0 10px; font: 700 20px "Inter", system-ui, sans-serif; color: var(--ed-encre); }
.ed-fenetre p { margin: 0 0 12px; color: #374151; }
.ed-fenetre-boutons { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ed-fenetre-boutons button, .ed-bouton { font: 600 15px "Inter", system-ui, sans-serif; padding: 11px 18px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; color: var(--ed-encre); cursor: pointer; }
.ed-fenetre-boutons .ed-principal { background: var(--ed-bleu); border-color: var(--ed-bleu); color: #fff; }
.ed-champ { width: 100%; font: 16px "Inter", system-ui, sans-serif; padding: 12px; border: 2px solid #d1d5db; border-radius: 10px; }
.ed-champ:focus { outline: none; border-color: var(--ed-bleu); }
.ed-icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ed-icones button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; cursor: pointer; font: 12.5px "Inter", system-ui, sans-serif; color: var(--ed-encre); }
.ed-icones button.on, .ed-icones button:hover { border-color: var(--ed-bleu); background: var(--ed-bleu-clair); }
.ed-icones i { width: 36px; height: 36px; color: #374151; } .ed-icones svg { width: 100%; height: 100%; }
.ed-couleurs { display: grid; gap: 12px; }
.ed-couleurs label { display: flex; align-items: center; gap: 14px; padding: 12px; border: 2px solid #e5e7eb; border-radius: 12px; cursor: pointer; }
.ed-couleurs input[type=color] { width: 56px; height: 56px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.ed-couleurs b { display: block; font-size: 15px; } .ed-couleurs span { font-size: 13.5px; color: #4b5563; }
.ed-astuce { font-size: 13.5px; color: #4b5563 !important; margin-top: 12px !important; }
.ed-logo-ligne { display: flex; align-items: center; gap: 14px; padding: 12px; border: 2px solid #e5e7eb; border-radius: 12px; }
.ed-logo-ligne img { height: 56px; width: auto; }
.ed-historique { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ed-historique li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; flex-wrap: wrap; }
.ed-historique em { color: var(--ed-vert); font-style: normal; font-weight: 600; }
.ed-guide { text-align: center; padding: 6px 4px 0; }
.ed-guide-ic { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.ed-guide h3 { font-size: 21px; }
.ed-points { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ed-points i { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; } .ed-points i.on { background: var(--ed-bleu); }

/* ---------- attente + messages ---------- */
.ed-attente-voile { background: rgba(255,255,255,.6); }
.ed-sablier { display: flex; align-items: center; gap: 12px; background: var(--ed-encre); color: #fff; padding: 16px 22px; border-radius: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.ed-sablier i { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: ed-tourne .8s linear infinite; }
@keyframes ed-tourne { to { transform: rotate(360deg); } }
.ed-toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; width: min(560px, calc(100% - 24px)); }
.ed-toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ed-encre); color: #fff; padding: 13px 16px; border-radius: 12px;
  font: 600 14.5px "Inter", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: opacity .4s, transform .4s; }
.ed-toast button { flex: none; font: 700 14px "Inter", system-ui, sans-serif; color: #fde68a; background: transparent; border: 1px solid rgba(253,230,138,.5); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.ed-toast.ed-sort { opacity: 0; transform: translateY(8px); }

@media (max-width: 760px) {
  .ed-actions button span, .ed-actions a span { display: none; }
  .ed-actions .ed-publier span, .ed-actions .ed-quitter span { display: inline; }
  .ed-photo span { display: none; }
  .ed-photo { padding: 10px 12px; font-size: 18px; }
  .ed-section-bascule span { font-size: 12px; }
}

/* ---------- barre : pastille des demandes ---------- */
.ed-actions button { position: relative; }
.ed-pastille { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff;
  font: 700 11.5px/20px "Inter", system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--ed-encre); }

/* ---------- fenêtres larges, onglets ---------- */
.ed-voile.ed-large .ed-fenetre { width: min(760px, 100%); }
.ed-onglets { display: flex; gap: 6px; background: #f3f4f6; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.ed-onglets button { flex: 1; font: 600 14px "Inter", system-ui, sans-serif; border: 0; background: transparent; padding: 10px; border-radius: 9px; cursor: pointer; color: #4b5563; }
.ed-onglets button.on { background: #fff; color: var(--ed-encre); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ed-vide { text-align: center; padding: 30px 10px; color: #6b7280; }
.ed-bouton.ed-vert { background: var(--ed-vert); border-color: var(--ed-vert); color: #fff; }
.ed-bouton.ed-danger { color: #b91c1c; }
a.ed-bouton { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- réglages ---------- */
.ed-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ed-tuiles button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 2px solid #e5e7eb; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: 14px "Inter", system-ui, sans-serif; color: var(--ed-encre); }
.ed-tuiles button:hover { border-color: var(--ed-bleu); background: var(--ed-bleu-clair); }
.ed-tuiles i { font-style: normal; font-size: 28px; }
.ed-tuiles small { color: #6b7280; font-size: 12.5px; line-height: 1.35; }

/* ---------- Google ---------- */
.ed-google { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 16px; font-family: Arial, sans-serif; background: #fff; }
.ed-google-site { display: flex; align-items: center; gap: 10px; }
.ed-google-site img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; }
.ed-google-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; }
.ed-google-site small { font-size: 12px; color: #4d5156; }
.ed-google h4 { margin: 8px 0 4px; font: 400 20px/1.3 Arial, sans-serif; color: #1a0dab; }
.ed-google p { margin: 0; font-size: 14px; line-height: 1.55; color: #4d5156; }
.ed-etiquette { display: grid; gap: 6px; margin-bottom: 12px; }
.ed-etiquette small { font-size: 12.5px; }
.ed-etiquette textarea { resize: vertical; }
.ed-bien { color: var(--ed-vert); } .ed-attention { color: #b45309; }

/* ---------- dates ---------- */
.ed-dates { position: absolute; top: 102px; left: 50%; transform: translateX(-50%); z-index: 32; font: 600 13px "Inter", system-ui, sans-serif; color: var(--ed-encre);
  background: #fff; border: 2px solid var(--ed-vert); border-radius: 999px; padding: 7px 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.ed-dates.ed-off { border-color: #b91c1c; color: #b91c1c; }
.promo-bandeau .ed-dates { position: relative; top: auto; left: auto; transform: none; padding: 5px 12px; box-shadow: none; }
body.edition .promo-bandeau .ed-dates { display: inline-block; margin: 5px 4px 0; vertical-align: middle; }
body.edition:not(.ed-apercu) .ed-hors-dates { opacity: .5; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 12px, transparent 12px 24px); }
body.edition:not(.ed-apercu) .ed-hors-dates > .ed-ui { opacity: 1; }
.ed-dates-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ed-dates-champs label { display: grid; gap: 6px; }
.ed-coche { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid #e5e7eb; border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.ed-coche input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ed-bleu); }
.ed-coche b { display: block; } .ed-coche span { font-size: 13.5px; color: #4b5563; }
.ed-etat { background: #f3f4f6; padding: 10px 12px; border-radius: 10px; margin: 6px 0 0 !important; }

/* ---------- cadrage ---------- */
.ed-photo.ed-cadrer { top: 60px; }
.marque .ed-photo.ed-cadrer, .photos .ed-photo.ed-cadrer { top: 48px; }
.ed-cadrage { position: relative; display: block; width: fit-content; margin: 0 auto; cursor: crosshair; border-radius: 8px; overflow: hidden; }
.ed-cadrage img { display: block; max-width: 100%; max-height: 55vh; }
.ed-viseur { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px var(--ed-bleu), 0 0 0 9999px rgba(0,0,0,.25); pointer-events: none; transition: left .15s, top .15s; }

/* ---------- téléphone ---------- */
.ed-tel-voile { flex-direction: column; }
.ed-tel-boite { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ed-tel-haut { display: flex; align-items: center; gap: 16px; background: #fff; padding: 10px 12px 10px 18px; border-radius: 14px; }
.ed-tel-haut small { display: block; font-size: 12.5px; color: #6b7280; }
.ed-tel-place { position: relative; }
.ed-tel { position: absolute; top: 0; left: 0; width: 414px; height: 832px; transform-origin: top left; background: #111; border-radius: 46px; padding: 14px 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 2px #333; }
.ed-tel iframe { width: 390px; height: 804px; border: 0; border-radius: 34px; background: #fff; display: block; }

/* ---------- demandes ---------- */
.ed-demandes { display: grid; gap: 12px; }
.ed-demande { border: 2px solid #e5e7eb; border-radius: 14px; padding: 14px 16px; background: #fff; }
.ed-demande.ed-faite { opacity: .75; }
.ed-demande-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-demande-tete b { font-size: 17px; } .ed-demande-tete small { color: #6b7280; }
.ed-demande-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-demande-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 !important; }
.ed-demande-tags span { background: #f3f4f6; padding: 4px 10px; border-radius: 999px; font-size: 13.5px; }
.ed-demande-msg { white-space: pre-wrap; background: #f9fafb; border-left: 3px solid var(--ed-bleu); padding: 10px 12px; margin: 10px 0 0 !important; border-radius: 0 8px 8px 0; }
.ed-demande-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ed-demande-photos img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; display: block; }
.ed-demande-pied { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- statistiques ---------- */
.ed-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ed-stats div { border: 2px solid #e5e7eb; border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.ed-stats i { font-style: normal; font-size: 22px; }
.ed-stats b { font-size: 28px; line-height: 1.1; color: var(--ed-encre); }
.ed-stats span { font-size: 12.5px; color: #4b5563; }
.ed-sous-titre { margin: 18px 0 8px; font: 700 15px "Inter", system-ui, sans-serif; }
.ed-graphe { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; }
.ed-graphe div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.ed-graphe i { width: 100%; background: var(--ed-bleu); border-radius: 4px 4px 0 0; min-height: 2px; }
.ed-graphe small { position: absolute; bottom: -18px; font-size: 11px; color: #6b7280; }

@media (max-width: 760px) {
  .ed-dates span { font-size: 12px; }
  .ed-dates-champs { grid-template-columns: 1fr; }
  .ed-photo.ed-cadrer { top: 62px; }
}
/* sections avec plusieurs pastilles (visible / effet / dates) : de la place au-dessus */
body.edition:not(.ed-apercu) section[data-effet], body.edition:not(.ed-apercu) section[data-planning] { padding-top: 160px; }

/* à valider */
.ed-suivi{background:#fff;border:1px solid #e5e7eb;border-left:4px solid #f59e0b;border-radius:12px;padding:14px 16px;display:grid;gap:10px}
.ed-suivi.ed-repondu{border-left-color:#16a34a}
.ed-suivi p{margin:0;line-height:1.5;color:#374151}
.ed-suivi .ed-demande-tete small{color:#16a34a;font-weight:600}
.ed-suivi-choix{display:flex;flex-wrap:wrap;gap:8px}
.ed-suivi-choix .ed-bouton.on{background:#16a34a;border-color:#16a34a;color:#fff}
.ed-suivi textarea{width:100%;box-sizing:border-box;font:inherit;font-size:14px;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;resize:vertical}
.ed-suivi-intro{margin:0 0 6px}
.ed-suivi-reste{margin:0 0 12px;color:#b45309}

/* =====================================================================
   Mode édition plus propre (18/10) : moins de bruit, rien qui se chevauche
   ===================================================================== */
/* barre : sur écran moyen, les boutons secondaires n'affichent que leur icône */
@media (max-width: 1280px) and (min-width: 761px) {
  .ed-barre { flex-wrap: nowrap; padding: 6px 12px; }
  .ed-gauche b { font-size: 14px; }
  .ed-actions { flex-wrap: nowrap; }
  .ed-actions button:not(.ed-publier) span, .ed-actions a span { display: none; }
  .ed-actions button, .ed-actions a { padding: 8px 10px; min-height: 38px; }
}
/* pointillés : discrets au repos, nets au survol */
body.edition:not(.ed-apercu) .ed-txt { outline: 1px dashed rgba(37,99,235,.35); outline-offset: 3px; }
body.edition:not(.ed-apercu) .ed-txt:hover { outline: 2px dashed var(--ed-bleu); }
body.edition:not(.ed-apercu) .tuile .ed-txt, body.edition:not(.ed-apercu) .bandeau .ed-txt,
body.edition:not(.ed-apercu) .engagements .ed-txt, body.edition:not(.ed-apercu) .contact .ed-txt { outline-color: rgba(255,255,255,.4); }
/* boutons photo : ronds et compacts dans les éléments d'une liste (tuiles, galerie) */
body.edition .ed-item > .ed-photo, body.edition .ed-item .ed-photo { padding: 0; width: 36px; height: 36px; justify-content: center; font-size: 16px; top: 8px; right: 8px; border-width: 1.5px; }
body.edition .ed-item .ed-photo span { display: none; }
body.edition .ed-item .ed-photo.ed-cadrer { top: 50px; }
/* sur ordinateur : ces boutons n'apparaissent qu'au survol de l'élément */
@media (hover: hover) {
  body.edition .ed-item .ed-photo { opacity: 0; transition: opacity .15s; }
  body.edition .ed-item:hover .ed-photo, body.edition .ed-item:focus-within .ed-photo, body.edition .ed-item.ed-choisi .ed-photo { opacity: 1; }
}
/* pastilles de section plus petites */
.ed-section-bascule, .ed-effet, .ed-dates { font-size: 12.5px !important; padding: 5px 11px !important; }
.ed-effet { top: 46px; } .ed-dates { top: 82px; }
body.edition:not(.ed-apercu) section[data-effet], body.edition:not(.ed-apercu) section[data-planning] { padding-top: 128px; }
/* les boutons d'édition passent sous l'en-tête collant du site pendant le défilement */
body.edition .ed-photo, body.edition .ed-outils, body.edition .ed-section-bascule, body.edition .ed-effet, body.edition .ed-dates { z-index: 15; }
body.edition header .ed-photo, body.edition header .ed-outils, body.edition header .ed-section-bascule, body.edition header .ed-effet, body.edition header .ed-dates { z-index: 41; }
/* bandeau promo collé en haut : ses pastilles n'apparaissent qu'au survol (ordinateur), pour garder un en-tête fin */
@media (hover: hover) {
  body.edition .promo-bandeau .ed-section-bascule, body.edition .promo-bandeau .ed-effet, body.edition .promo-bandeau .ed-dates { display: none; }
  body.edition .promo-bandeau:hover .ed-section-bascule, body.edition .promo-bandeau:hover .ed-effet, body.edition .promo-bandeau:hover .ed-dates,
  body.edition .promo-bandeau:focus-within .ed-section-bascule, body.edition .promo-bandeau:focus-within .ed-effet, body.edition .promo-bandeau:focus-within .ed-dates { display: inline-block; }
  body.edition .promo-bandeau.ed-masquee .ed-section-bascule { display: inline-block; }
}
