body {
    margin: 0;
    font-family: 'Merriweather', serif;
    background-color: #1B3A2F;
    color: #F4F1E6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1B3A2F;
    padding: 0 1rem;
    position: relative;
    z-index: 1001;
}

h1,
h2,
h3 {
    font-family: 'Cinzel Decorative', serif;
    /* IM Fell English SC */
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.logo img {
    width: 75px;
    height: 75px;
}

.burger {
    display: block;
    font-size: 2rem;
    color: #F4F1E6;
    cursor: pointer;
}

.nav-links {
    display: none;
    flex-direction: column;
    background-color: #2A4840;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 0 8px;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.nav-links.show {
    display: flex;
}

.nav-links li a {
    color: #F4F1E6;
    text-decoration: none;
    font-weight: bold;
}

.dropdown {
    position: relative;
}

.arrow {
    font-size: 0.7em;
    margin-left: 5px;
}

.dropdown-menu {
    position: static;
    background-color: transparent;
    list-style: none;
    padding-left: 1rem;
    margin: 0;
    display: none;
    min-width: 150px;
}

.dropdown.show .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.3rem 0;
    color: #F4F1E6;
}

.dropdown-menu li a:hover {
    background-color: #5A3E36;
}

.dropdown > a::after {
    content: none;
}

/* Hero section avec carrousel */
.hero {
    width: 100%;
    background-color: #1C1C1C;
    padding: 20px 0;
}

h1, .hero h1 {
    font-size: 2rem;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.etsy-button {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E9B949;
    color: #333;
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.etsy-button:hover {
    background-color: #D6A93B;
}

.carousel-slides {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Slides individuels */
.carousel-slide {
    position: absolute;
    top: 22px;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #E5E5E5;
}

.carousel-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    z-index: 5;
}

.carousel-prev,
.carousel-next {
    background: none;
    border: none;
    font-size: 20px;
    color: #F4F1E6;
    cursor: pointer;
    margin: 0 10px;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #767676;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #F4F1E6;
}

/* fin hero section */

.grid-container{
    display: grid;
    grid-template-columns: 1fr;
    gap: 5vw;
    text-align: center;
    max-width: 1000px;
    margin: 4rem auto 3rem auto;
}

.card img{
    width: 80%;
    height: 250px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}
.card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #C5A77B;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.card p {
    font-size: 1rem;
    max-width: 70%;
    margin: 0 auto 1rem auto;
    line-height: 1.4;
    color: #e8e5dd;
}
.card .button {
    display: block;
    width: 100px;
    border: none;
    background: #0A5F44;
    color: #ffffff;
    padding: 5px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    margin: 0 auto; /* Pour centrer le bouton */
}

.card .button:hover {
    background-color: #116d4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.about {
    max-width: 600px;
    width: 75%;
    margin: 0 auto;
    background-color: beige;
    overflow: hidden;
    padding: 10px;
    border: solid 2px #C5A77B;

}

.about img {
    width: 40%;
    height: 150px;
    float: left;
    margin-right: 10px;
}

.about p {
    font-size: 1rem;
    line-height: 1.4;
    color: #111111;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    text-shadow: 0 0 2px rgba(174, 157, 120, 0.5);


}

#apropos-title {
    text-align: center;
    font-family: 'Merriweather', serif;
    color: #f5f1e9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 1.5rem;

}

#instagram {
    background-color: #1B3A2F;
    padding: 1rem 1rem;
    text-align: center;
    margin-top: 4rem;
    border-top: solid 1px #A88B59;
    border-bottom: solid 1px #A88B59;
}

#instagram-title {
    font-family: 'Cinzel Decorative', cursive;
    margin-bottom: 1.5rem;
    color: #916C3D;
}

.fa-instagram {
}

.instagram-container {
    max-width: 500px;
    margin: 0 auto;
}

