/* Styles de l'écran offre (l'éditeur). Tout est préfixé par .e-offre et passe par les variables de core.css. */
.e-offre .ap-hero { background: var(--hero); color: var(--sur-hero); border-radius: var(--r-4) var(--r-4) var(--r-4) var(--r-1); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; box-shadow: var(--ombre); }
.e-offre .ap-hero::before { content: ""; position: absolute; right: -80px; top: -100px; width: 240px; height: 240px; border-radius: 50%; background: var(--hero-2); }
.e-offre .ap-hero > * { position: relative; }
.e-offre .ap-hero .etiquette { color: var(--sur-hero-2); }
.e-offre .ap-hero-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.e-offre .ap-hero-nom { font-weight: 800; font-size: var(--t-13); color: var(--sur-hero); }
.e-offre .ap-hero-phrase { font-family: var(--f-titre); font-weight: 700; font-size: var(--t-18, 1.1rem); line-height: 1.25; color: var(--sur-hero); }
.e-offre .ap-hero-phrase b { color: var(--sur-hero); }
.e-offre .ap-hero-petit { font-size: var(--t-13); color: var(--sur-hero-2); }

.e-offre .ap-duo-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.e-offre .ap-col-ap, .e-offre .ap-col-re { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* le cadre de l'aperçu */
.e-offre .ap-cadre { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--ombre); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.e-offre .ap-cadre-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.e-offre .ap-adresse { font-size: var(--t-12, .75rem); color: var(--encre-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.e-offre .ap-vues { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.e-offre .ap-vues .puces { min-width: 0; }
.e-offre .ap-vivant { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-11); font-weight: 800; color: var(--bon); text-transform: uppercase; letter-spacing: .06em; }
.e-offre .ap-vivant i { width: 8px; height: 8px; border-radius: 50%; background: var(--bon); }
.e-offre .ap-extra { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.e-offre .ap-scene { background: var(--creux); border-radius: var(--r-2); overflow: hidden; display: flex; flex-direction: column; min-width: 0; max-height: 640px; }
.e-offre .ap-fiche { padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; min-width: 0; flex: 1; }
.e-offre .ap-urgence { display: flex; align-items: center; gap: 8px; background: var(--attention-doux); color: var(--encre); border-radius: var(--r-2); padding: 8px 10px; font-size: var(--t-13); font-weight: 600; }
.e-offre .ap-urgence .ico { color: var(--attention); flex: none; }
.e-offre .ap-tm { margin: 0 4px; font-weight: 800; }
.e-offre .ap-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; border-radius: var(--r-2); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait-fort); color: var(--encre-3); text-align: center; padding: 10px; }
.e-offre .ap-photo .ico { width: 30px; height: 30px; }
.e-offre .ap-photo small { font-size: var(--t-12, .75rem); overflow-wrap: anywhere; }
.e-offre .ap-sous-titre { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-15); color: var(--encre); }
.e-offre .ap-offres { display: flex; flex-direction: column; gap: 8px; }
.e-offre .ap-offre { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; background: var(--surface); border-radius: var(--r-2); padding: 14px 12px; box-shadow: inset 0 0 0 1.5px var(--trait-fort); min-width: 0; color: var(--encre); }
.e-offre .ap-offre.on { box-shadow: inset 0 0 0 2px var(--encre); background: var(--surface-2); }
.e-offre .ap-badge { position: absolute; top: -9px; right: 12px; background: var(--accent); color: var(--sur-accent); font-size: var(--t-11); font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; }
.e-offre .ap-radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--trait-fort); position: relative; flex: none; }
.e-offre .ap-offre.on .ap-radio { box-shadow: inset 0 0 0 2px var(--encre); }
.e-offre .ap-offre.on .ap-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--encre); }
.e-offre .ap-offre-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.e-offre .ap-offre-txt b { font-size: var(--t-15); overflow-wrap: anywhere; }
.e-offre .ap-offre-txt small { color: var(--encre-2); font-size: var(--t-13); }
.e-offre .ap-offre-prix { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.e-offre .ap-offre-prix b { font-size: var(--t-18, 1.1rem); }
.e-offre .ap-offre-prix s { color: var(--encre-3); font-size: var(--t-13); }
.e-offre .ap-offre-prix i { font-style: normal; font-size: var(--t-11); font-weight: 800; color: var(--bon); background: var(--bon-doux); border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.e-offre .ap-cadeau { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-13); color: var(--encre-2); min-width: 0; flex-wrap: wrap; }
.e-offre .ap-cadeau .ico { width: 15px; height: 15px; color: var(--c2); flex: none; }
.e-offre .ap-cadeau em { font-style: normal; font-size: var(--t-11); font-weight: 800; color: var(--bon); background: var(--bon-doux); border-radius: 99px; padding: 0 6px; }
.e-offre .ap-bonus { display: flex; flex-direction: column; gap: 6px; }
.e-offre .ap-bonus-l { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-2); padding: 10px 12px; color: var(--encre-3); }
.e-offre .ap-bonus-l.ouvert { color: var(--encre); }
.e-offre .ap-bonus-l.ouvert .ico { color: var(--bon); }
.e-offre .ap-bonus-l span { display: flex; flex-direction: column; min-width: 0; }
.e-offre .ap-bonus-l small { color: var(--encre-2); font-size: var(--t-13); }
.e-offre .ap-livraison { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: var(--r-2); padding: 10px 12px; }
.e-offre .ap-livraison .ico { color: var(--c4); flex: none; }
.e-offre .ap-livraison span { display: flex; flex-direction: column; }
.e-offre .ap-livraison small { color: var(--encre-2); font-size: var(--t-13); }
.e-offre .ap-note { font-size: var(--t-12, .75rem); color: var(--encre-3); }
.e-offre .ap-barre { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--trait); }
.e-offre .ap-barre-prix { display: flex; flex-direction: column; min-width: 0; flex: none; }
.e-offre .ap-barre-prix small { color: var(--encre-2); font-size: var(--t-12, .75rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.e-offre .ap-bouton { flex: 1; min-height: 46px; border-radius: 99px; background: var(--accent); color: var(--sur-accent); font-weight: 800; font-size: var(--t-15); padding: 0 16px; }
.e-offre .ap-vide { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 12px; color: var(--encre-2); }
.e-offre .ap-vide .ico { width: 30px; height: 30px; color: var(--encre-3); }
.e-offre .ap-vide b { color: var(--encre); }
.e-offre .ap-panier-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--f-titre); font-size: var(--t-18, 1.1rem); }
.e-offre .ap-compte { color: var(--encre-2); font-size: var(--t-13); }
.e-offre .ap-ligne { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: var(--r-2); padding: 10px; }
.e-offre .ap-mini { width: 52px; height: 52px; border-radius: var(--r-1); background: var(--creux); display: grid; place-items: center; color: var(--encre-3); flex: none; }
.e-offre .ap-ligne-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.e-offre .ap-ligne-txt small { color: var(--encre-2); font-size: var(--t-13); }
.e-offre .ap-eco { display: flex; align-items: center; gap: 6px; font-size: var(--t-13); font-weight: 700; color: var(--bon); }
.e-offre .ap-eco .ico { width: 15px; height: 15px; }
.e-offre .ap-livbarre { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-2); padding: 10px 12px; font-size: var(--t-13); }
.e-offre .ap-piste { height: 8px; border-radius: 4px; background: var(--creux); overflow: hidden; }
.e-offre .ap-piste i { display: block; height: 100%; background: var(--c4); border-radius: 4px; }
.e-offre .ap-piste i.ok { background: var(--bon); }
.e-offre .ap-frise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface); border-radius: var(--r-2); padding: 10px; }
.e-offre .ap-frise div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; font-size: var(--t-12, .75rem); }
.e-offre .ap-frise i { width: 12px; height: 12px; border-radius: 50%; background: var(--trait-fort); }
.e-offre .ap-frise .on i { background: var(--bon); }
.e-offre .ap-frise small { color: var(--encre-2); }
.e-offre .ap-up { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; text-align: left; background: var(--surface); border-radius: var(--r-2); padding: 8px 10px; color: var(--encre); }
.e-offre .ap-up-v { width: 44px; height: 44px; border-radius: var(--r-1); overflow: hidden; background: var(--creux); display: grid; place-items: center; color: var(--encre-3); }
.e-offre .ap-up-v img { width: 100%; height: 100%; object-fit: cover; }
.e-offre .ap-up-txt { display: flex; flex-direction: column; min-width: 0; }
.e-offre .ap-up-txt small { color: var(--encre-2); }
.e-offre .ap-case { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--trait-fort); display: grid; place-items: center; color: transparent; }
.e-offre .ap-up.on .ap-case { background: var(--bon); color: var(--sur-accent); box-shadow: none; }
.e-offre .ap-total { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px; }
.e-offre .ap-total-v { font-size: var(--t-22); }

