/* Mon espace, Gérer ma liste, Liste publique */
.mlpn-c{max-width:1140px;margin-inline:auto}
.mlpn-c h2{font-family:var(--mlpn-display);font-weight:400;font-size:clamp(28px,3.4vw,40px);line-height:1.15;margin:0 0 8px;color:var(--mlpn-encre)}
.mlpn-c h3{font-family:var(--mlpn-display);font-weight:400;font-size:22px;display:block;margin:0 0 10px}
.mlpn-c-charge{color:var(--mlpn-gris)}
.mlpn-kicker{font-size:13px;text-transform:uppercase;letter-spacing:.14em;color:var(--mlpn-baie);font-weight:700;margin:0 0 10px}
.mlpn-intro{color:var(--mlpn-gris);max-width:44em;margin:0 0 24px}
.mlpn-carte{background:#fff;border:1px solid var(--mlpn-trait);border-radius:14px;padding:20px 22px}
.mlpn-carte + .mlpn-carte{margin-top:18px}
.mlpn .mlpn-btn-ligne{background:transparent;color:var(--mlpn-encre);box-shadow:inset 0 0 0 1.5px var(--mlpn-encre)}
.mlpn .mlpn-btn-ligne:hover{background:#f1ece2;color:var(--mlpn-encre)}
.mlpn .mlpn-btn-or{background:var(--mlpn-or);color:#24180a}
.mlpn .mlpn-btn-or:hover{background:#bf9440;color:#24180a}
.mlpn .mlpn-btn-sapin{background:var(--mlpn-sapin);color:#fff}
.mlpn .mlpn-btn[disabled]{opacity:.6;cursor:wait}
.mlpn-erreur{color:var(--mlpn-baie);font-size:13.5px;margin:6px 0 0}
.mlpn-erreur:empty{display:none}
.mlpn-ok{background:#e3efe9;color:var(--mlpn-sapin);border-radius:10px;padding:10px 12px;font-weight:600}
.mlpn-alerte{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--mlpn-trait);border-left:4px solid var(--mlpn-or);border-radius:12px;padding:14px 18px;margin:0 0 24px}
.mlpn-alerte p{margin:0}

/* connexion */
.mlpn-auth{max-width:460px;margin:0 auto}
.mlpn-onglets{display:flex;border-bottom:1px solid var(--mlpn-trait);margin:0 0 18px}
.mlpn .mlpn-onglets button{flex:1;border:0;background:none;padding:10px 0;font-weight:600;color:var(--mlpn-gris);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px;font-size:16px}
.mlpn .mlpn-onglets button[aria-selected=true]{color:var(--mlpn-encre);border-bottom-color:var(--mlpn-baie)}
.mlpn-form{display:flex;flex-direction:column;gap:12px}
.mlpn-form input[type=email],.mlpn-form input[type=password],.mlpn-form input[type=text]{width:100%;border:1.5px solid var(--mlpn-trait);border-radius:10px;padding:10px 12px;background:#fffdf9;color:var(--mlpn-encre);margin:0}
.mlpn-form .mlpn-btn{width:100%}
.mlpn-piege{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

/* tableau de bord */
.mlpn-grille-compte{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}
.mlpn-cartes-listes{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.mlpn-carte-liste{background:#fff;border:1px solid var(--mlpn-trait);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:10px}
.mlpn-carte-liste.active{border-color:var(--mlpn-sapin);box-shadow:inset 0 0 0 1px var(--mlpn-sapin)}
.mlpn-stats{display:flex;gap:16px;font-size:14px;color:var(--mlpn-gris)}
.mlpn-stats b{display:block;font-family:var(--mlpn-display);font-weight:400;font-size:26px;color:var(--mlpn-encre);font-variant-numeric:tabular-nums}
.mlpn-barre{height:6px;background:#efe8da;border-radius:99px;overflow:hidden}
.mlpn-barre i{display:block;height:100%;background:var(--mlpn-sapin);border-radius:99px}
.mlpn-liens{display:flex;flex-wrap:wrap;gap:8px}
.mlpn .mlpn-ajout-carte{border:2px dashed var(--mlpn-trait);border-radius:14px;display:grid;place-items:center;text-align:center;padding:24px;color:var(--mlpn-gris);background:transparent;cursor:pointer;font-size:15px;min-height:200px}
.mlpn .mlpn-ajout-carte:hover{border-color:var(--mlpn-or);color:var(--mlpn-encre)}
.mlpn-ajout-carte span{display:block;font-family:var(--mlpn-display);font-size:40px;color:var(--mlpn-or);line-height:1}
.mlpn .mlpn-lien-discret{border:0;background:none;padding:0;color:var(--mlpn-gris);font-size:13.5px;text-decoration:underline;cursor:pointer}
.mlpn .mlpn-lien-discret.danger{color:var(--mlpn-baie)}

/* gestion de liste */
.mlpn-entete-liste{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.mlpn-entete-liste > div:first-child{flex:1 1 420px;min-width:0}
.mlpn-partage-box{display:flex;flex-direction:column;gap:10px;align-items:flex-end;max-width:100%;min-width:0}
.mlpn-lien-box{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--mlpn-trait);border-radius:999px;padding:6px 6px 6px 16px;font-size:14px;max-width:100%;min-width:0}
.mlpn-lien-box code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;font-size:13.5px;padding:0}
.mlpn-lien-box .mlpn-btn{white-space:nowrap}
.mlpn-acces{font-size:14px;color:var(--mlpn-gris);text-align:right}
.mlpn-tuto ol{list-style:none;counter-reset:t;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
.mlpn-tuto li{counter-increment:t;display:grid;grid-template-columns:30px 1fr;gap:12px;font-size:15px;line-height:1.45}
.mlpn-tuto li::before{content:counter(t);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--mlpn-papier);border:1.5px solid var(--mlpn-or);color:var(--mlpn-rouge);font-weight:700;font-size:14px}
.mlpn-tuto li b{display:block}
.mlpn-tuto li > div{min-width:0}
.mlpn-barre-nav{display:flex;align-items:center;gap:8px;background:#f1ece2;border-radius:8px;padding:6px 8px;margin-top:8px;font-size:12px}
.mlpn-barre-nav .url{flex:1;background:#fff;border-radius:6px;padding:4px 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mlpn-barre-nav .sel{background:#f2dfb4}
.mlpn-barre-nav kbd{font-family:var(--mlpn-body);font-size:11px;background:#fff;border:1px solid var(--mlpn-trait);border-bottom-width:2px;border-radius:5px;padding:1px 5px}
.mlpn-ajout-grille{display:grid;grid-template-columns:1fr 120px auto;gap:10px}
.mlpn-ajout-grille input{width:100%;border:1.5px solid var(--mlpn-trait);border-radius:10px;padding:10px 12px;background:#fffdf9}
.mlpn-ajout-grille input:disabled{background:#f1ece2;color:var(--mlpn-gris);cursor:not-allowed}
.mlpn-cadeaux{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin-top:28px}
.mlpn-cadeau{background:#fff;border:1px solid var(--mlpn-trait);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.mlpn-cadeau .ph{aspect-ratio:4/3;background:#f3ede1;display:grid;place-items:center;position:relative}
.mlpn-cadeau .ph img{width:100%;height:100%;object-fit:contain;background:#fff}
.mlpn-cadeau .ph svg{width:40%;height:40%}
.mlpn-cadeau.reserve .ph{opacity:.55}
.mlpn-cadeau .corps{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.mlpn-cadeau .nom{font-weight:600}
.mlpn-cadeau .meta{font-size:14px;color:var(--mlpn-gris)}
.mlpn-cadeau .actions{margin-top:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:8px}
.mlpn-ph-chg{position:absolute;right:8px;bottom:8px;background:rgba(255,255,255,.92);border-radius:999px;padding:4px 10px;font-size:12.5px;font-weight:600;cursor:pointer;margin:0 !important;color:var(--mlpn-sapin) !important}
.mlpn-ph-chg input{position:absolute;width:1px;height:1px;opacity:0}
.mlpn-cadeau .champ{border:1.5px solid transparent;background:transparent;border-radius:8px;padding:4px 6px;margin-left:-6px;width:calc(100% + 6px);font:inherit;color:inherit}
.mlpn-cadeau .champ:hover{border-color:var(--mlpn-trait)}
.mlpn-cadeau .champ:focus{border-color:var(--mlpn-sapin);background:#fffdf9;outline:none}
.mlpn-cadeau textarea.champ{font-weight:600;resize:none;min-height:0;line-height:1.35;overflow:hidden}
.mlpn-cadeau .row-prix{display:flex;align-items:center;gap:4px;font-size:14px;color:var(--mlpn-gris)}
.mlpn-cadeau .row-prix .champ{width:70px}
.mlpn-sur-lettre{display:inline-flex !important;align-items:center;gap:6px;font-size:13px !important;font-weight:500 !important;color:var(--mlpn-gris) !important;margin:0 !important;cursor:pointer}
.mlpn-sur-lettre input{accent-color:var(--mlpn-sapin);width:15px;height:15px;margin:0}
.mlpn-pill{font-size:12.5px;font-weight:700;border-radius:999px;padding:4px 10px}
.mlpn-pill-libre{background:#e3efe9;color:var(--mlpn-sapin)}
.mlpn-pill-resa{background:#f6e0dc;color:var(--mlpn-baie)}
.mlpn-resa-par{font-size:13px;color:var(--mlpn-gris)}
.mlpn-voir{font-size:13.5px;font-weight:600}

/* liste publique */
.mlpn-info-achat{background:#fff;border:1px solid var(--mlpn-trait);border-left:4px solid var(--mlpn-sapin);border-radius:12px;padding:16px 20px;margin:0 0 8px;max-width:760px;font-size:15px}
.mlpn-info-achat ol{margin:8px 0 10px;padding-left:20px}
.mlpn-info-achat p{margin:0;color:var(--mlpn-gris);font-size:14px}
.mlpn-verrou{max-width:440px;margin:40px auto;text-align:center}
.mlpn-cases{display:flex;justify-content:center;gap:10px;margin:0 0 12px}
.mlpn-cases input{width:52px !important;height:60px;text-align:center;font-size:26px;font-family:var(--mlpn-display);border:1.5px solid var(--mlpn-trait);border-radius:12px;background:#fffdf9;padding:0 !important}
.mlpn-cases.faux input{border-color:var(--mlpn-baie)}

/* fenêtres */
.mlpn-modale{position:fixed;inset:0;background:rgba(50,14,12,.6);display:none;align-items:center;justify-content:center;padding:20px;z-index:99998}
.mlpn-modale.ouverte{display:flex}
.mlpn-boite{background:#fff;border-radius:18px;max-width:460px;width:100%;padding:28px;max-height:calc(100vh - 40px);overflow:auto}
.mlpn-boite h3{font-size:24px}
.mlpn-note{font-size:13.5px;background:#faf5ea;border-radius:10px;padding:10px 12px;margin:12px 0 0}
.mlpn-btns{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}
.mlpn-radio{display:flex;flex-direction:column;gap:10px;margin:4px 0 14px}
.mlpn-radio label{display:flex !important;gap:10px;align-items:flex-start;font-weight:400 !important;font-size:15px !important;border:1.5px solid var(--mlpn-trait);border-radius:12px;padding:12px 14px;cursor:pointer;margin:0 !important}
.mlpn-radio label:has(input:checked){border-color:var(--mlpn-sapin);background:#f3f8f5}
.mlpn-radio input{accent-color:var(--mlpn-sapin);margin-top:4px}
.mlpn-radio small{display:block;color:var(--mlpn-gris);font-size:13px}
.mlpn-code-actuel{display:flex;align-items:center;gap:12px;background:var(--mlpn-papier);border-radius:10px;padding:10px 14px;margin:0 0 14px}
.mlpn-code-actuel b{font-family:var(--mlpn-display);font-weight:400;font-size:26px;letter-spacing:.2em}


@media (max-width:900px){
  .mlpn-grille-compte{grid-template-columns:minmax(0,1fr)}
  .mlpn-partage-box{align-items:stretch;width:100%}
  .mlpn-acces{text-align:left}
}
@media (max-width:640px){
  .mlpn-tuto ol{grid-template-columns:1fr}
  .mlpn-ajout-grille{grid-template-columns:1fr 100px}
  .mlpn-ajout-grille .mlpn-btn{grid-column:1/-1}
}

/* téléphone : cartes cadeaux en ligne (photo à gauche) pour éviter un long défilement */
@media (max-width:600px){
  .mlpn-cadeaux{grid-template-columns:minmax(0,1fr);gap:12px}
  .mlpn-cadeau{flex-direction:row;align-items:stretch}
  .mlpn-cadeau .ph{flex:0 0 112px;aspect-ratio:auto;min-height:112px}
  .mlpn-cadeau .ph svg{width:52%;height:52%}
  .mlpn-cadeau .corps{flex:1;min-width:0}
  .mlpn-ph-chg{left:6px;right:6px;bottom:6px;text-align:center;padding:4px 6px;font-size:11.5px}
}

/* connexion avec Google */
.mlpn-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 16px;border:1.5px solid var(--mlpn-trait);border-radius:999px;background:#fff;color:#1f1f1f !important;font-weight:600;font-size:15px;text-decoration:none !important;transition:border-color .15s,background .15s}
.mlpn-google:hover{border-color:#9aa0a6;background:#f8f9fa}
.mlpn-ou,.mlpn p.mlpn-ou{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--mlpn-gris);font-size:13px}
.mlpn-ou::before,.mlpn-ou::after{content:"";flex:1;height:1px;background:var(--mlpn-trait)}

/* même largeur que le prototype, même dans une page à contenu étroit */
.is-layout-constrained > .mlpn-c{max-width:1140px}
.mlpn-lien-box code.attente{font-family:inherit;font-style:italic;color:var(--mlpn-gris)}
.mlpn-entete-liste + .mlpn-alerte{margin-bottom:24px}
.mlpn-pour-qui{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:10px 0 4px}
.mlpn-pour-qui label{width:100%;font-weight:600;font-size:14px;margin:0}
.mlpn-pour-qui input{flex:1 1 200px;max-width:320px;border:1.5px solid var(--mlpn-trait);border-radius:10px;padding:9px 12px;font:inherit;background:#fffdf8}
.mlpn-choix-liste{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;background:#fff;border:1px solid var(--mlpn-trait);border-radius:999px;padding:4px 6px 4px 14px;max-width:100%}
.mlpn-choix-liste label{margin:0;font-size:13px;font-weight:600;color:var(--mlpn-gris)}
.mlpn-choix-liste select{border:0;background:transparent;font:inherit;font-weight:600;color:var(--mlpn-encre);padding:6px 4px;max-width:260px;cursor:pointer}
.mlpn-btn.mlpn-btn-danger{background:#a3261f;color:#fff}
.mlpn-btn.mlpn-btn-danger:hover{background:#7d1d1a}
.mlpn-mention-affil{font-size:12.5px !important;opacity:.85;margin-top:8px !important}
.mlpn-securite summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--mlpn-sapin)}
.mlpn-securite summary:hover{text-decoration:underline}
#mlpn-f-infos input,#mlpn-f-secu input{width:100%}
.mlpn button.mlpn-ph-chg{border:0;font-family:inherit;font-size:12.5px;font-weight:600;line-height:1.4;color:var(--mlpn-sapin);padding:4px 10px;cursor:pointer}
.mlpn-btn-fichier{position:relative;width:100%;justify-content:center;cursor:pointer}
.mlpn-btn-fichier input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}

/* aperçu de la lettre en fenêtre */
.mlpn-modale-lettre .mlpn-boite{width:min(1240px,97vw);max-width:none;height:min(92vh,1200px);max-height:none;display:flex;flex-direction:column;padding:16px 18px;overflow:hidden}
.mlpn-lettre-tete{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.mlpn-lettre-tete h3{margin:0 !important}
.mlpn-lettre-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mlpn-lettre-cadre{flex:1;width:100%;border:0;border-radius:10px;background:#f4ede0;min-height:0}
.mlpn .mlpn-fermer-x{border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:var(--mlpn-gris);padding:0 4px}
@media (max-width:600px){.mlpn-modale.mlpn-modale-lettre{padding:0}.mlpn-modale-lettre .mlpn-boite{width:100vw;height:100vh;border-radius:0;padding:12px}}
