
#customize_section{
    min-height: 90vh;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    

}
.customize_container{
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    margin-top: 20px;
}

.customize_div{
    width: 90%;
   
}


.left-aside{
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
   
}

#add_new_item,#new_ligne, #new_ligne_btn, #new_qr{
    width:100% !important;

}
/* #add_new_item{
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
} */
#new_qr .accordion-item {
    width: 100% !important;
}

 #new_ligne, #new_qr{
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
 }
#new_ligne:hover, #new_qr:hover{
    transform: scale(1.03);
    border-radius: 5px;
}

.input-row{
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    border-radius: 4px;
  
}
.input-container {

    align-items: center;
   
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
}
.input-row {
    display: flex;
    align-items: center;
    width: 100%;
}
input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    padding: 5px;
}


.input-container .font-input {
    width: 10% !important; /* Utilise un pourcentage pour qu'il s'adapte à la taille de la colonne */
    min-width: 45px !important;
    max-width: 60px;
}
.input-row{
    background-color:rgba(250, 250,250);
}
.delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
}
.delete-icon {
    background: transparent;
    color: red;
}
.controls {
    /* display: flex; */
    display: none;
    gap: 5px;
    margin-top: 5px;
    align-items: center;
}
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}
.active {
    font-weight: bold;
}
#input-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.output-container {
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
      /* Ajout de l'image de fond */
    background-image: url(../images/fond/fond_editeur.jpg);
    
    background-size: cover;       /* L’image couvre tout le conteneur */
    background-position: center;  /* Centrage de l’image */
    background-repeat: no-repeat; /* Pas de répétition de l’image */

    /* Optionnel : couleur de fond si l’image ne se charge pas */
    background-color: #f5f5f5;
}
#output_div {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Pour éviter les débordements */
    width: 100% ; /* Empêche de dépasser la taille de l'écran */
    height:  100%;
   
    padding: 40px;

}
#bridge_epp_mat_tille{
    width: 100%;
}
#bridge_epp_mat_tille p{
    margin: 0 !important;
    padding: 0;
    font-size: 10px;

}
#output {
    position: relative;
    border: 1px solid rebeccapurple;
    transform-origin: center center;
  
}
.output-text {
  
    display: block; /* Assurez-vous que chaque texte occupe une nouvelle ligne */
}
.draggable {
    cursor: move;
    user-select: none;
}
.plaque-option-label{
    font-size: 10px !important;
}
.input-group-text{
    background-color: transparent;
    border: none;
    
}
.custom-select {
    appearance: none; /* Supprime le style par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none; /* Supprime la bordure */
    background: transparent; /* Fond transparent */
    padding: 0;
    width:10px; /* Ajustement automatique selon le texte */
    font-size: inherit;
    outline: none; /* Supprime le focus */
  }

.show-options {
    display: block; /* Class to show options when needed */
}
.epp_ops{
    display: none;
}
@media only screen and (max-width: 576px){
/* Ajuster les styles pour s'assurer que les boutons et inputs prennent aussi la largeur complète si nécessaire */
input[type="text"], input[type="number"] {
    
    padding: 5px;
    font-size: 13px;
}

.toggle-btn {
   
   
    cursor: pointer;
    font-size: 13px;
}
.input-container2 {
    display: flex;
    flex-direction: column-reverse; /* Inverser l'ordre des enfants */
    justify-content: start;
    top: 0;
}
.output-container{
   min-height: 30vh;
}


.plaque-options{
    justify-content: space-between !important;
    flex-direction: row !important;
}
.plaque-option-icon{
    font-size: 30px;
}
.plaque-option-label{
    font-size: 10px !important;
}
.output-row{
    display: flex;
    flex-direction: column-reverse !important;
    justify-content: start!important;
}
#output_div {
    margin-top: 5px !important;
}
.bottom-option-place{
    height: 110px !important;
}

.place-bootom-i{
    font-size: 15px;
}
}



/* Media Queries pour ajuster le zoom */
@media (max-width: 1200px) {
    #output {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    #output {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    #output {
        transform: scale(0.7);
    }
}

@media (max-width: 576px) {
    #output {
        transform: scale(0.6);
    }
}
.resize-handle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 5px;
    height: 5px;
    /* background: #ee9e9e; */
    border-radius: 50%;
    cursor: se-resize;
}
.resize-handle-2{
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 5px;
    height: 5px;
    /* background: #ee9e9e; */
    border-radius: 50%;
    cursor: ne-resize;
}
.resize-handle-3 {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 5px;
    height: 5px;
    /* background: #ee9e9e; */
    border-radius: 50%;
    cursor: ne-resize;
}
.resize-handle-4 {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 5px;
    height: 5px;
    /* background: #ee9e9e; */
    border-radius: 50%;
    cursor: se-resize;
}
.preview-text {
    position: absolute;
    width: auto;
    white-space: nowrap;
    color: #000;
    cursor: move;
    user-select: none;
    transition: font-size 0.2s ease;
}
/* Fenêtre modale en plein écran */
.modal-container {


    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;

   
}

