@font-face {
    font-family: "Arial";
    src:url("/assets/fonts/arial.ttf") format("Truetype");
}

.table_en_tete {
    border-collapse: collapse;
}

.td_en_tete {
    padding: 1;
}

#cadre{
    display: flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content: center;
    background:yellow;
    overflow:auto;
    padding: 5px 5px;
    width:1100px;
    padding-left:0px;
    padding-right:0px;
    padding-top:0px;
    padding-top:10px;
    font-family: "Arial";
}

.main-container {
    width: 100%; /* Largeur fixe */
    height: 100%;
    padding: 0px;
    position:relative;
    overflow: hidden;
    border: 3px dashed green;
    border-radius:5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background:none;
}

.tab-buttons {
    width: 100%;
    height: 160px;
    background-color: rgba(220, 180, 40, 0.6);
    border-bottom: 1px solid #ccc;
    padding: 10px 20px; /* Espacement interne */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer verticalement */
    justify-content: space-between; /* Espacement entre les éléments */
}
.content-wrapper {
    display: flex;
    width: 100%;
    background-color:none;
    padding:0px;
    overflow:hidden;
    height: calc(100% - 160px);
    
}
.content-tabs{
    display: flex;
    padding:0px;
    overflow:hidden;
    height: 100%; 
}

/***********choix comment lire les donnees de l'en tete*************/
/* Conteneur principal */
.tools-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: rgba(211, 220, 50, 0.6);
    overflow-y: auto;
    padding: 0;
}

/* Conteneur des contrôles d'image */
.global-image-controls {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto; /* Changé de calc(100% - 40px) */
    padding: 10px;
    box-sizing: border-box;
    background: none;
    gap: 10px;
}

/* Titre */
.global-image-controls-title {
    width: calc(100% - 17px);
    text-align: center;
    padding: 5px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

/* Note d'information */
.image-upload-note,.global-size-controls-note {
    width: calc(100% - 40px);
    padding: 10px 15px;
    background-color: #e3f2fd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    border-left: 4px solid #2196f3;
    margin-bottom: 10px;
}

.image-upload-note i, .global-size-controls-note i {
    color: #2196f3;
    margin-right: 8px;
}

/* Conteneur des sélecteurs */
.selection-controls {
    display: flex;
    flex-direction: column;
    width: calc(100% - 17px);
    height: auto; /* Suppression de la hauteur fixe */
    background-color: rgba(211, 220, 50, 0.6);
    padding: 10px;
    box-sizing: border-box;
    gap: 10px;
}

/* Groupes de formulaire */
.form-group-classSelect {
    width: 100%;
    display: flex;
    /*align-items: center;
    flex-wrap:wrap;
            align-items:center;
            justify-content: space-between;*/
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.form-group-classSelect label {
    width: 70px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
}

.form-group-classSelect select {
    height: 33px;
    flex:1;
    /*width: calc(100% - 200px);*/
    font-size: 16px;
    padding: 3px;
    border: 1.3mm ridge rgba(220, 180, 40, 0.6);
    border-radius: 5px;
    background-color: white;
}

/* Groupe de téléchargement */
.image-upload-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-subgroup {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: none; /* Suppression du fond rouge */
    gap: 5px;
}

.upload-wrapper {
    display: flex;
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

/* Boutons */
.upload-btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s;
    width: 100%;
}

.upload-btn:hover {
    background-color: #45a049;
}

/* Compteurs */
#globalImagesCount, #globalLogoCount {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
}

/* Structure des choix */
/*.structure-choice {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.structure-choice label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.structure-choice input[type="radio"] {
    margin: 0;
}*/

.tab-buttons-title {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    padding: 5px;
    top:0px;
    text-align:center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: default;
    background-color: rgba(220, 180, 40, 0.6);
    padding: 0 10px;
    gap: 10px;
    position: relative;
    cursor:default;
}

.tab-buttons-buttons-container {
    display: flex;
    flex-wrap: wrap; /* Permet le passage à la ligne */
    justify-content: center; /* Centre les éléments */
    gap: 10px; /* Espacement entre les boutons */
    width: 100%;
    padding: 0 10px; /* Padding latéral */
    box-sizing: border-box;
}

.tab-buttons-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px dashed #F442A3;
    border-radius: 10px;
    padding: 10px 15px;
    margin: 0 5px; /* Espacement entre les boutons */
    cursor: pointer;
    transition: all 0.3s ease;
}
#tab-buttons-btn-saisir,#tab-buttons-btn-excel,#tab-buttons-btn-api {
    width: 25px;
    height: 35px;
    
}
#tab-buttons-btn-ramdatech-apps {
    width: 130px;
    height: 35px;
    
}

