/* Ajustements maquette Figma : custom (écran 15 · Customisation) */

/* En-tête de page */
.efena-custom-page .efena-page-head{padding-top:clamp(0px,1vw,8px)}
.efena-custom-page .efena-page-head .efena-kicker{font-size:13px;letter-spacing:.2em;margin-bottom:0}
.efena-custom-page .efena-page-head__title{font-size:clamp(40px,6vw,76px);margin:18px 0 0}
.efena-custom-page .efena-page-head__text{max-width:520px;margin:22px auto 0;font-size:16px;line-height:1.8;color:#777}

/* Configurateur : deux colonnes égales */
.efena-custom-page form.efena-custom.cart{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;margin-top:clamp(28px,3.5vw,44px);padding-bottom:80px}
.efena-custom-page .efena-custom-notices:empty{display:none}

/* Aperçu */
.efena-custom__visual{position:relative;aspect-ratio:1/1;border-radius:calc(28px*var(--ef-round));background:#1B1B1B;display:flex;align-items:center;justify-content:center}
.efena-custom__visual img{position:absolute;inset:0}
.efena-custom__caption{position:relative;z-index:1;margin:0;padding:0 24px;max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#8A8A8A;text-align:center;overflow-wrap:anywhere}
.efena-custom__visual.has-image{align-items:flex-end}
.efena-custom__visual.has-image::after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(to top,rgba(0,0,0,.7),rgba(0,0,0,0))}
.efena-custom__visual.has-image .efena-custom__caption{color:rgba(255,255,255,.82);padding-bottom:22px}
.efena-custom__summary{gap:12px;margin-top:16px}
.efena-custom__summary>div{border:1px solid var(--ef-line);padding:15px 12px}

/* Étapes */
.efena-custom-page .efena-custom__options{gap:30px}
.efena-custom__step legend,.efena-custom__legend{font-size:26px;gap:10px}
.efena-custom__step legend>span:first-child,.efena-custom__legend>span:first-child{font-size:13px;color:var(--ef-muted)}
.efena-custom__legend small{font-weight:600;color:var(--ef-muted)}

/* 01 Type */
.efena-custom__types{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.efena-choice--type{border:1px solid var(--ef-line);padding:19px 17px}
.efena-choice--type:has(input:checked){box-shadow:inset 0 0 0 .5px var(--ef-ink)}

/* 02 Matière : pastille de couleur à la place du bouton radio */
.efena-choice--row{border:1px solid var(--ef-line);padding:15px 19px;min-height:71px}
.efena-choice--row:has(input:checked){box-shadow:inset 0 0 0 .5px var(--ef-ink)}
.efena-choice--row .efena-choice__dot{display:none}
.efena-choice__swatch{flex:none;width:26px;height:26px;border-radius:50%;background:var(--swatch,#D9D9D9);border:1px solid rgba(0,0,0,.12);transition:box-shadow .2s}
.efena-choice--row:has(input:checked) .efena-choice__swatch{box-shadow:0 0 0 2px var(--ef-surface),0 0 0 3px var(--ef-ink)}
.efena-choice--row .efena-choice__price{font-size:15px;color:#777}

/* 03 Finition et 05 Taille */
.efena-custom__pills--3{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
.efena-custom__pills--3 .efena-choice--pill span{padding:14px 12px;min-height:48px}
.efena-choice--size span{min-width:52px;min-height:46px;padding:12px 14px}

/* 04 Gravure */
.efena-custom__engrave{min-height:51px;padding:14px 17px}

/* Récapitulatif : carte blanche */
.efena-custom-page .efena-custom__total{margin-top:6px;border:0;background:var(--ef-surface);border-radius:calc(28px*var(--ef-round));padding:26px 28px 24px;box-shadow:0 24px 60px rgba(20,20,20,.07)}
.efena-custom__total-row span{letter-spacing:.1em;color:#777}
.efena-custom__total-row strong{font-size:clamp(34px,3.6vw,46px);font-weight:400;line-height:1}
.efena-custom__total .efena-btn{margin-top:22px;padding:17px 18px}

/* Comment ça marche : bloc clair arrondi */
.efena-custom-how{background:none;color:inherit;padding:0 28px}
.efena-custom-how>.efena-container{background:#EFEFEF;border-radius:calc(40px*var(--ef-round));padding:77px 40px 76px;max-width:1224px}
.efena-custom-how .efena-kicker{color:var(--ef-muted);font-size:13px;letter-spacing:.2em;margin:0}
.efena-custom-how__title{color:var(--ef-ink);margin-top:16px}
.efena-custom-how__title em{color:inherit}
.efena-custom-how__grid{margin-top:50px;gap:22px;text-align:center}
.efena-custom-how__grid li{border:0;background:var(--ef-paper);border-radius:calc(24px*var(--ef-round));padding:36px 24px 34px}
.efena-custom-how__num{font-size:40px;color:#C8C8C8}
.efena-custom-how__grid strong{font-size:17px;color:var(--ef-ink)}
.efena-custom-how__grid p{color:var(--ef-muted);font-size:14px}

/* Contenu de la page : textes, exemples, contact */
.efena-custom-inspi{padding-top:clamp(60px,8vw,100px)}
.efena-custom-inspi .efena-showcase__text{margin-top:0}
.efena-custom-contact{margin-top:clamp(56px,7vw,80px)}

/* Liberté créative : idée libre, gravure en surimpression, polices, photos d'inspiration */
.efena-custom__visual{container-type:inline-size;overflow:hidden}
.efena-custom__engraving{position:absolute;z-index:2;left:8%;right:8%;top:50%;transform:translateY(-50%);margin:0;text-align:center;font-size:clamp(22px,8.5cqi,54px);line-height:1.15;color:#fff;letter-spacing:.01em;overflow-wrap:anywhere;text-shadow:0 1px 2px rgba(0,0,0,.55),0 0 22px rgba(0,0,0,.45);pointer-events:none}
.efena-custom__engraving[hidden]{display:none}
.efena-custom__visual.is-engraved::before{content:"";position:absolute;z-index:1;inset:0;background:radial-gradient(ellipse 70% 38% at 50% 50%,rgba(0,0,0,.42),rgba(0,0,0,0) 75%);pointer-events:none}
.efena-custom__visual.is-engraved:not(.has-image){align-items:flex-end}
.efena-custom__visual.is-engraved:not(.has-image) .efena-custom__caption{padding-bottom:22px}
.efena-choice--free{border-style:dashed}
.efena-choice--free .efena-choice__name{font-style:italic}
.efena-custom__free-note{margin:12px 0 0;font-size:13.5px;line-height:1.6;color:var(--ef-muted)}
.efena-custom__free-note[hidden]{display:none}
.efena-custom__step.is-off{opacity:.38;transition:opacity .2s}
.efena-custom__step.is-off .efena-choice{cursor:not-allowed}
.efena-custom__amount{display:inline-flex;align-items:baseline;gap:8px;letter-spacing:0!important;text-transform:none!important;color:inherit!important;font-size:inherit!important}
.efena-custom__amount small{font-size:13px;letter-spacing:.06em;color:var(--ef-muted)}
.efena-custom__amount small[hidden]{display:none}

/* Police de gravure */
.efena-custom__fonts{border:0;margin:18px 0 0;padding:0;min-width:0}
.efena-custom__fonts legend{padding:0;margin:0 0 10px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ef-muted)}
.efena-custom__font-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.efena-choice--font>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:10px 8px;text-align:center;background:var(--ef-surface);border:1px solid var(--ef-line);border-radius:calc(14px*var(--ef-round));transition:border-color .2s,box-shadow .2s}
.efena-choice__font{font-size:20px;line-height:1.2;color:var(--ef-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.efena-choice--font small{font-size:11px;letter-spacing:.04em;color:var(--ef-muted)}
.efena-choice--font:hover>span{border-color:#9A9A9A}
.efena-choice--font input:checked+span{border-color:var(--ef-ink);box-shadow:inset 0 0 0 .5px var(--ef-ink)}

/* Idée libre et photos */
.efena-custom__textarea{display:block;min-height:132px;resize:vertical;line-height:1.6}
.efena-custom__photos{margin-top:20px}
.efena-custom__photos-title{margin:0 0 10px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ef-muted)}
.efena-custom__photos-title small{letter-spacing:0;text-transform:none;font-size:12.5px}
.efena-custom__thumbs{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.efena-custom__thumbs[hidden]{display:none}
.efena-custom__thumb{position:relative;aspect-ratio:1/1;border-radius:calc(14px*var(--ef-round));overflow:hidden;background:#EFEFEF;border:1px solid var(--ef-line)}
.efena-custom__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.efena-custom__thumb-ext{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;letter-spacing:.16em;color:var(--ef-muted)}
.efena-custom__thumb-name{position:absolute;left:0;right:0;bottom:0;padding:16px 8px 6px;font-size:11px;line-height:1.3;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,0));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.efena-custom__thumb-remove{position:absolute;top:6px;right:6px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--ef-ink);cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.efena-custom__thumb-remove:hover{background:#fff}
.efena-custom__thumb-remove:focus-visible{outline:2px solid var(--ef-ink);outline-offset:2px}
.efena-custom__drop{position:relative;display:flex;align-items:center;justify-content:center;min-height:64px;padding:14px 16px;border:1px dashed #BDBDBD;border-radius:calc(14px*var(--ef-round));background:var(--ef-surface);cursor:pointer;transition:border-color .2s}
.efena-custom__drop[hidden]{display:none}
.efena-custom__drop:hover,.efena-custom__drop:has(input:focus-visible){border-color:var(--ef-ink)}
.efena-custom__drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.efena-custom__drop span{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ef-ink)}
.efena-custom__photo-error{margin:8px 0 0;font-size:13px;color:#A33A2B}
.efena-custom__photo-error[hidden]{display:none}

@media (max-width:900px){
  .efena-custom-page form.efena-custom.cart{grid-template-columns:minmax(0,1fr);gap:34px}
  .efena-custom__visual{aspect-ratio:1/1}
}
@media (max-width:640px){
  .efena-custom-page form.efena-custom.cart{margin-top:30px;padding-bottom:56px}
  .efena-custom__step legend,.efena-custom__legend{font-size:22px}
  .efena-custom__summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .efena-custom__summary>div{padding:10px 4px}
  .efena-custom__summary dt{font-size:9px;letter-spacing:.1em}
  .efena-custom__summary dd{font-size:14px}
  .efena-choice--row{padding:13px 14px;gap:12px}
  .efena-custom-page .efena-custom__total{padding:22px 18px 20px}
  .efena-custom-how{padding:0 12px}
  .efena-custom-how>.efena-container{padding:56px 18px;border-radius:calc(28px*var(--ef-round))}
  .efena-custom-how__grid{gap:14px}
  .efena-custom-how__grid li{padding:28px 20px}
  .efena-custom__types .efena-choice--free:nth-child(odd){grid-column:1/-1}
  .efena-custom__font-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .efena-choice__font{font-size:18px}
}
/* Prix sur devis */
.efena-custom__quote-note{margin:8px 0 0;font-size:13px;color:var(--ef-muted)}
.efena-quote{font-style:italic;color:var(--ef-muted)}
/* Demande EFENA Pièce : coordonnées, champ anti-robot, merci */
.efena-custom__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.efena-custom__fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.efena-custom__field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ef-muted)}
.efena-custom__field small{font-size:12px}
.efena-custom__field--wide{grid-column:1/-1}
.efena-custom__field input{width:100%;padding:14px 16px;border:1px solid var(--ef-line);border-radius:calc(14px*var(--ef-round));background:var(--ef-surface);font:inherit;font-size:15px;color:var(--ef-ink)}
.efena-custom__field input:focus{outline:none;border-color:var(--ef-ink)}
.efena-custom-thanks{max-width:620px;margin:10px auto 60px;padding:44px 36px;text-align:center;background:var(--ef-surface);border-radius:calc(28px*var(--ef-round));box-shadow:0 24px 60px rgba(20,20,20,.07)}
.efena-custom-thanks__icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--ef-ink);color:var(--ef-paper);margin-bottom:16px}
.efena-custom-thanks__title{font-size:clamp(28px,3vw,38px);font-weight:400;margin:0 0 12px}
.efena-custom-thanks p{color:var(--ef-muted);margin:0 0 26px}
@media (max-width:640px){.efena-custom__fields{grid-template-columns:1fr}.efena-custom-thanks{padding:34px 22px}}
/* Ligne WhatsApp sous le bouton e-mail */
.efena-custom-contact__wa{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px auto 0;color:var(--ef-muted);font-size:14px;text-decoration:none}
.efena-custom-contact__wa svg{width:18px;height:18px;flex:none;color:var(--ef-ink)}
.efena-custom-contact__wa strong{color:var(--ef-ink);font-weight:500;white-space:nowrap}
.efena-custom-contact__wa:hover strong{text-decoration:underline}
/* Une photo d'aperçu par type de bijou */
.efena-custom__visual img[hidden]{display:none}
