/* Éditeur de Rainette Tattoo : un écran simple, gros boutons, une seule action à la fois. */
.ed { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #fdf3f8; color: #23122f; color-scheme: light; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.5; padding-top: env(safe-area-inset-top, 0px); }
.ed [hidden] { display: none !important; }
.ed-ouvert { overflow: hidden; }
.ed-ouvert .guide, .ed-apercu .guide { display: none !important; }
.ed button, .ed input, .ed select, .ed textarea { font: inherit; }
.ed input, .ed select, .ed textarea { color: inherit; }
.ed :focus-visible { outline: 3px solid #5b3f8c; outline-offset: 2px; border-radius: 10px; }

.ed-barre { flex: none; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem max(1rem, env(safe-area-inset-right, 0px)) 0.7rem max(1rem, env(safe-area-inset-left, 0px)); background: #23122f; color: #fff; }
.ed-barre h2 { flex: 1; min-width: 0; margin: 0; font-family: "Bangers", "Impact", sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: 0.03em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-barre button { flex: none; min-height: 2.75rem; padding: 0.4rem 0.95rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-weight: 800; font-size: 0.95rem; cursor: pointer; }
.ed-barre .ed-voir { background: #fff; color: #23122f; border-color: #fff; }

.ed-corps { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ed-page { width: 100%; max-width: 46rem; margin: 0 auto; padding: 1.4rem max(1rem, env(safe-area-inset-right, 0px)) 2.5rem max(1rem, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 1.1rem; }
.ed-page h3 { margin: 0; font-family: "Bangers", "Impact", sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: 0.02em; line-height: 1.1; }
.ed-page h4 { margin: 0.6rem 0 0; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #5b3f8c; }
.ed-page p { margin: 0; }
.ed-doux { color: #5d4a6c; font-weight: 600; }

.ed-mode { padding: 0.75rem 1rem; border-radius: 14px; background: #fff; border: 2px solid #e6d5ef; font-weight: 600; font-size: 0.95rem; }
.ed-mode b { font-weight: 800; }

.ed-menu { display: grid; gap: 0.7rem; }
@media (min-width: 620px) { .ed-menu { grid-template-columns: 1fr 1fr; } }
.ed-carte { display: flex; flex-direction: column; gap: 0.15rem; text-align: left; min-height: 5rem; padding: 0.95rem 1.1rem; border-radius: 18px; border: 2px solid #e6d5ef; background: #fff; cursor: pointer; box-shadow: 0 2px 0 #e6d5ef; }
.ed-carte b { font-size: 1.15rem; font-weight: 800; }
.ed-carte span { color: #5d4a6c; font-weight: 600; font-size: 0.95rem; }
.ed-carte em { align-self: flex-start; margin-top: 0.35rem; font-style: normal; font-weight: 800; font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: #c40f27; color: #fff; }
.ed-carte:active { transform: translateY(2px); box-shadow: none; }

.ed-conseil { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: 18px; background: #efe3ff; }
.ed-conseil__tete { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #050203; border: 3px solid #fff; overflow: hidden; }
.ed-conseil__tete img { width: 172%; max-width: none; height: auto; margin: -8% 0 0 -30%; display: block; }
.ed-conseil p { font-weight: 600; }
.ed-conseil b { display: block; font-weight: 800; color: #5b3f8c; }

.ed-champ { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem; border-radius: 16px; background: #fff; border: 2px solid #e6d5ef; }
.ed-champ.modifie { border-color: #5b3f8c; }
.ed-champ label, .ed-champ legend { font-weight: 800; padding: 0; }
.ed-champ :is(input[type="text"], input[type="url"], input[type="date"], select, textarea) { width: 100%; min-width: 0; min-height: 3rem; padding: 0.65rem 0.8rem; border-radius: 12px; border: 2px solid #cdbbd9; background: #fffdfe; }
.ed-champ textarea { min-height: 6.5rem; resize: vertical; }
.ed-champ__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem; font-size: 0.88rem; font-weight: 600; color: #5d4a6c; }
.ed-lien { padding: 0.35rem 0; border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 0.9rem; color: #5b3f8c; text-decoration: underline; text-underline-offset: 0.2em; }
.ed-aide { font-size: 0.9rem; font-weight: 600; color: #5d4a6c; }
.ed-erreur { font-weight: 800; font-size: 0.92rem; color: #a80d20; }
fieldset.ed-champ { margin: 0; min-width: 0; }
.ed-choix { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ed-choix label { position: relative; cursor: pointer; }
.ed-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-choix span { display: block; min-height: 2.75rem; padding: 0.55rem 1rem; border-radius: 999px; border: 2px solid #cdbbd9; background: #fffdfe; font-weight: 800; font-size: 0.95rem; }
.ed-choix input:checked + span { background: #5b3f8c; border-color: #5b3f8c; color: #fff; }
.ed-choix input:focus-visible + span { outline: 3px solid #5b3f8c; outline-offset: 2px; }
.ed-case { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; cursor: pointer; }
.ed-case input { width: 1.5rem; height: 1.5rem; accent-color: #5b3f8c; flex: none; }

.ed .ed-bouton, .ed-bandeau .ed-bouton { color: #fff; }
.ed .ed-bouton--clair, .ed-bandeau .ed-bouton--clair { color: #23122f; }
.ed-bouton { min-height: 3.25rem; padding: 0.7rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer; background: #5b3f8c; color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 #3d2864; }
.ed-bouton:active { transform: translateY(2px); box-shadow: 0 1px 0 #3d2864; }
.ed-bouton--rouge { background: #c40f27; box-shadow: 0 3px 0 #8f0a1b; }
.ed-bouton--clair { background: #fff; color: #23122f; border: 2px solid #cdbbd9; box-shadow: none; }
.ed-bouton[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.ed-rang { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.ed-evt { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem; border-radius: 18px; background: #fff; border: 2px solid #e6d5ef; }
.ed-evt__img { flex: none; width: 4.6rem; height: 6rem; border-radius: 10px; object-fit: cover; background: #efe3ff; }
.ed-evt__vide { flex: none; width: 4.6rem; height: 6rem; border-radius: 10px; background: #efe3ff; display: grid; place-items: center; text-align: center; font-size: 0.72rem; font-weight: 800; color: #5b3f8c; padding: 0.3rem; }
.ed-evt__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ed-evt__txt b { font-weight: 800; font-size: 1.08rem; overflow-wrap: anywhere; }
.ed-evt__txt span { font-weight: 600; color: #5d4a6c; font-size: 0.95rem; }
.ed-puce { align-self: flex-start; font-size: 0.78rem; font-weight: 800; padding: 0.12rem 0.6rem; border-radius: 999px; background: #dff3e4; color: #14532d; }
.ed-puce--passee { background: #ece6f0; color: #5d4a6c; }
.ed-puce--attention { background: #ffe8c7; color: #7a4100; }
.ed-evt .ed-rang { margin-top: 0.45rem; }
.ed-evt .ed-bouton { min-height: 2.75rem; padding: 0.4rem 1rem; font-size: 0.95rem; }

.ed-depot { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; padding: 0.9rem; border-radius: 14px; border: 2px dashed #b9a3ca; background: #fbf6ff; }
.ed-depot img, .ed-depot canvas { width: 7.5rem; height: auto; border-radius: 10px; background: #efe3ff; }
.ed-depot input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ed-depot label.ed-bouton { display: inline-flex; align-items: center; }
.ed-curseur { display: grid; gap: 0.2rem; }
.ed-curseur input { width: 100%; accent-color: #5b3f8c; min-height: 2rem; }

.ed-tatou { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.5rem 0.8rem; align-items: center; padding: 0.6rem; border-radius: 16px; background: #fff; border: 2px solid #e6d5ef; }
.ed-tatou img { width: 3.6rem; height: 4.5rem; border-radius: 9px; object-fit: cover; }
.ed-tatou.masque img { opacity: 0.35; }
.ed-tatou__champs { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.ed-tatou input[type="text"] { width: 100%; min-height: 2.75rem; padding: 0.45rem 0.7rem; border-radius: 10px; border: 2px solid #cdbbd9; background: #fffdfe; font-weight: 600; }
.ed-tatou .ed-case { font-size: 0.92rem; }
.ed-tatou { align-items: start; }
.ed-tatou select { width: 100%; min-height: 2.75rem; padding: 0.45rem 0.7rem; border-radius: 10px; border: 2px solid #cdbbd9; background: #fffdfe; font-weight: 600; }
.ed-tatou .ed-bouton { min-height: 2.6rem; padding: 0.35rem 0.9rem; font-size: 0.92rem; }
.ed-tatou__champs > b { font-weight: 800; }

.ed-pied { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.7rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.7rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: #fff; border-top: 2px solid #e6d5ef; }
.ed-pied p { margin: 0; font-weight: 800; flex: 1 1 12rem; }
@media (max-width: 620px) { .ed-pied { padding-top: 0.5rem; gap: 0.4rem 0.6rem; } .ed-pied p { flex-basis: 100%; font-size: 0.92rem; } .ed-pied .ed-bouton { flex: 1 1 0; min-height: 3rem; padding: 0.5rem 0.6rem; font-size: 0.95rem; } }
@media (max-width: 560px) { .ed-sousecran .ed-barre h2 { visibility: hidden; } }
.ed-pied p.calme { font-weight: 600; color: #5d4a6c; }

/* bandeau d'aperçu, quand l'éditeur est refermé avec des changements en attente */
.ed-bandeau { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; padding: 0.7rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.7rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: #23122f; color: #fff; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; font-weight: 800; box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35); }
.ed-bandeau p { margin: 0; flex: 1 1 14rem; }
.ed-bandeau .ed-bouton { min-height: 2.75rem; padding: 0.45rem 1.1rem; font-size: 0.98rem; }
.ed-toast { position: fixed; z-index: 260; left: 50%; top: calc(4.6rem + env(safe-area-inset-top, 0px)); transform: translateX(-50%); max-width: min(92vw, 30rem); padding: 0.8rem 1.2rem; border-radius: 14px; background: #14532d; color: #fff; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; font-weight: 800; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.ed-toast.souci { background: #a80d20; }

/* partie conventions du site : liens et liste « ensuite » rendus par l'éditeur */
.billet__lien { display: inline-block; margin-top: 0.45rem; font-weight: 800; color: var(--red-deep, #c40f27); text-underline-offset: 0.22em; }

/* ---- articles à vendre ---- */
.ed-ajout, .ed-article { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 16px; background: #fff; border: 2px solid #e6d5ef; }
.ed-ajout { border-style: dashed; border-color: #b9a3ca; background: #fbf6ff; }
.ed-ajout > b { font-weight: 800; }
.ed-article__champs { display: grid; gap: 0.5rem; }
@media (min-width: 560px) { .ed-article__champs { grid-template-columns: 3fr 2fr; } }
.ed-article__champs label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.25rem; }
.ed-article__champs input { width: 100%; min-width: 0; min-height: 2.9rem; padding: 0.5rem 0.75rem; border-radius: 10px; border: 2px solid #cdbbd9; background: #fffdfe; font-weight: 600; }
.ed-article .ed-bouton { min-height: 2.6rem; padding: 0.35rem 0.9rem; font-size: 0.92rem; }

/* ---- barre de maquette et aperçu smartphone ---- */
.mq-barre { position: fixed; z-index: 140; left: max(0.8rem, env(safe-area-inset-left, 0px)); bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.4rem 0.35rem 0.9rem; border-radius: 999px; background: #23122f; color: #fff; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; font-weight: 800; font-size: 0.86rem; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); }
.mq-barre button { min-height: 2.4rem; padding: 0.3rem 0.9rem; border-radius: 999px; border: 0; cursor: pointer; background: #fff; color: #23122f; font: inherit; }
.mq-barre button:focus-visible { outline: 3px solid #ff5a70; outline-offset: 2px; }
.dans-telephone .mq-barre, .ed-apercu .mq-barre, .ed-ouvert .mq-barre { display: none; }
@media (max-width: 700px) { .mq-barre span, #mq-telephone { display: none; } .mq-barre { padding: 0.3rem; } }

.mq-voile { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: calc(0.8rem + env(safe-area-inset-top, 0px)) 1rem 0.8rem; background: #120a17; color: #fff; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; overflow: auto; }
.mq-voile[hidden] { display: none !important; }
.mq-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.2rem; }
.mq-onglets { display: flex; gap: 0.3rem; padding: 0.25rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.mq-onglets button, .mq-fermer { min-height: 2.6rem; padding: 0.3rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: #fff; font: inherit; font-weight: 800; }
.mq-onglets button[aria-pressed="true"] { background: #fff; color: #23122f; }
.mq-fermer { border: 2px solid rgba(255, 255, 255, 0.45); }
.mq-voile button:focus-visible { outline: 3px solid #ff5a70; outline-offset: 2px; }
.mq-scene { width: 414px; max-width: 100%; display: flex; justify-content: center; }
.mq-telephone { position: relative; flex: none; width: 414px; height: 868px; padding: 12px; border-radius: 54px; background: #050305; box-shadow: 0 0 0 2px #3a2c44, 0 30px 80px rgba(0, 0, 0, 0.6); transform-origin: 50% 0; }
.mq-encoche { position: absolute; z-index: 2; top: 20px; left: 50%; width: 96px; height: 24px; margin-left: -48px; border-radius: 999px; background: #050305; }
.mq-ecran { position: relative; width: 390px; height: 844px; border-radius: 42px; overflow: hidden; background: #0e0709; }
.mq-ecran iframe { width: 390px; height: 844px; border: 0; display: block; }
.mq-ecran img { width: 390px; height: 844px; object-fit: cover; object-position: top; display: block; }
.mq-fleches { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.8rem 0.9rem; background: linear-gradient(to top, rgba(5, 3, 5, 0.92), rgba(5, 3, 5, 0)); }
.mq-fleches button { width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #23122f; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.mq-legende { margin: 0; font-weight: 800; text-align: center; }
.mq-note { margin: 0; max-width: 34rem; text-align: center; font-weight: 600; color: #d9cbe3; }

/* la barre de maquette ne doit pas recouvrir le pied de page */
@media (min-width: 701px) { .pied { padding-bottom: 3.8rem; } }