.tab-buttons-btn:hover {
    transform: scale(1.1);
    background: rgba(220, 180, 40, 0.6);
}

.tab-buttons-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}
#tab-buttons-btn-saisir i,#tab-buttons-btn-api i,#tab-buttons-btn-ramdatech-apps i {
    color: #F442A3;
}
#tab-buttons-btn-excel i {
    color: #217346;
}

.floating-actions.hidden,.floating-trigger.hidden {
    display: none;
}

/* Ajouts CSS pour l'amélioration */
.tab-content.hidden {
    display: none;
}

.tab-content {
    position: absolute;
    /*width: 100%;*/ /* 100% moins les marges */
    top: 3px;
    bottom: 3px;
    top: 0px; /* Ajustez selon la hauteur de vos tab-buttons */
    left: 3px; /* Marge gauche */
    right: 3px; /* Marge droite */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.tab-content.active {
    opacity: 1;
    padding: 0px;
    overflow-y: auto;
}

.tab-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.tab-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Style pour l'éditeur d'image (popup) */
.image-editor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cropper-container {
    width: 90%;
    max-width: 500px;
    height: 60vh;
    margin: 0 auto;
    position: relative;
    background: #000;
}

#imagePreview {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.preview-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 15px auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.editor-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.editor-buttons button {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.3s;
}

.editor-buttons button:first-child {
    background-color: #4CAF50;
    color: white;
}

.editor-buttons button:last-child {
    background-color: #f44336;
    color: white;
}

.editor-buttons button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Style pour le cropper (surcharge) */

/* Responsive pour mobile */
/*@media (max-width: 768px) {
    .cropper-container {
        height: 50vh;
        width: 95%;
    }*/
    
    /* Conteneur principal */
.cropper-container {
    direction: ltr; /* Sens de lecture */
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

/* Boîte de vue (zone de crop visible) */
.cropper-view-box {
    outline: 2px solid cyan; /* Couleur de la bordure */
    /*outline-color: rgba(52, 152, 219, 0.75); /* Version RGBA */
}

/* Zone de crop (masque) */
.cropper-face {
    background-color: white; /* Couleur du masque */
    opacity: 0.1; /* Transparence */
}

/* Lignes de guide */
.cropper-line {
    background-color: #69f; /* Couleur des guides */
    display: none !important;
}

/* Points de redimensionnement */
.cropper-point {
    background-color: yellow; /* Couleur des poignées */
    width: 10px; /* Taille */
    height: 10px;
    opacity: 0.75;
}

/* Zone modale (autour de la zone de crop) */
.cropper-modal {
    background-color: rgba(0, 0, 0, 0.5); /* Arrière-plan semi-transparent */
}

/* Personnalisation responsive */
@media (max-width: 768px) {
    .cropper-container {
        height: 50vh;
        width: 95%;
    }
}
.editor-buttons {
    flex-direction: column;
    align-items: center;
}

.editor-buttons button {
    width: 80%;
    margin-bottom: 10px;
}

/*****************pour editer ou supprimer le document particulier dejas genere*******/

/* Conteneur des boutons flottants */
.floating-actions {
    position: absolute;
    height:0px;
    width:calc(100% - 20px);
    top: 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    /*justify-content: space-between;*/
    justify-content: center;
    gap:20px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    padding: 3px 10px;
    border-radius: 0px; /* Forme ovale */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ombre subtile */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
}

.floating-actions.active {
    height: 100%;
    opacity: 1;
}

.floating-trigger.active i {
    transform: rotate(180deg);
}

/* Animation des boutons */
.action-btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.2s ease 0.1s;
}

