/*CSS Générale*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'roboto';
}

/*CSS Fond Page*/
body {
    background-image: url('assets/background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/*CSS Header*/
header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1)),
                url('assets/header.png') no-repeat center center/cover;
    padding: 3rem 1rem 5rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    text-align: center;
    color: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    font-size: 2.6rem;
    font-weight: 300;
    color: #1f6847;
    font-family: 'Pacifico', cursive;
    text-shadow: 3px 3px 3px #808080;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: #1f6847;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #1f6847;
    color: #fff;
}

.header-center {
    margin-top: 3rem;
}

.slogan {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: #333;
}

.contact-number {
    font-size: 1rem;
    background-color: #1f6847;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-number:hover {
    background-color: #fff;
    color: #1f6847;
    transform: translateY(-2px);
}

.contact-number a {
    color: inherit;
    text-decoration: none;
}

.menu-icon {
    display: none;
}

/*CSS A-Propos*/
#about {
    padding: 3rem 1rem;
    max-width: 1000px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}

.about-text h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.about-text p {
    margin-bottom: 1rem;
}

/*CSS Présentation Vidéo*/
#presentation {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.presentation-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/*CSS Prestation*/
.tabs-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tabs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.tabs-container .tabs-intro {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-button {
    background-color: #ffffff;
    color: #1f6847;
    border: 1px solid #1f6847;
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background-color: #1f6847;
    color: #ffffff;
}

.tabs-content {
    display: none;
}

.tabs-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.tabs-content h3 {
    font-size: 1.8rem;
    color: #1f6847;
    margin-bottom: 1rem;
}

.tabs-content ul {
    list-style: disc inside;
    margin: 0;
    padding: 0;
}

.tabs-content li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/*CSS Soudure*/
#soudure {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.soudure-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.photo-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-item {
    width: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}   

/*CSS Produit*/
#products {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
    text-align: center;
}

#products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.products-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 3rem;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.product {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.product-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    width: 100%;
}

.product-image {
    width: 30%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-description {
    max-width: 60%;
    padding-left: 2rem;
    text-align: left;
}

.product-description h3 {
    font-size: 2rem;
    color: #1f6847;
    margin-bottom: 1rem;
    font-weight: bold;
}

.product-description ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 20px;
    font-size: 1rem;
    color: #555;
}

.product-price {
    font-size: 1.5rem;
    color: #1f6847;
    margin-top: 1rem;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/*CSS Coques*/
#coques {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.coques-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.atelier-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.atelier-text {
    flex: 1;
    text-align: justify;
    font-size: 1rem;
    color: #333;
    max-width: 500px;
    line-height: 1.6;
    padding: 1rem;
}

.atelier-text p {
    margin-bottom: 1rem;
}

.atelier-text ul {
    list-style-type: none;
    padding: 0;
    color: #1f6847;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
    text-align: left;
}

.atelier-text ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.atelier-image {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.atelier-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

/*CSS Reprise Et Reconditionnement*/
#reprise {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
  
.reprise-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}
  
.reprise-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
  
.reprise-text {
    flex: 1;
    text-align: justify;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    max-width: 500px;
}
  
.reprise-text p {
    margin-bottom: 1rem;
}
  
.reprise-text ul {
    list-style: none;
    padding: 0;
    color: #1f6847;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
}
  
.reprise-text ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
  
.reprise-image {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}
  
.reprise-image img {
    width: 100%;
    height: auto;
    display: block;
}

/*CSS Avis Client*/
#avis {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.avis-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 2rem;
    font-weight: bold;
}

.avis-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.avis-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 1s ease;
    padding: 1.5rem;
}

.avis-slide.active {
    opacity: 1;
}

.avis-slide h3 {
    font-size: 1.2rem;
    color: #1f6847;
    margin-bottom: 0.5rem;
}

.avis-slide p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.avis-stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.add-avis {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: #1f6847;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-avis:hover {
    background-color: #14532d;
}

/*CSS Contact*/
#contact {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f6847;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

#contact p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 3rem;
    font-weight: 500;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.map-container {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-container {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    height: 400px;
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-container input,
.form-container textarea,
.form-container button {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.form-container button {
    background-color: #1f6847;
    color: white;
    border: none;
    cursor: pointer;
}

.footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
}

.footer a {
    color: #1f6847;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/*CSS Animation fadeIn*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    /*CSS Responsive Fond Page*/
    body {
        background-image: none;
        background-color: #dadada;
    }
    /*CSS Responsive Header*/
    .menu {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        background-color: rgba(255, 255, 255, 0.9);
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    .menu.active {
        display: flex;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        order: 1;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); 
        font-size: 1.7rem;
    }

    .slogan {
        font-size: 1rem;
    }

    /*CSS Responsive A-Propos*/
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 1.5rem;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text {
        text-align: justify;
    }

    /*CSS Responsive Présentation Vidéo*/
    .presentation-title {
        font-size: 2rem;
    }

    .video-container {
        padding-bottom: 75%;
    }

    /*CSS Responsive Prestation*/
    .tabs-container {
        padding: 1rem;
    }

    .tabs-container h2 {
        font-size: 2rem;
    }

    .tabs-container .tabs-intro {
        font-size: 1rem;
    }

    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .tabs-content h3 {
        font-size: 1.5rem;
    }

    .tabs-content li {
        font-size: 0.9rem;
    }

    /*CSS Responsive Soudure*/
    .tabs-container {
         padding: 1rem;
    }

    .tabs-container h2 {
        font-size: 2rem;
    }

    .tabs-container .tabs-intro {
        font-size: 1rem;
    }

    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .tabs-content h3 {
        font-size: 1.5rem;
    }

    .tabs-content li {
        font-size: 0.9rem;
    }

    /*CSS Responsive Soudure*/
    #soudure {
        padding: 2rem 1rem;
        margin: 2rem auto;
    }
        
    .soudure-title {
        font-size: 2rem;
    }
        
    .photo-container {
        flex-direction: column;
        align-items: center;
    }
        
    .photo-item {
        width: 80%;
        margin-bottom: 1.5rem;
    }

    /*CSS Responsive Produit*/
    .product-content {
        flex-direction: column;
    }

    .product-image {
        width: 80%;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .product-description {
        max-width: 100%;
    }

    .product-price {
        font-size: 1.3rem;
    }

    /*CSS Responsive Coques*/
    .coques-title {
        font-size: 2rem;
        text-align: center;
    }

    .atelier-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .atelier-text, .atelier-image {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .atelier-text ul {
        text-align: center;
    }

    .atelier-text li {
        text-align: left;
    }

    /*CSS Responsive Reprise et reconditionnement*/
    .reprise-container {
        flex-direction: column;
      }
    
      .reprise-text {
        max-width: 100%;
        margin-bottom: 1.5rem;
      }
    
      .reprise-image {
        border-radius: 0;
      }
    
      .reprise-image img {
        width: 100%;
        height: auto;
      }
}