/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #faf7f2;
    color: #333;
    line-height: 1.6;
    padding: 0 10px;
}

/* Header */
header {
    text-align: center;
    padding: 50px 20px 20px;
    background: linear-gradient(to right, #e1ccb9, #f9f4ef);
    border-bottom: 2px solid #e4dcd2;
}

header h1 {
    font-size: 2.2rem;
    color: #4e342e;
}

header p {
    font-size: 1.1rem;
    color: #6b4c3b;
    margin-top: 10px;
}

/* Navigation principale */
nav.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

nav.main-nav a {
    text-decoration: none;
    color: #4e342e;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

nav.main-nav a:hover {
    background-color: #e1ccb9;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 200px;
    padding: 20px;
    background-color: #f3ede6;
    border-right: 1px solid #ddd;
    height: calc(100% - 100px);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    z-index: 1000;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #4e342e;
    font-weight: 600;
    transition: color 0.3s;
}

.sidebar nav ul li a:hover {
    color: #bf8040;
}

/* Conteneur général */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 15px;
    margin-left: 220px;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #6b4c3b;
}

/* Produits */
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.produit {
    background-color: #fff;
    width: 250px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.produit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.produit img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.produit h3 {
    font-size: 1.1rem;
    color: #4e342e;
    margin-top: 15px;
}

.produit p {
    font-size: 0.95rem;
    color: #555;
    padding: 0 10px;
}

/* Témoignages */
.testimonial {
    max-width: 600px;
    margin: 30px auto;
    background: #fffaf4;
    border-left: 5px solid #bf8040;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.testimonial .stars {
    color: #ffb400;
    font-size: 1.2rem;
}

.testimonial .author {
    font-style: italic;
    color: #6b4c3b;
    margin-top: 10px;
}

/* Bouton de retour */
.return-btn,
button {
    padding: 12px 20px;
    background-color: #bf8040;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 18px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
    border: none;
    cursor: pointer;
}

.return-btn:hover,
button:hover {
    background-color: #a35c1d;
    transform: scale(1.05);
}

/* Tableaux */
table {
    width: 90%;
    margin: 30px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

table caption {
    caption-side: top;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #4e342e;
    font-weight: bold;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f2ebe5;
    color: #4e342e;
}

table tr:nth-child(even) {
    background-color: #f9f4ef;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f2ebe5;
    color: #5c4330;
    border-top: 2px solid #e0d6cc;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .produit {
        width: 100%;
        max-width: 350px;
    }

    .sidebar {
        display: none;
    }

    .container {
        margin-left: 0;
    }

    nav.main-nav {
        gap: 10px;
    }

    table {
        width: 100%;
    }
}
