/* Structure globale et styles de base */
body {
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #f5e1da;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

h1 {
    color: #ffdc93;
    font-weight: bold;
}
h2 {
    color: #4e3530;
    font-weight: bold;
}

h1 {
    font-style: italic;
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.bg-light {
    background-color: #f5e1da;
}

.bg-dark {
    background-color: #4e3530;
}

.bg-gradient {
    background: linear-gradient(#000000, #4e3530);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(#000000, #4e3530);
    animation: slideInHeader 1s ease-out;
}

h1 {
    color: #4e3530;
    margin-bottom: 20px;
    text-align: center;
    padding: 40px;
}


/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #d98706;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #eaac22;
    transition: width 0.3s ease;
}

/* Animation fadeIn */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

/* Carousel */

.carousel{
    height: 400px;
    width: 600px;
    position: relative;
    margin: 100px auto;
}

.cadre{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.4ms ease-in-out;
}
.fleche{
    border: solid;
    padding: 12px;
    border-width: 0 5px 5px 0;
}
.precedent, .suivant{
    position: absolute;
    top: 200px;
}
.precedent{
    left: 45px;
    transform: rotate(135deg);
}
.suivant{
    right: 45px;
    transform: rotate(-45deg);
}

.image_1{
    z-index: 2;
    opacity: 1;
    background: url(imagecarousel1.jpg);
    background-size: cover;
}
.image_2{
    background: url(imagecarousel2.jpg);
    background-size: cover;
}
.image_3{
    background: url(imagecarousel3.jpg);
    background-size: cover;
}
.image_4{
    background: url(imagecarousel4.jpg);
    background-size: cover;
}
*:target ~ .image_1{
    opacity: 0;
}
#image_1:target ~ .image_1{
    opacity:1;
}
#image_2:target ~ .image_2, #image_3:target ~ .image_3, #image_4:target ~ .image_4{
    z-index: 2;
    opacity: 1;
}




/* Section Présentation */
.presentation {
    opacity: 0;
    margin-top: 20px;
    color: #6c4b04;
    font-size: 50px;
    transition: color 0.3s ease;
    animation: fadeIn 3s forwards;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #4e342e;
    margin-top: auto;
}

footer a {
    color: #d98706;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 10px;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #eaac22;
    transition: width 0.3s ease;
}


/* Section Contact */
.contact-section {
    padding: 40px;
    color: #4e3530;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ffdc93;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

input:focus, textarea:focus {
    background-color: #f6c353;
    outline: none;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ffdc93;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #f6c353;
}

/* Section Produits */
.product-showcase {
    padding: 40px;
    background-color: #f5e1da;
    text-align: center;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    background-color: #4e342e;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.product-item img {
    max-width: 100%;
    border-radius: 10px;
}

.product-item:hover {
    transform: scale(1.05);
}

/* Conditions Générales de ventes */
.CGV {
    text-align: left;
    padding: 40px;
    color: #000000;
}
h3{
    text-align: center;
    color: #4e3530;
}

.article-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
}

.mentions{
    color:#000000;
    text-align: center ;
}

h4{
    text-align: center;
    font-size: x-large;
}

.Démarches{
    color: #000000;
}

.histoire{
    color: #000000;
    font-size:large;
}
h5{
    text-align: center;
    font-size: large;
}


/* Responsivité */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    .presentation {
        font-size: 16px;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

    .article-container {
        flex-direction: column;
    }
}