/* Contenu de la modale */
.modal-content {
    background: white;
    /* padding: 20px;
    border-radius: 10px; */
    text-align: center;
    position: relative;
    /* width: 90%;
    max-width: 400px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); */
   
}

/* Bouton de fermeture */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Liste des logos */
.logo-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Permet de passer en ligne sur petits écrans */
}

.logo-option {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

.logo-option:hover {
    transform: scale(1.1);
}

/* Zone pour glisser-déposer */
#drop-zone {
    border: 2px dashed #aaa;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

#drop-zone:hover {
    background: #f9f9f9;
}


@media (max-width: 500px) {
    .modal-content {
        width: 95%; /* Plus large sur mobile */
        padding: 15px;
    }

    .logo-option {
        width: 50px;
        height: 50px;
    }
}


/* ***************** */

/* 
/* select materiels  */
/* .select-materiel-container {
    padding: 5px;
    min-height: 50vh;
  } */ */
  
  h1 {
  
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .selectmateriel-grid {
    display: grid;
    gap: 5px;
    padding: 0 5px;
    margin: 0 auto;
  }
  
  @media (min-width: 1024px) {
    .par-materiel-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 60%;
        width: 40vw;
        padding: 0;
    }
  }
  
  
  /* 
  @media (max-width: 767px) {
    .par-materiel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 {
        font-size: 20px;
    }
  } */
  
  .select-materiel-plaque {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;

  }
  .select-materiel-grid{

    overflow-y: scroll;
    overflow-x: hidden;
  }
  .select-materiel-plaque:hover {
    transform: scale(1.05);
  }
  
  .select-materiel-plaque img {
    width: 100%;

    height:10vh;
    
    border-radius: 4px;
  }
  
  .select-materiel-plaque p {
    margin: 10px 0 0;
    color: #333;
    font-size: 14px;
    text-align: center;
  }
  
  .select-materiel-plexiglas { border-color: #ffd700; }
  .select-materiel-aluminium { border-color: #c0c0c0; }
  .select-materiel-laiton { border-color: #d4a017; }
  .select-materiel-pvc-eco { border-color: #2ecc71; }
  .select-materiel-dibond-eco { border-color: #ffffff; }



  /* Fenêtre modale en plein écran */
#submit-processing-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
    z-index: 2147483646;
}

.submit-processing-content {
    min-width: 280px;
    max-width: 420px;
    padding: 22px 24px;
    border-radius: 14px;
    background: rgba(25, 25, 25, 0.92);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.submit-processing-content p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.submit-processing-content small {
    color: rgba(255, 255, 255, 0.82);
}

#success_add_card{
 /* Cachée par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height:100% !important;
    background: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647; /* Toujours au-dessus de toutes les couches de l'editeur */
    backdrop-filter: blur(3px);
}

/* Contenu de la modale */
.success_add_card-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    position: relative;
    width: 90%;
    max-width: 700px;
    min-width: 350px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bouton de fermeture */
.close-modal-section{
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f8f9fa;
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #6c757d;
}

.close-modal-section:hover {
    background: #e9ecef;
    color: #495057;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .success_add_card-content {
        width: 88%;
        max-width: 520px;
        min-width: auto;
        max-height: 78vh;
        overflow-y: auto;
        padding: 22px;
        border-radius: 12px;
    }

    .close-modal-section {
        width: 34px;
        height: 34px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .success_add_card-content {
        width: 92%;
        max-height: 72vh;
        padding: 18px;
    }
}

.success-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.success-banner i {
    font-size: 24px;
}

.product-image-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.product-image-preview img {
    max-height: 250px;
    object-fit: contain;
    width: 100%;
}

.product-details-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.product-title {
    color: #212529;
    font-weight: 700;
    font-size: 20px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    color: #6c757d;
    font-size: 18px;
    width: 20px;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 110px;
}

.detail-value {
    color: #212529;
    font-weight: 500;
}

.detail-item.total-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 10px;
    padding: 15px;
    border-radius: 8px;
    border: none;
}

.detail-item.total-price i,
.detail-item.total-price .detail-label,
.detail-item.total-price .detail-value {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.go-to-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    text-align: center;
}

.go-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}



.quantity_editeur_page {
  display: flex;
  align-items: center;
}
.editeur-change-quantity{
  cursor: pointer;
}