/* les sections de réglage */
.e-offre .ap-secs { display: flex; flex-direction: column; gap: 8px; }
.e-offre .ap-sec { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--ombre); min-width: 0; }
.e-offre .ap-sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; min-height: 56px; }
.e-offre .ap-sec > summary::-webkit-details-marker { display: none; }
.e-offre .ap-sec-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.e-offre .ap-sec-t small { color: var(--encre-2); font-size: var(--t-13); }
.e-offre .ap-sec > summary > .ico:last-child { flex: none; color: var(--encre-3); transition: transform .18s; }
.e-offre .ap-sec[open] > summary > .ico:last-child { transform: rotate(180deg); }
.e-offre .ap-pt { display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c4); flex: none; }
.e-offre .ap-sec-c { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.e-offre .ap-produit { display: flex; flex-direction: column; gap: 12px; }
.e-offre .ap-palier, .e-offre .ap-bonus-r { background: var(--surface-2); border-radius: var(--r-2); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.e-offre .ap-palier-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.e-offre .ap-palier-tete .btn { margin-left: auto; }
.e-offre .ap-duo { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 0; }
.e-offre .ap-liste { display: flex; flex-direction: column; gap: 4px; }
.e-offre .ap-info { font-size: var(--t-13); color: var(--encre-2); background: var(--creux); border-radius: var(--r-1); padding: 8px 10px; }
.e-offre .ap-couleurs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.e-offre .ap-couleurs input[type="color"] { padding: 3px; height: 44px; }
.e-offre .ap-liens { display: flex; gap: 8px; flex-wrap: wrap; }
.e-offre .ap-sauve { z-index: 3; }
.e-offre .ap-sauve-g { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.e-offre .ap-sauve .btn { flex: none; }

/* test A/B */
.e-offre .ap-regle { display: flex; gap: 10px; align-items: flex-start; background: var(--c4-doux); border-radius: var(--r-2); padding: 12px; font-size: var(--t-13); color: var(--encre); }
.e-offre .ap-regle .ico { color: var(--c4); flex: none; margin-top: 2px; }
.e-offre .ap-resultats { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.e-offre .ap-vars { display: grid; grid-template-columns: 1fr; gap: 10px; }
.e-offre .ap-var { background: var(--surface-2); border-radius: var(--r-2); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.e-offre .ap-var.b { box-shadow: inset 0 0 0 1.5px var(--c4); }
.e-offre .ap-var-nom { font-size: var(--t-22); }
.e-offre .ap-var-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.e-offre .ap-var-g span { display: flex; flex-direction: column; min-width: 0; }
.e-offre .ap-var-g small { color: var(--encre-2); font-size: var(--t-12, .75rem); }
.e-offre .ap-var-g b { font-size: var(--t-15); overflow-wrap: anywhere; }
.e-offre .ap-ab-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.e-offre .ap-action { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 4px 0 12px; border-bottom: 1px solid var(--trait); min-width: 0; }
.e-offre .ap-action:last-child { border-bottom: 0; padding-bottom: 0; }
/* 03/12 (tâche D) : cliente SaaS, remises et blocs de thème */
.e-offre .ap-liste { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.e-offre .ap-conf { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; min-height: 44px; cursor: pointer; }
.e-offre .ap-conf input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.e-offre .carte .btn + .btn { margin-left: 8px; }
.e-offre .ap-journal { width: 100%; max-height: 260px; overflow: auto; font-size: var(--t-12, .75rem); background: var(--creux); border-radius: var(--r-1); padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.e-offre .ap-fichier { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--ombre); }
.e-offre .ap-fichier > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 700; min-height: 48px; }
.e-offre .ap-fichier > summary::-webkit-details-marker { display: none; }
.e-offre .ap-fichier > summary span { flex: 1; }
.e-offre .ap-fichier-c { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

@container app (min-width: 700px) {
  .e-offre .ap-duo { grid-template-columns: 1fr 1fr; }
  .e-offre .ap-couleurs { grid-template-columns: 1fr 1fr; }
  .e-offre .ap-vars { grid-template-columns: 1fr 1fr; }
  .e-offre .ap-var-g { grid-template-columns: repeat(4, 1fr); }
}
@container app (min-width: 900px) {
  .e-offre .ap-duo-col { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; align-items: start; gap: 20px; }
  .e-offre .ap-col-ap { position: sticky; top: 12px; }
  .e-offre .ap-var-g { grid-template-columns: 1fr 1fr; }
  .e-offre .ap-vars { grid-template-columns: 1fr; }
}
@container app (min-width: 1200px) {
  .e-offre .ap-var-g { grid-template-columns: repeat(4, 1fr); }
  .e-offre .ap-vars { grid-template-columns: 1fr 1fr; }
}
