.article-container {
    max-width: 950px;
    margin: auto;
    background: var(--papier);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--ombre-douce);
    margin-bottom: 20px;
    margin-top: 140px;
}

h1 {
    text-align: center;
    color: var(--or);
    font-size: 2.2em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--or-foncé);
    padding-bottom: 10px;
}

.main-image-wrapper {
    width: 100%;
    max-width: 600px;
    height: 400px; /* taille fixe pour toutes les grosses images */
    margin: 0 auto 10px auto;
    border: 6px solid var(--or);
    border-radius: 8px;
    box-shadow: var(--ombre-douce);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-image {
    height: 100%;
    object-fit: cover;
    object-position: center; /* centre l'image dans le cadre */
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnails .thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    border: 2px solid var(--transparent); /* couleur par défaut */
    border-radius: 4px;
    transition: border 0.2s;
    box-sizing: border-box; /* inclut la bordure dans la taille */
}

.thumbnails .thumb:hover {
    border: 3px solid var(--or); /* n'agrandit plus l'image */
}


.description {
    background: #fffdf5;
    padding: 20px;
    border-left: 4px solid var(--or-foncé);
    line-height: 1.6em;
    margin-bottom: 30px;
    margin-top: 10px;
}

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

.characteristics th {
    background: var(--or);
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 1.1em;
}

.characteristics td {
    padding: 10px;
    border-bottom: 1px solid var(--or-foncé);
}

.characteristics tr:nth-child(even) {
    background: var(--papier);
}
/* Bouton Retour */
.back .button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--or);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.back .button:hover {
    background-color: #e1c96e;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Prix */
.price-container {
    display: flex;
    justify-content: space-between; /* bouton à gauche, prix à droite */
    align-items: center;           /* tout aligné verticalement */
    max-width: 900px;
    margin: 20px auto 0 auto;
}
.price {
    display: inline-block;
    border: 3px dashed var(--or-foncé);
    padding: 10px 20px;
    font-size: 1.2em;
    color: var(--marron-foncé);
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    background: #fffdf5;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* Statut */
.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #fff;
    margin-left: 8px;
}

.status.sold-out {
    background-color: #a00;
}

.status.in-stock {
    background-color: #28a745;
}


.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.article-navigation .button {
    padding: 8px 12px;
    background: var(--marron-foncé);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    max-width: 45%;
    display: inline-flex;
    align-items: center;
    position: relative;   /* permet aux pseudo-éléments de bien se placer */
    overflow: hidden;
}

/* On tronque seulement le texte, pas la flèche */
.article-navigation .button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    flex: 1; /* le texte prend l'espace dispo */
}

/* Bouton précédent → flèche toujours à gauche */
.article-navigation .prev::before {
    content: "←";
    margin-right: 6px;
    flex-shrink: 0; /* la flèche reste */
}

/* Bouton suivant → flèche toujours à droite */
.article-navigation .next::after {
    content: "→";
    margin-left: 6px;
    flex-shrink: 0;
}


.article-navigation .button:hover {
    background: #80450b;
}
