:root {
    --main-bg: #787878;
    --main-white: #e4e2dd;
    --main-beige: #beb496;
    --main-beige-dark: #bdb39c;
    --main-dark: #444444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--main-dark);
    overflow-x: hidden;
    background: var(--main-white);
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
    color: var(--main-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(30, 30, 30, 0.95); /* Couleur de fond fixe de la barre */
}

/* Dégradé étendu au-dessus du contenu */
.sticky-header::before {
    content: "";
    position: absolute;
    top: 100%; /* juste après la barre */
    left: 0;
    right: 0;
    height: 400px; /* profondeur du dégradé */
    background: linear-gradient(
        to bottom,
        rgba(30, 30, 30, 0.95) 0%,
        rgba(30, 30, 30, 0.8) 25%,
        rgba(30, 30, 30, 0.5) 55%,
        rgba(30, 30, 30, 0.2) 80%,
        rgba(30, 30, 30, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
}
.sticky-header.no-gradient {
    background: var(--main-bg) !important;
}
.sticky-header.no-gradient::before {
    display: none !important;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.logo img {
    height: 90px;
    max-width: 220px;
    width: auto;
    display: block;
}
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-beige);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#home {
    background-image: url('../assets/home-bg.png');
}

#realisations {
    background-color: var(--main-bg);
    padding: 4rem 0;
}

.content {
    max-width: 1200px;
    margin: auto;
    margin-top: 6rem;
    padding: 4rem 2rem;
    text-align: center;

}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 3rem;
    color: var(--main-beige);
}

h3 {
    font-size: 1.5rem;
    color: #333;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.value-prop {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    flex-basis: 60%;
    text-align: middle;
    padding-right: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.about-image {
    flex-basis: 35%;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-proof {
    margin-top: 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.trust-badges img {
    height: 120px;
    max-width: 240px;
    width: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .trust-badges img {
        height: 80px;
        max-width: 160px;
    }
}

@media (max-width: 600px) {
    .trust-badges img {
        height: 50px;
        max-width: 100px;
    }
}

.product-grid, .testimonial-grid, .community-features, .guides-grid, .collection-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card, .testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.product-card img, .testimonial-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.add-to-cart {
    background-color: var(--main-beige);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.add-to-cart:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.realisations-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.realisations-item {
    flex: 0 0 300px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisations-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.realisations-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.realisations-info {
    padding: 1rem;
}

.realisations-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.realisations-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.realisations-status {
    font-weight: bold;
    color: var(--main-beige);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--main-beige);
    margin-bottom: 0.5rem;
}

.newsletter-signup {
    margin-top: 2rem;
}

.newsletter-signup form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-signup input[type="email"] {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}

.newsletter-signup button {
    background-color: var(--main-beige);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.newsletter-signup button:hover {
    background-color: #ff4757;
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    background-color: var(--main-beige);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.cta-button:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--main-beige);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-text, .about-image {
        flex-basis: 100%;
    }
    .about-image {
        margin-top: 2rem;
    }
    .newsletter-signup form {
        flex-direction: column;
        align-items: center;
    }
    .realisations-item {
        flex: 0 0 250px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .value-prop {
        font-size: 1.2rem;
    }
}

#featured {
    background-color: #ffffff;
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 1rem;
}

.product-card .price {
    font-weight: bold;
    color: var(--main-beige);
    margin: 0 1rem;
}

.add-to-cart {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.5rem;
    background-color: var(--main-beige);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.add-to-cart:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animações gerais */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Aplicando animações */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.5s ease-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.5s ease-out;
}

/* Efeito hover nos botões */
.cta-button, .add-to-cart {
    transition: all 0.3s ease;
}

.cta-button:hover, .add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efeito de destaque nos cards de produtos */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animação para o menu de navegação */
.sticky-header {
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    background-color: var(--main-dark);
    padding: 0.5rem 1rem;
}

/* Cacher le dégradé quand scrolled */
.sticky-header.scrolled::before {
    opacity: 0;
    pointer-events: none;
}

/* Efeito de parallax suave */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.5s ease;
}

/* Animação para o formulário de newsletter */
.newsletter-signup form {
    transition: all 0.3s ease;
}

.newsletter-signup form:focus-within {
    transform: scale(1.05);
}

/* Efeito de rolagem suave */
html {
    scroll-behavior: smooth;
}

/* Estilo para o botão "Voltar ao topo" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--main-beige);
    color: white;
    padding: 7px 15px;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--main-dark);
    transform: scale(1.1);
}

/* Loader para carregamento de página */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid var(--main-beige);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Burger menu styles */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    margin-left: 1rem;
    z-index: 1100;
}
.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}



/* Animation for burger when active */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* Design du formulaire de contact */
.contact-form {
    max-width: 450px;
    margin: 2rem auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(68,68,68,0.08);
    padding: 2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--main-dark);
    margin-bottom: 0.3rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--main-beige-dark);
    border-radius: 6px;
    background: var(--main-white);
    font-size: 1rem;
    color: var(--main-dark);
    transition: border-color 0.2s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-beige);
    outline: none;
}

.contact-form button.cta-button {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px) {
    nav ul {
        position: fixed;
        top: 0; /* Corrigé pour coller au header */
        right: -100vw;
        width: 200px;
        height: 100vh;
        background: var(--main-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 1rem 1rem 1rem; /* Espace pour le header */
        gap: 1.5rem;
        transition: right 0.3s;
        z-index: 1050;
    }
    nav ul.active {
        right: 0;
    }
    .burger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 60px;
        max-width: 140px;
    }
}
.realisations-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.realisations-item {
    min-width: 250px;
    max-width: 90vw;
}
@media (max-width: 600px) {
    body, main, .content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: 100vh;
    padding: 0;
}

#home .content {
    margin-top: 0;
    padding: 4rem 2rem;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 2px rgba(255,71,87,0.15);
    animation: shake 0.3s;
}

.about-carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.about-carousel .carousel-track {
    width: 450px;
    height: 450px;
    display: flex;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.3s, height 0.3s;
}

.about-carousel .carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le carré, rogne si besoin */
    transition: opacity 0.5s;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: none;
}
.about-carousel .carousel-track img.active {
    display: block;
}

.about-carousel .carousel-btn {
    background: var(--main-beige);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-carousel .carousel-btn:hover {
    background: var(--main-beige-dark);
}

@media (max-width: 900px) {
    .about-carousel {
        max-width: 260px;
    }
    .about-carousel .carousel-track {
        width: 220px;
        height: 220px;
    }
    .about-carousel .carousel-track img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .about-carousel {
        max-width: 95vw;
    }
    .about-carousel .carousel-track {
        width: 90vw;
        height: 90vw;
        max-width: 320px;
        max-height: 320px;
        min-width: 120px;
        min-height: 120px;
    }
    .about-carousel .carousel-track img {
        height: 100%;
    }
    .about-carousel .carousel-btn {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
}