/* ========================================================================
   PAGE BOUTIQUE — styles propres à boutique.php.
   Fichier dédié, chargé uniquement sur cette page : ne touche jamais à
   laforgedesjoueurs.css, donc zéro conflit possible avec les autres branches.
   ======================================================================== */
@import url("https://fonts.cdnfonts.com/css/gotham");

:root{
  --font-jersey-name: "Gotham", var(--font-third);
  --font-jersey-number: var(--font-primary);
}

/* ========================== BOUTIQUE / TEXTILE ========================== */
.lfdj-boutique-wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 55px auto;
  padding: 0 10%;
}

.lfdj-boutique-preview{
  flex: 0 1 320px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.lfdj-boutique-preview-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 2050 / 2529;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white-color);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.lfdj-generique-preview-frame{
  aspect-ratio: 1297 / 1600;
}

.lfdj-totbag-preview-frame{
  aspect-ratio: 660 / 616;
}

.lfdj-boutique-preview-frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#lfdj-pipito-design{
  transform: scale(.6);
}

.lfdj-boutique-controls{
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 420px;
  margin: 0 auto;
}

.lfdj-boutique-group{
  margin-bottom: 25px;
}

.lfdj-boutique-group h5{
  color: var(--black-color);
  margin-bottom: 12px;
}

.lfdj-design-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}

.lfdj-design-thumb{
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #e8e8e8;
  cursor: pointer;
  transition: border-color .2s ease;
}

.lfdj-design-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lfdj-design-thumb:hover{
  border-color: var(--hover-color);
}

.lfdj-design-thumb.active{
  border-color: var(--primary-color);
  background-color: rgba(200,164,77,.15);
}