.floating-actions.active .action-btn {
    transform: translateY(0);
    opacity: 1;
}

.floating-trigger {
    position: absolute;
    height:20px;
    width:20px;
    top: -10px;
    left: 50%;
    transform: translateX(-50%); /* Centre horizontalement seulement */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    padding: 0px;
    border-radius: 10px; /* Forme ovale */
    /*backdrop-filter: blur(5px); /* Effet de flou sur le fond */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ombre subtile */
    cursor: pointer;
    opacity: 1 !important;
    transition: all 0.3s ease;
}
.floating-trigger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width:20px;
    height:10px;
    background-color: white;
    border: 2px dashed #F442A3;
    border-radius: 10px;
    padding: 7px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-trigger-btn i {
    font-size: 25px;
    color: #F442A3;
    transition: transform 0.3s ease;
}
/* Style commun des boutons (comme votre style original) */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width:30px;
    height:30px;
    background-color: white;
    border: 2px dashed #F442A3;
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.1); /* Légère mise à l'échelle au survol */
    background: rgba(220, 180, 40, 0.6);
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.action-btn div {
    font-weight: 600;
    font-size:10px;
    color: #333;
}

/* Couleurs spécifiques */
.delete-action i {
    color: #F442A3;
}

.edit-action i {
    color: #4CAF50;
}

.edit-action {
    border-color: #4CAF50;
}

.edit-form {
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 5px;
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.edit-form input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/************* Message de confirmation **********/
.confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.confirm-content {
    background: url('/assets/icons/background/background_1.png') center/cover;
    padding: 15px;
    border-radius: 10px;
    border: 5mm ridge rgba(211, 220, 50, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 200px; /* Hauteur fixe totale */
    position: relative;
}

#confirm-message {
    height: 150px; /* Hauteur fixe comme demandé */
    left: 5px;
    right: 5px;
    display:flex;
    overflow-y: auto; /* Défilement vertical si nécessaire */
    position:absolute;
    top:0px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-sizing: border-box;
}

/* Barre de défilement personnalisée */
#confirm-message::-webkit-scrollbar {
    width: 8px;
}

#confirm-message::-webkit-scrollbar-thumb {
    background-color: rgba(211, 220, 50, 0.6);
    border-radius: 4px;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 5px; /* Positionnement absolu en bas */
    left: 5px;
    right: 5px;
    gap: 15px;
    background:rgba(211, 220, 50, 0.6);
    padding:5px;
    border-radius:5px;
}

.confirm-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 40px;
    background-color: white;
    border: 2px dashed;
    border-radius: 10px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    /*flex: 1; /* Les boutons prennent tout l'espace disponible */
}

.confirm-btn:hover {
    transform: scale(1.05);
}

.confirm-btn i {
    font-size: 20px;
    margin-bottom: 3px;
}

.confirm-btn div {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

/* Style bouton Annuler */
.cancel-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}

.cancel-btn i {
    color: #4CAF50;
}

/* Style bouton Confirmer */
.ok-btn {
    border-color: #F442A3;
    color: #F442A3;
}

.ok-btn i {
    color: #F442A3;
}



.tab-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.tab-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}