.instagram-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.instagram-collage {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.instagram-tagline {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Gestion bourdon */
.serrure-container {
    position: relative;
    width: 100px;
    height: 100px;
    cursor: pointer;
    overflow: visible;
}

.serrure {
    width: 75%;
    height: auto;
    z-index: 1;
}

.bourdon {
    position: absolute;
    top: 20%;
    left: -55px;
    width: 55px;
    opacity: 0;
    transition: transform 1s ease-in-out;
}

.bourdon.active {
    opacity: 1;
    transform: translateX(80px);
}
/* Fin Gestion Bourdon */

/* debut formulaire */

.form-container {
    background-color: #2A4840;
    color: white;
    padding: 15px;
    max-width: 500px;
    margin: 60px 40px 40px 40px;
    border-radius: 10px;
    border: 1px solid #A88B59;
}

.form-container h3 {
    font-family: 'Merriweather', cursive;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.name-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    width: 90%;
    padding: 10px;
    border: 1px solid #C9B27C;
    border-radius: 4px;
    background-color: #eee;
}

.name-field input {
    width: 80%;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-container button {
    background-color: #0A5F44;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    width: 97%;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.form-container button:hover {
    background-color: #116d4f;
    transform: translateY(-2px);
}


.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.fa-envelope {
    color: #CD7F32;
}

.fa-etsy {
    color: #CD7F32;
}

.fa-square-facebook {
    color: #CD7F32;
}

.fa-square-instagram {
    color: #CD7F32;
}

/* fin formulaire */

/* début footer */
.footer {
    background-color: #2A2A2A;
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.first-bloc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
}

.footer-nav {
    text-align: right;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px;
    font-size: 0.7rem;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 175px;
}

.footer-links li {
    white-space: nowrap;
}

.footer-copyright {
    color: #ffffff;
    font-size: 0.7rem;
    align-self: center;
}

/* fin footer */

/* Page merci */
.confirmation-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    text-align: center;
}

.confirmation-link  {
    color: #C5A77B;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.confirmation-link:hover {
    color: #C5A77B;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
/* fin page Merci */

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
    }

    .carousel-slides {
        height: 250px;
    }
}

/* Début dev Tablette */
@media (min-width: 768px) and (max-width: 834px) {
    .logo img {
        height: 100px;
        width: 100px;
    }

    .burger {
        font-size: 2.5rem;
    }

    .carousel-container {
        max-width: 80%;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 4vw;
    }

    .about {
        max-width: 100%;
        width: 87%;
    }

    .about p {
        font-size: 1.3rem;
    }

    .form-container {
        margin: 60px auto;
        max-width: 500px;
        width: 80%;
        padding: 25px;
    }

    .name-fields {
        gap: 15px;
    }

    input, textarea {
        width: 95%;
    }

    #prenom, #nom {
        width: 90%;
    }

    .form-container button {
        width: 60%;
        margin: 0 auto;
        display: block;
        font-size: 18px;
        padding: 14px;
        border-radius: 5px;
    }

}

/* Fin dev Tablette */

/* Début dev Desktop */
@media (min-width: 835px) {
    .burger {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        background-color: transparent;
        position: static;
        width: auto;
        padding: 0;
        border-radius: 0;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #3C6E5D;
        padding: 0.5rem 0;
        display: none;
        border-radius: 5px;
        z-index: 99;
    }

    .dropdown-menu li a {
        padding: 0.5rem 1rem;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .grid-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3vw;
        text-align: center;
        max-width: 1000px;
        margin: 4rem auto 5rem auto;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 1.2rem;
    }

    .about {
        max-width: 60%;
    }

    .about p {
        font-size: 1.3rem;
        letter-spacing: 0.1rem;
    }

    #instagram {
        padding: 2rem 3rem 4rem 3rem;
        max-width: 1700px;
        margin-left: auto;
        margin-right: auto;
    }

    #instagram-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .instagram-container {
        max-width: 900px;

    }


    .instagram-collage {
        width: 80%;
        margin-bottom: 0;
    }

    .instagram-tagline {
        width: 80%;
        font-size: 1.5rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .form-container {
        margin: 60px auto;
        max-width: 600px;
        width: 80%;
        padding: 25px;
    }

    .form-container h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 25px;
    }

    label {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .name-fields {
        gap: 20px;
        margin-bottom: 25px;
    }

    input, textarea {
        width: 95%;
        padding: 12px;
        font-size: 1.1rem;
        border-width: 2px;
    }

    #prenom, #nom {
        width: 90%;
        font-size: 1.1rem;
    }

    .form-container button {
        width: 60%;
        margin: 10px auto;
        display: block;
        font-size: 1.3rem;
        padding: 15px;
        border-radius: 6px;
    }

    .social-links {
        margin-top: 30px;
        margin-bottom: 30px;
        gap: 30px;
    }

    .social-link {
        font-size: 1.5rem;
    }

    .footer-logo img {
        width: 80px;
        height: 80px;
    }

    .footer-links {
        font-size: 0.7rem;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* Fin dev Desktop */