/* Untibebe — Mes listes de cadeaux | refonte visuelle 1.0 */
.ubc-page{
  --ubc-plum:#5b2851;
  --ubc-berry:#8b315d;
  --ubc-rose:#b65e7b;
  --ubc-pale:#f8e9ee;
  --ubc-ink:#322833;
  --ubc-muted:#6c5c68;
  --ubc-line:#ead9e1;
  --ubc-card:#fffefd;
  margin:0;
  color:var(--ubc-ink);
  background:
    radial-gradient(ellipse at 90% 3%,rgba(220,177,194,.18),transparent 28rem),
    linear-gradient(180deg,#fffaf6 0%,#fbf4f4 100%);
  font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.ubc-page .ubc-shell{max-width:1160px;padding:0 28px}
.ubc-page .ubc-header{
  position:relative;isolation:isolate;min-height:112px;padding:17px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  border:0;border-bottom:1px solid rgba(110,62,91,.16);
  background:linear-gradient(105deg,rgba(255,255,255,.76),rgba(255,248,250,.62));
}
.ubc-page .ubc-header:after{
  content:"";display:block;flex:0 0 76px;width:76px;height:76px;border-radius:22px;
  border:1px solid rgba(139,49,93,.13);
  background:
    radial-gradient(ellipse at 50% 22%,#fffaf8 0 8%,transparent 9%),
    linear-gradient(90deg,transparent 42%,#b65e7b 42% 58%,transparent 58%),
    linear-gradient(180deg,transparent 34%,#d996aa 34% 48%,transparent 48%),
    linear-gradient(135deg,#fff 0%,#f8e7ed 100%);
  box-shadow:0 8px 22px rgba(91,40,81,.09);
  clip-path:inset(0 round 22px);
}
.ubc-page .ubc-header>img{width:min(360px,calc(100% - 100px))!important;height:auto;max-width:100%}
.ubc-page .ubc-brand{color:var(--ubc-plum)}
.ubc-page main{min-height:58vh;padding:38px 0 62px}
.ubc-page h1,.ubc-page h2,.ubc-page h3{color:var(--ubc-plum)}
.ubc-page h1{margin:0 0 12px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4vw,2.85rem);font-weight:600;letter-spacing:-.025em;line-height:1.13}
.ubc-page h2{margin:1.4em 0 .55em;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.35rem,2.3vw,1.7rem);font-weight:600;line-height:1.2}
.ubc-page h3{font-size:1.13rem;line-height:1.35}
.ubc-page p{line-height:1.6}
.ubc-page #ubc-app>p:first-of-type{max-width:850px}
.ubc-page .ubc-row{gap:12px}
.ubc-page .ubc-card{
  position:relative;border:1px solid var(--ubc-line);border-radius:18px;
  background:var(--ubc-card);padding:22px;min-width:0;
  box-shadow:0 8px 24px rgba(72,39,62,.055);
}
.ubc-page .ubc-grid{gap:18px;margin:20px 0}
.ubc-page .ubc-grid>.ubc-card{height:100%}
.ubc-page .ubc-card h2:first-child,.ubc-page .ubc-card h3:first-child{margin-top:0}
.ubc-page form label{display:block;margin:15px 0 10px;color:#453747;font-weight:650}
.ubc-page input:not([type=checkbox]),.ubc-page select,.ubc-page textarea{
  width:100%;max-width:100%;min-width:0;margin-top:7px;padding:12px 14px;
  border:1px solid #d8c7d0;border-radius:11px;background:#fff;
  color:var(--ubc-ink);font:inherit;line-height:1.4;
}
.ubc-page textarea{min-height:104px;resize:vertical}
.ubc-page input[type=file]{padding:10px;background:#fff9fb}
.ubc-page input:focus-visible,.ubc-page select:focus-visible,.ubc-page textarea:focus-visible,
.ubc-page button:focus-visible,.ubc-page a:focus-visible,.ubc-page summary:focus-visible{
  outline:3px solid rgba(182,94,123,.58);outline-offset:3px
}
.ubc-page button{
  min-height:44px;margin:4px 5px 4px 0;padding:11px 17px;border:1px solid transparent;
  border-radius:11px;background:var(--ubc-berry);color:#fff;cursor:pointer;
  font:inherit;font-weight:700;line-height:1.35;transition:background-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.ubc-page button:hover{background:var(--ubc-plum);box-shadow:0 5px 12px rgba(91,40,81,.16);transform:translateY(-1px)}
.ubc-page button:disabled{opacity:.62;cursor:wait;transform:none;box-shadow:none}
.ubc-page button.secondary{
  border-color:#dfcbd4;background:#fbf4f6;color:#713652;
}
.ubc-page button.secondary:hover{background:#f2e3e9;color:var(--ubc-plum)}
.ubc-page button.ubc-danger{background:#8f3042}
.ubc-page button.ubc-danger:hover{background:#722235}
.ubc-page a{color:var(--ubc-berry);text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
.ubc-page a:hover{color:var(--ubc-plum)}
.ubc-page .ubc-quiz-link,.ubc-page a.ubc-view-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:10px 15px;border:1px solid #dec4d0;border-radius:11px;
  background:#fff;color:#713652;font-weight:700;line-height:1.35;text-decoration:none;
}
.ubc-page .ubc-quiz-link:hover,.ubc-page a.ubc-view-link:hover{background:#fbedf2;border-color:#cc9bb0}
.ubc-page a.ubc-view-link.is-active{background:var(--ubc-plum);border-color:var(--ubc-plum);color:#fff}
.ubc-page .ubc-view-nav{display:flex;flex-wrap:wrap;gap:10px;margin:19px 0 25px}
.ubc-page .ubc-msg{padding:13px 16px;border:1px solid #e7c7d3;border-left:5px solid var(--ubc-rose);border-radius:11px;background:#fff3f6;color:#522d42}
.ubc-page .ubc-msg[hidden]{display:none}
.ubc-page .ubc-toast{top:18px;right:18px;border-color:#e3c5d1;border-left-color:var(--ubc-berry);border-radius:14px;box-shadow:0 12px 34px rgba(50,34,48,.18)}
.ubc-page .ubc-account-card{margin:16px 0;border-radius:15px;background:rgba(255,255,255,.88)}
.ubc-page details>summary{cursor:pointer;color:var(--ubc-plum);font-weight:700}
.ubc-page .ubc-danger-zone{border-color:#e3b9bd;border-radius:14px;background:#fff7f6}
.ubc-page .ubc-danger-zone h3{color:#8f3042}
.ubc-page .ubc-create-card{max-width:820px;margin:22px auto;padding:clamp(22px,4vw,36px)}
.ubc-page .ubc-create-card form{max-width:660px;margin:0 auto}
.ubc-page .ubc-create-people{max-width:660px;margin:24px auto 0;padding-top:16px;border-top:1px solid var(--ubc-line)}
.ubc-page .ubc-create-people summary{color:var(--ubc-berry)}
.ubc-page .ubc-create-people p,.ubc-page .ubc-person-explainer{color:var(--ubc-muted);font-size:.93rem}
.ubc-page .ubc-person-fields{padding:16px;border:1px solid #e6cbd6;border-radius:13px;background:#fff8fa}
.ubc-page .ubc-list-group{
  margin:30px 0 38px;padding:23px;border:1px solid rgba(189,130,155,.2);
  border-radius:20px;background:rgba(255,255,255,.43)
}
.ubc-page .ubc-list-group>h2{margin:0 0 6px}
.ubc-page .ubc-list-group>.ubc-grid{margin:16px 0 0}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card{
  display:grid;grid-template-columns:112px minmax(0,1fr);align-content:center;
  column-gap:20px;row-gap:2px;padding:20px 22px;overflow:hidden
}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card>*{grid-column:2;min-width:0}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card:before{
  content:"";grid-column:1;grid-row:1/span 6;align-self:center;justify-self:center;
  display:block;width:108px;height:108px;border:1px solid #f0dce4;border-radius:20px;
  background:
    radial-gradient(ellipse at 50% 23%,#fff 0 6%,transparent 7%),
    linear-gradient(90deg,transparent 43%,#9b4c78 43% 57%,transparent 57%),
    linear-gradient(180deg,transparent 35%,#cf91a8 35% 49%,transparent 49%),
    linear-gradient(140deg,#fffdfc,#f4e5eb);
  box-shadow:inset 0 0 0 7px rgba(255,255,255,.56)
}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card h3{margin:0 0 4px;font-family:Georgia,"Times New Roman",serif;font-size:1.22rem}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card p{margin:3px 0;color:var(--ubc-muted)}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card button{justify-self:start}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card .ubc-remove-list{font-size:.88rem}
.ubc-page .ubc-incoming{border-color:#e3c4d1;background:#fff9fb}
.ubc-page .ubc-shared-save{padding:14px 16px;border:1px solid var(--ubc-line);border-radius:14px;background:#fff9fb}
.ubc-page #ubc-list-state{display:inline-block;margin:8px 0 18px;padding:7px 12px;border:1px solid #e4d0d8;border-radius:999px;background:#fff;color:#684153;font-size:.94rem}
.ubc-page .ubc-share-panel{border-color:#e1c4d0;border-radius:14px;background:#fff8fa}
.ubc-page .ubc-share-controls input{min-width:0}
.ubc-page .ubc-amazon-tools{gap:9px}
.ubc-page a.ubc-amazon-link{min-height:44px;border-radius:11px;background:#713652;color:#fff}
.ubc-page a.ubc-amazon-link:hover{background:var(--ubc-plum)}
.ubc-page .ubc-photo-hint,.ubc-page .ubc-person-explainer{color:var(--ubc-muted)}
.ubc-page .ubc-img{width:100%;height:auto;max-height:250px;aspect-ratio:16/10;object-fit:contain;background:#fff;border:1px solid #f0e5e9;border-radius:14px;margin:0 0 14px;padding:6px}
.ubc-page .ubc-no-photo{min-height:190px;border-color:#e3c4d0;border-radius:14px;background:linear-gradient(145deg,#fff9fb,#f3e8ee);color:#9b5472}
.ubc-page .ubc-no-photo span{color:#695761}
.ubc-page #ubc-app>#results .ubc-card{border-top:3px solid #c37b97}
.ubc-page .ubc-checks{gap:8px}
.ubc-page .ubc-checks label{padding:11px;border:1px solid #efdee5;border-radius:10px;background:#fff9fb}
.ubc-page .ubc-checks label:has(input:checked){border-color:#b66d88;background:#faedf2;color:#522d42}
.ubc-page .ubc-checks input{accent-color:var(--ubc-berry)}
.ubc-page .ubc-disclosure,.ubc-page .ubc-affiliate-disclosure,.ubc-page .ubc-commercial-label{color:var(--ubc-muted)}
.ubc-page .ubc-password-field{gap:6px}
.ubc-page .ubc-footer{margin-top:14px;padding:22px 0 30px;border-top:1px solid rgba(110,62,91,.16);color:var(--ubc-muted)}
.ubc-page .ubc-footer .ubc-amazon-disclosure,.ubc-page .ubc-footer .ubc-footer-amazon-note{color:#6b5b67}
.ubc-page .ubc-footer .ubc-footer-amazon-note p{margin:3px 0 7px}
@media(max-width:800px){
  .ubc-page .ubc-shell{padding:0 20px}
  .ubc-page .ubc-list-group{padding:18px}
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card{grid-template-columns:88px minmax(0,1fr);column-gap:15px;padding:17px}
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card:before{width:84px;height:84px;border-radius:16px}
}
@media(max-width:600px){
  .ubc-page .ubc-shell{padding:0 14px}
  .ubc-page .ubc-header{min-height:84px;padding:12px 4px;gap:10px}
  .ubc-page .ubc-header:after{flex-basis:56px;width:56px;height:56px;border-radius:15px}
  .ubc-page .ubc-header>img{width:min(300px,calc(100% - 66px))!important}
  .ubc-page main{padding:25px 0 42px}
  .ubc-page .ubc-card{padding:17px;border-radius:15px}
  .ubc-page .ubc-grid{grid-template-columns:minmax(0,1fr);gap:13px}
  .ubc-page .ubc-list-group{margin:22px 0 28px;padding:15px 12px;border-radius:16px}
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card{grid-template-columns:64px minmax(0,1fr);column-gap:12px;padding:14px}
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card:before{width:60px;height:60px;border-radius:13px}
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card h3{font-size:1.08rem}
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card button,.ubc-page .ubc-list-group>.ubc-grid>.ubc-card a{max-width:100%;justify-self:start}
  .ubc-page .ubc-view-nav{gap:8px;margin:14px 0 20px}
  .ubc-page a.ubc-view-link{flex:1 1 135px}
  .ubc-page .ubc-row{align-items:flex-start}
  .ubc-page .ubc-row h1{max-width:calc(100% - 110px)}
  .ubc-page button{max-width:100%}
  .ubc-page .ubc-share-controls{align-items:stretch}
  .ubc-page .ubc-share-controls input,.ubc-page .ubc-share-controls button{width:100%}
  .ubc-page .ubc-img{max-height:220px;aspect-ratio:4/3}
  .ubc-page .ubc-no-photo{min-height:142px}
  .ubc-page .ubc-toast{top:12px;left:12px;right:12px;max-width:none}
}
@media(prefers-reduced-motion:reduce){
  .ubc-page *, .ubc-page *:before, .ubc-page *:after{scroll-behavior:auto!important;transition:none!important}
}

/* Ajustements après contrôle du tableau de bord et des écrans de partage. */
.ubc-page .ubc-list-group>.ubc-grid{grid-template-columns:minmax(0,1fr)}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card .ubc-quiz-link{width:max-content;max-width:100%;justify-self:start}
.ubc-page .ubc-list-group>.ubc-grid>.ubc-card .ubc-remove-list{width:auto}
.ubc-page #ubc-app section.ubc-card .ubc-row{justify-content:flex-start}
.ubc-page .ubc-list-group>.ubc-grid>p{margin:0;padding:16px 18px;border:1px solid var(--ubc-line);border-radius:13px;background:#fff}
@media(max-width:600px){
  .ubc-page .ubc-list-group>.ubc-grid>.ubc-card .ubc-quiz-link{width:auto}
}