.lfdj-color-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lfdj-color-swatch{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.15);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.lfdj-color-swatch.active::after{
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.lfdj-size-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lfdj-size-pill{
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 20px;
  border: 2px solid rgba(141,141,141,.35);
  background: transparent;
  color: var(--black-color);
  font-family: var(--font-third);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.lfdj-size-pill:hover{
  border-color: var(--hover-color);
}

.lfdj-size-pill.active{
  border-color: var(--primary-color);
  background-color: rgba(200,164,77,.15);
}

.lfdj-notice-box{
  max-width: 720px;
  margin: 0 auto 55px auto;
  padding: 15px 20px;
  border: 2px dotted var(--secondary-color);
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 850px){
  .lfdj-notice-box{ margin: 0 10% 45px 10%; }
}

.lfdj-notice-box p{
  font-size: 14px;
  color: var(--black-color);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}

.lfdj-notice-box strong{
  color: var(--secondary-color);
}

.lfdj-notice-box i{
  color: var(--secondary-color);
  margin-right: 6px;
}

.lfdj-notice-box--warning{
  background-color: rgba(142,83,58,.15);
}

.lfdj-notice-box--engagement{
  background-color: rgba(200,164,77,.15);
  border-color: var(--primary-color);
  margin-bottom: 15px;
}

.lfdj-notice-box--engagement strong,
.lfdj-notice-box--engagement i{
  color: var(--primary-color);
}

@media (max-width: 850px){
  .lfdj-notice-box--engagement{ margin-bottom: 15px; }
}

.lfdj-qty-price-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.lfdj-price-inline{
  flex: 1 1 180px;
}

.lfdj-price-tag-inline{
  display: block;
  font-family: var(--font-third);
  font-weight: 700;
  font-size: 18px;
  text-transform: lowercase;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.lfdj-price-caption{
  font-size: 12px;
  color: var(--black-color);
  text-transform: none;
  letter-spacing: normal;
  opacity: .8;
  margin: 0;
}

.lfdj-ref-inline{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  color: var(--black-color);
  text-transform: none;
  letter-spacing: normal;
  opacity: .85;
  margin: 12px 0 0 0;
}

.lfdj-ref-inline code{
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 400;
  font-size: 13px;
  color: var(--black-color);
  opacity: 1;
}

.lfdj-ref-copy-btn-small{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(141,141,141,.5);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--black-color);
  font-size: 12px;
  cursor: pointer;
}

.lfdj-ref-copy-btn-small:hover{
  border-color: var(--primary-color);
  color: var(--primary-color);
}

@media (max-width: 500px){
  .lfdj-boutique-wrap{ padding: 0 5%; }
}

/* ========================== MAILLOTS ========================== */
.lfdj-jersey-tabs{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lfdj-jersey-tabs .lfdj-size-pill{
  text-transform: uppercase;
}

.lfdj-jersey-preview-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
}

.lfdj-jersey-preview-frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lfdj-hidden{
  display: none !important;
}

.lfdj-jersey-text{
  position: absolute;
  left: 50%;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}

.lfdj-jersey-name{
  top: 22.9%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  font-family: var(--font-jersey-name);
  font-weight: 500;
  font-size: 4.7cqw;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lfdj-jersey-number{
  top: 28.5%;
  transform: translate(-50%, -50%);
  font-family: var(--font-jersey-number);
  font-weight: 700;
  font-size: 4.4cqw;
}

.lfdj-design-thumb-blank{
  display: flex;
  align-items: center;
  justify-content: center;
}

.lfdj-design-thumb-blank i{
  font-size: 20px;
  color: var(--black-color);
  opacity: .5;
}

.lfdj-jersey-inputs{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lfdj-jersey-inputs-row{
  display: flex;
  gap: 14px;
}

.lfdj-jersey-number-input{
  width: 50px;
  text-align: center;
}

.lfdj-qty-stepper{
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(141,141,141,.35);
  border-radius: 20px;
  overflow: hidden;
  width: fit-content;
}

.lfdj-qty-btn{
  border: 0;
  background: transparent;
  color: var(--black-color);
  font-family: var(--font-third);
  font-size: 16px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.lfdj-qty-btn:hover{
  background-color: var(--primary-color);
  color: var(--white-color);
}

.lfdj-qty-value{
  width: 40px;
  border: 0;
  border-left: 2px solid rgba(141,141,141,.35);
  border-right: 2px solid rgba(141,141,141,.35);
  background: transparent;
  color: var(--black-color);
  font-family: var(--font-third);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 8px 0;
  -moz-appearance: textfield;
}

.lfdj-qty-value::-webkit-outer-spin-button,
.lfdj-qty-value::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.lfdj-qty-value:focus{
  outline: none;
}

/* ========================== SWEATS ========================== */
.lfdj-sweat-preview-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 2816 / 3457;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white-color);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.lfdj-sweat-preview-frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lfdj-sweat-disclaimer{
  font-size: 11px;
  color: var(--black-color);
  text-align: center;
  opacity: .7;
  margin: 10px 0 0 0;
  text-transform: none;
  letter-spacing: normal;
}

.lfdj-jersey-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black-color);
  font-family: var(--font-third);
  font-weight: 600;
}

.lfdj-jersey-inputs input{
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(141,141,141,.35);
  background: var(--background);
  color: var(--black-color);
  font-size: 14px;
  margin-bottom: 14px;
}

.lfdj-jersey-inputs input:focus{
  outline: none;
  border-color: var(--primary-color);
}

/* ========================== ZOOM IMAGES ========================== */
.lfdj-zoom-btn{
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: var(--white-color);
  color: var(--black-color);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: background-color .2s ease, color .2s ease;
}

.lfdj-zoom-btn:hover{
  background: var(--primary-color);
  color: var(--white-color);
}

.lfdj-zoom-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 60px 20px;
}

.lfdj-zoom-overlay.active{
  display: flex;
}

.lfdj-zoom-stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.lfdj-zoom-stage .lfdj-zoom-btn{
  display: none;
}

.lfdj-zoom-stage .lfdj-boutique-preview-frame,
.lfdj-zoom-stage .lfdj-jersey-preview-frame,
.lfdj-zoom-stage .lfdj-sweat-preview-frame{
  flex: 0 0 auto;
  width: 100%;
}

.lfdj-zoom-stage .lfdj-jersey-tabs,
.lfdj-zoom-stage .lfdj-design-grid{
  flex: 0 0 auto;
  width: 100%;
}

.lfdj-zoom-stage .lfdj-jersey-tabs .lfdj-size-pill{
  color: var(--white-color);
  border-color: rgba(255,255,255,.4);
}

.lfdj-zoom-stage .lfdj-jersey-tabs .lfdj-size-pill.active{
  border-color: var(--primary-color);
  background-color: rgba(200,164,77,.25);
}

.lfdj-zoom-close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white-color);
  color: var(--black-color);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
}