@media (max-width: 600px) {
    .product-info {
        max-height: none !important;
        overflow-y: visible !important;
        padding: 18px;
    }
}
/* --- Correction affichage poids et dimensions --- */
.product-weight, .product-dimensions {
    font-size: 1em;
    color: #555;
    margin-bottom: 8px;
    word-break: break-word;
    max-width: 100%;
    display: block;
}

.modal-description {
    white-space: pre-line;
    word-break: break-word;
    max-width: 100%;
}

@media (max-width: 600px) {
    .product-weight, .product-dimensions {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    .modal-description {
        font-size: 0.95em;
    }
}
@media (max-width: 700px) {
    .product-image-container {
        height: 40vh;
        min-height: 140px;
        max-height: 320px;
        padding-top: 4px;
    }
    .product-image {
        width: auto !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block;
    }
    html, body {
        overflow-x: hidden;
    }
}
/* Galerie : conteneur image pour affichage centré et entier */
.product-image-container {
    width: 100%;
    height: 60vh;
    min-height: 250px;
    max-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px 8px 0 0;
    overflow: auto;
    padding-top: 10px;
}
.product-image {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block;
}
.product-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
/* Affichage galerie : images toujours entières, centrées, sans zoom */
.product-card {
    height: 420px;
    display: flex;
    flex-direction: column;
}
.product-image {
    flex: 0 0 300px;
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
    display: block;
}
/* Correction taille modale et image pour affichage intégral */
.modal-content {
    max-width: 95vw;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
.modal-image-container {
    width: 100%;
    height: 70vh;
    min-height: 250px;
    max-height: 900px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    background: #f8f8f8;
}
.modal-image {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
/* Correction image modale : toujours visible en entier */
.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Desktop : image max 100% du conteneur */
/* Galerie : images toujours entières, centrées, pas de zoom */
/* Galerie : images toujours entières, centrées, pas de zoom, ratio respecté */
.product-image {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f8f8f8;
    box-sizing: border-box;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .product-image {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        object-fit: contain !important;
    }
}
/* Correction responsive mobile renforcée */
@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    .container {
        width: 100vw;
        padding: 0;
        margin: 0;
    }
    .gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        margin: 0;
        padding: 0;
    }
    .product-card {
        width: 98vw;
        max-width: 420px;
        margin: 0 0 24px 0;
        box-sizing: border-box;
    }
    .product-image {
        width: 100%;
        max-width: 100vw;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}
/* Responsive images pour la galerie */
.product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr !important;
    }
    .product-card {
        max-width: 95vw;
        margin: 0 auto 24px auto;
    }
    .product-image {
        max-width: 100vw;
        height: auto;
        object-fit: contain;
    }
}
:root {
    --gold: #8b7355;
    --bg: #f5f5f5;
    --ink: #333;
    --ink-light: #666;
    --white: #fff;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: var(--bg);
    color: var(--ink);
}

/* --- Styles Communs --- */
header {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-size: 2.5em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin: 0;
}

header p {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
}

nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

nav a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

footer {
    background: var(--white);
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 0.9em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}


/* --- Styles pour la Galerie (index.html) --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.product-info {
    padding: 25px;
    max-height: 180px;
    overflow-y: auto;
    word-break: break-word;
    background: var(--white);
    border-radius: 0 0 8px 8px;
}
}

.product-name {
    font-size: 1.2em;
    font-weight: normal;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.product-price {
    font-size: 1.4em;
    color: var(--gold);
    font-weight: normal;
    margin-bottom: 15px;
}

.product-description {
    color: var(--ink-light);
    font-size: 0.90em;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: pre-line;
    word-break: break-word;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 115, 85, 0.9);
    border: none;
    font-size: 2.5em;
    cursor: pointer;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: background 0.3s;
    border-radius: 3px;
}

.modal-close:hover {
    background: rgba(139, 115, 85, 1);
}

.modal-image-container {
    position: relative;
    width: 100%;
}

.modal-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 115, 85, 0.8);
    color: white;
    border: none;
    font-size: 2.5em;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s;
}

.modal-nav-button:hover {
    background: rgba(139, 115, 85, 1);
}

.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }

.modal-thumbnails {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: var(--bg);
    overflow-x: auto;
}

.modal-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.modal-thumb:hover,
.modal-thumb.active {
    border-color: var(--gold);
}

.modal-details { padding: 40px; }
.modal-name { font-size: 1.8em; font-weight: normal; margin-bottom: 15px; color: #1a1a1a; }
.modal-price { font-size: 1.6em; color: var(--gold); margin-bottom: 30px; }
.modal-description { color: var(--ink-light); line-height: 1.8; font-size: 1em; }


/* --- Styles pour le Poème (lentsy.html) --- */
.poem-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px 48px;
    text-align: center;
}

.poem h2 {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 32px;
}

.poem p {
    margin: 0 0 2em;
    line-height: 1.9;
    font-size: 1.25rem;
}


/* --- Styles pour la page Contact (contact.html) --- */
.contact-container {
    max-width: 700px;
    margin: 48px auto;
    padding: 0 20px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-card h2 {
    margin: 0 0 24px;
    color: var(--gold);
    font-size: 1.8em;
    text-align: center;
}

.info-block { margin-bottom: 24px; }
.info-block h3 { margin: 0 0 8px; color: #1a1a1a; font-size: 1.2em; }
.info-block p { margin: 0; line-height: 1.7; color: #555; }
.info-block a { color: var(--gold); text-decoration: none; }
.info-block a:hover { text-decoration: underline; }


/* --- Styles pour le Responsive --- */
@media (max-width: 768px) {
    header {
        padding: 30px 15px; /* Réduction de l'espacement */
    }
    header h1 {
        font-size: 1.8em;
    }

    /* Conteneurs principaux */
    .container,
    .poem-container,
    .contact-container {
        padding: 30px 15px; /* Moins de padding sur les côtés et en haut/bas */
    }

    /* Galerie */
    .gallery {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Poème */
    .poem p {
        font-size: 1.1rem; /* Police légèrement réduite pour le poème */
        line-height: 1.8;
    }

    /* Page Contact */
    .contact-card {
        padding: 25px; /* Moins de padding dans la carte de contact */
    }

    /* Modale */
    .modal-image {
        height: 300px;
    }

    .modal-details {
        padding: 25px;
    }

    .modal-name {
        font-size: 1.5em; /* Titre de la modale plus petit */
    }
    .modal-price {
        font-size: 1.3em; /* Prix de la modale plus petit */
    }
}
