/* body supprimé - WordPress */ .emc-temp {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}
.emc-container {
  display: flex;
  flex-wrap: wrap;
  width: 1400px;
  max-height: 98vh;
  margin: 0.5rem auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: scale(0.57);
  transform-origin: top center;
}
.emc-config {
  flex: 1 1 350px;
  min-width: 320px;
  padding: 1rem;
  background: #fafafa;
  border-right: 1px solid #eee;
  overflow-y: auto;
  max-height: 98vh;
}
.emc-formats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.3rem;
}
.emc-formats input[type="radio"] {
  display: none; /* Hide the default radio button */
}
.emc-formats label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  /* margin-bottom: 0.5rem; */ /* Remove or adjust if span has padding */
}
.emc-formats label span {
  display: block;
  padding: 0.3rem 0.6rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
}
.emc-formats input[type="radio"]:checked + span {
  background-color: #2d253a;
  color: #fff;
  border-color: #2d253a;
  box-shadow: 0 2px 8px rgba(45, 37, 58, 0.3);
}
.emc-formats label span:hover {
    background-color: rgba(45, 37, 58, 0.05);
    border-color: #2d253a;
    transform: translateY(-1px);
}
.emc-formats input[type="radio"]:checked + span:hover {
    background-color: #4b3e5c;
    border-color: #4b3e5c;
    box-shadow: 0 4px 12px rgba(45, 37, 58, 0.4);
}
.emc-finishes {
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.emc-finishes > div {
  margin-bottom: 0.5rem;
}
.emc-finishes > div:last-child {
  margin-bottom: 0;
}
.emc-finishes > div > span {
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}
.emc-colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  margin-top: 0.2rem;
}
.emc-color-option {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 5px;
  border: 2px solid #fff;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  object-fit: cover !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: block !important;
}
.emc-color-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.emc-color-option.selected {
  border: 3px solid #2d253a;
  box-shadow: 0 4px 12px rgba(45, 37, 58, 0.5);
  transform: translateY(-2px);
}

/* Material/color tile wrapper and label to mirror border UI */
.emc-material-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.05rem;
}

.emc-material-label {
  margin-top: 0.15rem;
  font-size: 0.55rem;
  font-weight: 600;
  color: #555;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  line-height: 0.9;
}
.color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}
.color:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.color.selected {
  border: 3px solid #2d253a;
  box-shadow: 0 4px 12px rgba(45, 37, 58, 0.5);
  transform: translateY(-2px);
}
.emc-logo-upload {
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}
.emc-logo-label {
  display: inline-block;
  cursor: pointer;
  color: #888;
  padding: 0.4rem 0.6rem;
  border: 2px dashed #ccc;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}
.emc-logo-label:hover {
  border-color: #2d253a;
  background-color: rgba(45, 37, 58, 0.05);
  transform: translateY(-1px);
}

.emc-logo-position {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.emc-position-control {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
  gap: 0.4rem;
}

.emc-position-control:last-child {
  margin-bottom: 0;
}

.emc-position-control label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  min-width: 120px;
}

.emc-position-slider {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.emc-position-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2d253a;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.emc-position-slider::-webkit-slider-thumb:hover {
  background: #4b3e5c;
  transform: scale(1.1);
}

.emc-position-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2d253a;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.emc-position-control span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d253a;
  min-width: 35px;
  text-align: right;
}
.emc-logo-label img {
  width: 28px;
  display: block;
  margin: 0 auto 0.2rem;
}
.emc-logo-label span {
  font-size: 0.75rem;
}
#logoPreview img {
  max-width: 60px;
  margin-top: 0.3rem;
}
.emc-preview {
  flex: 2 1 500px;
  min-width: 320px;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}
.emc-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin-right: -160px;
}
.emc-menu-mockup {
  width: 220px;
  height: 290px;
  /* background: #444; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-color: #888; */ /* Remove default grey background */
  border-radius: 0px;
  position: relative;
  display: flex; /* Keep flex for centering text and logo */
  align-items: center; /* Keep flex for centering text and logo */
  justify-content: center; /* Keep flex for centering text and logo */
  flex-direction: column; /* Keep flex for centering text and logo */
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Increased opacity for a darker shadow */
}
.emc-mockup-base-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image covers the area */
}
.emc-menu-texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.8;
  border-radius: 0;
  z-index: 2;
  pointer-events: none;
}

.emc-reflection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/Reflections.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  border-radius: 0;
  z-index: 7;
  pointer-events: none;
}
.emc-mockup-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add subtle text shadow for contrast */
}
#emcLogoOnMenu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  max-height: 40%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
  z-index: 3; /* Ensure logo stays above overlay and base image */
}
.emc-actions {
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%) scale(0.57);
  display: flex;
  gap: 1rem;
  justify-content: center;
  z-index: 1000;
}
.emc-container button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 2rem;
  background: #2d253a;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
button.secondary {
  background: #fff;
  color: #2d253a;
  border: 2px solid #2d253a;
}
button:hover {
  background: #4b3e5c;
}
@media (max-width: 900px) {
  .emc-container {
    flex-direction: column;
    width: 1400px;
    transform: scale(0.27);
    transform-origin: top center;
  }
  .emc-config, .emc-preview {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-width: unset;
    padding: 0.8rem;
  }
  .emc-preview {
    border-bottom: none;
    order: -1;
    position: static;
    padding-bottom: 0.8rem;
  }
  .emc-mockup-wrapper {
    margin-bottom: 1rem;
    margin-right: -80px;
    flex-grow: unset;
  }
  .emc-actions {
    position: fixed;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scale(0.27);
  }
  .emc-config {
    order: 1;
  }
}

@media (max-width: 600px) {
  .emc-container {
    transform: scale(0.23);
  }
  .emc-actions {
    transform: translateX(-50%) scale(0.23);
  }
}

@media (max-width: 400px) {
  .emc-container {
    transform: scale(0.20);
  }
  .emc-actions {
    transform: translateX(-50%) scale(0.20);
  }
}

.emc-config h2 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.emc-config h3 {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: #2d253a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emc-border-options {
  margin-bottom: 0.5rem;
}

.emc-border-interface {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.emc-border-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d253a;
  text-align: center;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.emc-border-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .emc-border-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }
}

.emc-border-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.25rem 0.1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.emc-border-option:hover {
  background-color: rgba(45, 37, 58, 0.05);
  border-color: rgba(45, 37, 58, 0.2);
  transform: translateY(-1px);
}

.emc-border-option.selected {
  background-color: rgba(45, 37, 58, 0.1);
  border-color: #2d253a;
  box-shadow: 0 4px 12px rgba(45, 37, 58, 0.2);
  transform: translateY(-1px);
}

.emc-border-preview-box {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  margin-bottom: 0.1rem;
  transition: all 0.3s ease;
}

.emc-border-option:hover .emc-border-preview-box {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.emc-border-option.selected .emc-border-preview-box {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.emc-border-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: #555;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  line-height: 0.9;
}

.emc-border-option.selected .emc-border-label {
  color: #2d253a;
  font-weight: 600;
}

.emc-menu-creator-image {
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-height: 290px;
  z-index: 1;
}

.emc-creator-preview {
  max-width: 100%;
  max-height: 290px;
  height: auto;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1;
}