/* Conteneur principal */
.form-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-image: url('/assets/icons/background/background_1.png');
    border-radius: 8px;
    overflow: hidden;
    padding:0px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-container-edit {
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
    flex-direction: column;
    background-image: url('/assets/icons/background/background_1.png');
    border-radius: 8px;
    overflow: hidden;
    padding:0px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Barre title */
.form-title {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    padding: 5px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: default;
    background-color: rgba(220, 180, 40, 0.6);
    padding: 0 10px;
    gap: 10px;
    position: relative;
    cursor:default;
}
/* Barre d'onglets */
.form-tab-buttons {
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    background-color: rgba(220, 180, 40, 0.6);
    padding: 0 10px;
    gap: 10px;
    position: relative;
}

/* Boutons d'onglets */
.form-tab-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    background-color: transparent;
    border: none;
    font-size: 14px;
}

.form-tab-btn:hover {
    background-color: #e0e0e0;
}

.form-tab-btn.active {
    background-color: #F442A3;
    color: white;
}

.form-edit-tab-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    background-color: transparent;
    border: none;
    font-size: 14px;
}

.form-edit-tab-btn:hover {
    background-color: #e0e0e0;
}

.form-edit-tab-btn.active {
    background-color: #F442A3;
    color: white;
}

/* Bouton de fermeture */
.form-tab-close {
    width: 30px;
    height: 30px;
    display: flex;
    position:absolute;
    top:0px;
    right:0px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index:2;
    background-color: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Bordure transparente par défaut */
    flex-shrink: 0; /* Empêche les icônes de rétrécir */
}

.form-tab-close i {
    font-size: 25px; /* Taille des icônes */
    color: #F442A3; /* Couleur des icônes */
    margin-bottom: 10px;
    transform: translateY(20%);
}

.form-tab-close:hover {
    transform: rotate(90deg);
}

/* Contenu des onglets */
.form-tab-content {
    height: calc(100% - 40px - 40px);
    width: 100%;
    padding-bottom:5px;
    box-sizing: border-box; /* Inclut le padding */
    overflow-y: auto;
    background-color: white;
    display: flex;
    position: relative;
    
}

/* Panneaux d'onglets */
.form-tab-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 5px;
    animation: fadeIn 0.3s ease;
    
}

.form-tab-panel.active {
    display: flex;
}

.form-edit-tab-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 5px;
    animation: fadeIn 0.3s ease;
    
}

.form-edit-tab-panel.active {
    display: flex;
}

/* Groupes de formulaire */
.form-group {
    width: calc(100% - 25px);
    gap: 5px; /* Remplacé par gap du parent */
    padding:0px 3px;
    
}
.form-group-2-input {
    width: calc(100% - 15px);
    display: flex;
    flex-wrap: wrap; /* Permet le passage à la ligne */
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding:0px 3px;
    
    
}
.form-group-2-input label {
    width: calc(50% - 10px);
    padding: 2px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    
}

.form-group label {
    display: block;
    padding: 2px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    
}


/*.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}*/

.form-group input[type="text"],.form-group input[type="password"],
.form-group input[type="file"] {
            width: 100%;
            height:33px;
            font-size:16px;
            padding: 3px;
            border: 1.3mm ridge rgba(220, 180, 40, 0.6);
            border-radius: 5px;
            position: relative;
        }
.form-group-2-input input[type="text"]{
            width: calc(50% - 18px);
            height:33px;
            font-size:13px;
            padding: 3px;
            border: 1.3mm ridge rgba(220, 180, 40, 0.6);
            border-radius: 5px;
            position: relative;
        }

/* Barre d'actions */
.form-actions {
    display: flex;
    position: relative;
    width: calc(100% - 10px);
    height: 40px;
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
    align-items: center;
    background:rgba(220, 180, 40, 0.6);
    padding:5px;
    bottom:0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

.form-actions-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.btn-valid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*width: 35px; */
    height: 35px; /* Hauteur fixe */
    background-color: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Bordure transparente par défaut */
    flex-shrink: 0; /* Empêche les icônes de rétrécir */
}

