body {
    background-color: #f3f3f3;
    font-family: "Arial", "Helvetica", sans-serif;
    margin: 0;
    padding: 0;
}

#header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: #0066cc;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.btnLog {
    display: flex;
    gap: 1rem;
}

.btnLog button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#connecter {
    background-color: transparent;
    border: 1px solid #0066cc;
    color: #0066cc;
}

#connecter:hover {
    color: white;
}

#connecter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0066cc;
    transition: all 0.3s ease;
    z-index: -1;
}

#connecter:hover::before {
    left: 0;
}

#enregistrer, #deconnecter {
    background-color: #0066cc;
    border: 1px solid #0066cc;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

#enregistrer:hover, #deconnecter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

#main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.presentation {
    margin-top: 200px;;
    padding: 2rem;
    max-width: 800px;
    align-self: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

h1{
    text-align: center;
}

p{
    text-align: justify;
}

.loginbox{
    margin-top: 130px;
    width: 50%;
    padding: 2rem;
    max-width: 800px;
    align-self: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

#username, #password{
    width: 80%;
    border-radius: 10px;
    border: solid;
    border-width: 2px;
    height: 40px;
}

#btnConnecter, #btnEnregistrer{
    padding: 20px;
    border-radius: 10px;
    border: none;
    transition: 500ms;
}

#btnConnecter:hover, #btnEnregistrer:hover{
    background-color: rgb(218, 218, 218);
    transition: 500ms;
    cursor: pointer;
}

h3{
    font-size: 1.9em;
}

#panier{
    width: 27px;
}

#panier:hover{
    cursor: pointer;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Carte de produit individuelle */
.card {
    background: white;
    width: 30%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Image du produit */
.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f8f8;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Zone d'informations du produit */
.card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Nom du produit */
.nom {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Description du produit */
.description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Prix du produit */
.prix {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0066cc;
    margin-top: auto;
    margin-bottom: 0.8rem;
}

/* Bouton d'ajout au panier */
.btn-ajouter {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ajouter:hover {
    background-color: #0055aa;
}


.inputStock{
    padding: 10px;
    border-radius: 10px;
    border: solid;
    border-width: 1px;
}

.quantiteStock{
    display: flex;
    gap: 70px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.crudArticle{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 35%;
    padding-top: 60px;
    padding-bottom: 40px;
    box-shadow: inset;
    border-radius: 10px;
}

.crudStock{
    padding: 10px;
    width: 70%;
    border-radius: 10px;
    border: solid;
    border-width: 1px;
}

.btnBleu{
    background-color: #0066cc;
    border: 1px solid #0066cc;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 500ms;
}

.btnBleu:hover{
    background-color: #0051a1;
    transition: 500ms;
}

.btnBleu2{
    background-color: #0066cc;
    border: 1px solid #0066cc;
    margin-top: 20px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 500ms;
}

.btnBleu2:hover{
    background-color: #0051a1;
    transition: 500ms;
}

/* Style de la table */
#table {
    width: 90%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    font-family: "Arial", "Helvetica", sans-serif;
}

/* En-têtes de la table */
#table th {
    background-color: #0066cc;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Cellules de la table */
#table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* Effet sur les lignes au survol */
#table tbody tr:hover {
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

/* Dernière ligne sans bordure en bas */
#table tbody tr:last-child td {
    border-bottom: none;
}

#table th[colspan="3"] {
    text-align: center;
}

.btn-action {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-modifier {
    background-color: #ffc107;
    color: #333;
}

.btn-modifier:hover {
    background-color: #e0a800;
}

.btn-supprimer {
    background-color: #dc3545;
    color: white;
}

.btn-supprimer:hover {
    background-color: #c82333;
}

.btn-gerer-stock {
    background-color: #17a2b8;
    color: white;
}

.btn-gerer-stock:hover {
    background-color: #138496;
}

.hidden{
    display: none !important;
}