/* css/style.css */
body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    color: #555;
}

.ecran-principal {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 600px;
}

.partie-gauche, .partie-droite {
    padding: 20px;
}

.partie-gauche {
    width: 40%;
    background-color: #eee;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer verticalement */
    justify-content: center; /* Centrer horizontalement */
}

.partie-droite {
    width: 60%;
    overflow: auto;
}

#code_article {
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
    width: 100%; /* Prendre toute la largeur du parent */
    box-sizing: border-box; /* Pour que padding et border soient inclus dans la largeur */
    text-align: center; /* Centrer le texte */
}

.cadre-articles {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 10px;
    min-height: 150px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.cadre-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cadre-articles li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.cadre-articles li:last-child {
    border-bottom: none;
}

.total-panier {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: right;
    font-size: 5em;
}

.erreur, .succes {
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.erreur {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.succes {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.options-affichage {
    text-align: left;
    margin-top: 20px;
}

.options-affichage a {
    margin: 0 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

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

form input[type="text"],
form input[type="number"],
form input[type="file"] {
    width: calc(100% - 22px); /* Ajuster la largeur pour tenir compte du padding et border */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; /* Inclure padding et border dans la largeur */
}

form button {
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
}

form button[type="submit"] {
    background-color: #007bff; /* Bleu pour les boutons principaux */
}

form button[type="button"] {
    background-color: #6c757d; /* Gris pour les boutons secondaires/annuler */
}

form button:hover {
    opacity: 0.9;
}

.image-article-animation {
    position: absolute; /* Position absolue pour l'animation */
    left: 20px; /* Position de départ à gauche */
    top: 50%;
    transform: translateY(-50%); /* Centrer verticalement */
    padding: 20px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
    z-index: 10; /* Assurer que l'image est au-dessus des autres éléments */
    opacity: 0; /* Début invisible */
}

.image-article-animation.animate {
    animation: moveImage 2s forwards ease-out; /* Appliquer l'animation */
}

@keyframes moveImage {
    0% {
        left: 20px;
        opacity: 1;
    }
    100% {
        left: calc(40% - 20px - 100px); /* Déplacer vers la droite (ajuster la valeur selon la largeur de .partie-gauche et de l'image) */
        opacity: 0;
        transform: translateY(-50%) translateX(0); /* Assurer le centrage vertical */
    }
}

.button-pdf {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    background-color: #ffc107; /* Jaune orangé, exemple de couleur pour un bouton PDF */
    color: #333;
    text-decoration: none; /* Enlever le soulignement par défaut des liens */
    cursor: pointer;
    margin-left: 10px; /* Espacement par rapport aux autres liens */
}

.button-pdf:hover {
    background-color: #ffca2b; /* Couleur légèrement plus claire au survol */
}