.btn-valid:hover {
    transform: scale(1.1);
}
.btn-valid i {
    font-size: 32px; /* Taille des icônes */
    color: #F442A3; /* Couleur des icônes */
    margin-bottom: 10px;
    transform: translateY(20%);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

        









/**************pour onglet excel***********************/
/* Conteneur principal */

/* Barre title */
.form-title-excel {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    padding: 5px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: rgba(220, 180, 40, 0.6);
    padding: 0 10px;
    gap: 10px;
    position: relative;
    cursor:default;
}

.form-structure-title{
display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: rgba(211, 220, 50, .6);
    padding: 0 10px;
    gap: 10px;
    position: relative;
    cursor:default;
}
/* Barre d'onglets */
.form-tab-buttons-excel {
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    background-color: rgba(220, 180, 40, 0.6);
    padding: 0 10px;
    gap: 10px;
    position: relative;
}

/* Boutons d'onglets */
.form-tab-btn-excel {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    background-color: transparent;
    border: none;
    font-size: 14px;
}

.form-tab-btn-excel:hover {
    background-color: #e0e0e0;
}

.form-tab-btn-excel.active {
    background-color: #F442A3;
    color: white;
}



/* Bouton de fermeture */
.form-tab-close {
    width: 30px;
    height: 30px;
    display: flex;
    position:absolute;
    top:0px;
    right:0px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index:2;
    background-color: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.form-tab-close i {
    font-size: 25px;
    color: #F442A3;
    margin-bottom: 10px;
    transform: translateY(20%);
}

.form-tab-close:hover {
    transform: rotate(90deg);
}

/* Contenu des onglets */
.form-tab-content-excel {
    height: calc(100% - 40px - 80px);
    width: 100%;
    padding-bottom:5px;
    box-sizing: border-box;
    overflow-y: auto;
    background-color: white;
    display: flex;
    position: relative;
}

/* Panneaux d'onglets */
.form-tab-panel-excel {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

.form-tab-panel-excel.active {
    display: flex;
}

/* Groupes de formulaire */
.form-group {
    width: calc(100% - 25px);
    gap: 5px;
    padding:0px 3px;
}

.form-group label {
    display: block;
    padding: 2px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    height:33px;
    font-size:16px;
    padding: 3px;
    border: 1.3mm ridge rgba(220, 180, 40, 0.6);
    border-radius: 5px;
    position: relative;
}

/* Note d'image */
.image-upload-note {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 10px;
}

.image-upload-note i {
    color: #F442A3;
    margin-right: 5px;
}

/* Barre d'actions Excel */
.form-actions-excel {
    display: flex;
    width: calc(100% - 10px);
    height: 70px;
    justify-content: center;
    gap: 5px;
    align-items: center;
    background: rgba(220, 180, 40, 0.6);
    padding: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x:auto;
}

/* Boutons dans la barre d'actions */
.form-actions-excel .btn-valid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 35px;
    background-color: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

.form-actions-excel .btn-valid:hover {
    background-color: rgba(244, 66, 163, 0.2);
}

.form-actions-excel .btn-valid i {
    font-size: 24px;
    color: #F442A3;
    margin-bottom: 5px;
}

.form-actions-excel .btn-valid .form-actions-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
    text-align: center;
}


/* Conteneur des contrôles d'image */
.global-size-controls {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto; /* Changé de calc(100% - 40px) */
    padding: 10px;
    box-sizing: border-box;
    background: none;
    gap: 10px;
}

/* Titre */
.global-size-controls-title {
    width: calc(100% - 17px);
    text-align: center;
    padding: 5px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.form-group-tailleSelect,.form-group-uniteSelect {
    width: 100%;
    display: flex;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.form-group-tailleSelect label,.form-group-uniteSelect label {
    width: 70px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 15px;
}

.form-group-tailleSelect select,.form-group-uniteSelect slect {
    height: 33px;
    flex:1;
    /*width: calc(100% - 200px);*/
    font-size: 16px;
    padding: 3px;
    border: 1.3mm ridge rgba(220, 180, 40, 0.6);
    border-radius: 5px;
    background-color: white;
}

