@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-light: #E9E9E5;
    --bg-tan: #D4B081;
    --bg-darker-tan: #9B805D;
    --bg-light-green: #4E6B50;
    --bg-dark-green: #324633;
    --text-dark: #1a1a1a;
    --text-light: #ffffff
        /* --font-main: 'Helvetica Neue', Arial, sans-serif; */
        --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* Un peu plus d'air pour l'Inter */
    -webkit-font-smoothing: antialiased;
    /* Rendu plus net */
}


.btn-newsletter,
.btn-submit,
.btn-join-top {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: none;
    text-decoration: none;
}

.step p,
.feature-card p,
footer p {
    font-family: var(--font-body);
    font-weight: 400;
    opacity: 0.9;
    /* Pour une esthétique sobre et non-agressive */
}

/* Header */

.header {
    display: flex;
    justify-content: center;
    /* Centre le contenu horizontalement */
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    /* background: #e9e9e5f0; */
    background: linear-gradient(180deg, #e9e9e5 30%, #e9e9e5d3 80%, #e9e9e57a 100%);
    top: 0;
    height: 10vh;
    z-index: 100;
}

.logo {
    height: 40px;
    width: 40px;
}

.btn-join-top {
    position: absolute;
    /* On sort le bouton du flux pour qu'il ne pousse pas le logo */
    right: 20px;
    /* On le plaque à droite */
    border: 1px solid var(--bg-dark-green);
    padding: 2px 10px;
    /* font-size: 0.8rem; */
    color: var(--bg-light-green);
    border-radius: 5px;
}


/* Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 40px 30px;
    height: 90vh;
    justify-content: space-around;
}

/* Ajustements spécifiques */
h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 6.5vmax;
    line-height: 1.1;
    color: var(--bg-dark-green);
    max-width: 50vw;
}

.main-product-img img {
    width: 30vmax;
    height: 100%;
    /* max-width: 250px; */
}

.btn-newsletter {
    background-color: var(--bg-dark-green);
    color: white;
    border: none;
    height: 40px;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 70vw;
    max-width: 300px;
    margin: 10px auto;
}

/* Présesntation Section */
.content-block {
    padding: 0 70vw;
}

.presentation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.description {
    display: flex;
    flex-direction: column;
    width: 35vw;
    min-width: 300px;
    margin: auto;
}

.presentation.reverse {
    flex-direction: row-reverse;
}


/* Gallery Preview */
/* .gallery-container {
    width: 40vw;
    min-width: 325px;
    overflow: hidden;
    padding: 20px 0;
    height: 40vh;
    position: relative;
    margin: 20px auto;
} */

.gallery-container {
    position: relative;
    /* Pour positionner les boutons */
    width: 40vw;
    min-width: 325px;
    /* max-width: 900px; */
    margin: 20px auto;
    height: 40vh;
}

.gallery-preview {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    height: fit-content;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Animation fluide du scroll */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Cache la scrollbar sur Firefox */
}

/* .gallery-preview {
    display: flex;
    height: fit-content;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;
} */

.gallery-preview::-webkit-scrollbar {
    display: none;
}

.thumb {
    flex: 0 0 120px;
    height: 40vh;
    width: 150px;
    border-radius: 12px;
    object-fit: cover;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}


/* Boutons de navigation - Invisibles sur mobile si tu préfères le swipe */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.prev {
    left: -20px;
}

.next {
    right: -20px;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    /* On fait confiance au tactile sur mobile */
    .thumb {
        flex: 0 0 35vw;
    }

    /* Plus large sur mobile pour l'immersion */
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Évite les conflits de drag d'image sur mobile */
}

/* Content Blocks */
.bg-tan {
    background: linear-gradient(180deg, rgba(233, 233, 229, 1) 0%, var(--bg-tan) 24%);
    padding: 20px 5vw;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px 0;
}

p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-align: justify;
}

.lifestyle-img {
    text-align: center;
    width: 40vw;
    min-width: 300px;
    height: 100%;
    max-height: 350px;
    border-radius: 8px;
    margin: 20px auto;
}

/* Features */
.features-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: var(--bg-light-green);
    color: white;
    padding: 40px 5vw;
    gap: 20px;
}

.feature-card {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2vw 0;
    width: 330px;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Process Section */
.process-section {
    padding: 30px 25px 0px 25px;
    width: 90vw;
    min-width: 350px;
    margin: 0 auto;
}

.process {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.section-tag {
    font-size: 2rem;
    color: var(--bg-darker-tan);
}

.process-section img {
    margin: auto;
    height: 60vh;
    min-width: 300px;
    max-width: 400px;
    object-fit: cover;
    border-radius: 30px;
}

.steps {
    margin: auto;
    margin-top: 30px;
    width: 50vw;
    min-width: 300px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.step-num {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bg-darker-tan);
    margin: auto 5px;
}


.step p {
    margin-right: 15px;
}

/* Footer Opt-in */
.footer {
    width: 60vw;
    min-width: 350px;
    margin: auto;
    padding: 30px 25px;
    border-top: 1px solid #ddd;
}

.optin-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;

}

.optin-form label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.optin-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* margin-bottom: 15px; */
}

.btn-submit {
    background-color: var(--bg-dark-green);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 20vw;
    min-width: 150px;
    margin: 0 auto;
}

#newsletter-container {
    transition: opacity 0.3s ease-in-out;
}

.success-message {
    text-align: center;
    padding: 20px 0;
    animation: slideUp 0.5s ease-out;
}

.success-icon {
    font-size: 2.5rem;
    color: var(--bg-dark-green);
    margin-bottom: 15px;
}

.success-message h3 {
    color: var(--bg-dark-green);
    margin-bottom: 10px;
    text-transform: none;
    /* Plus doux pour un message de succès */
}

.success-message p {
    font-size: 0.9rem;
}

.alert {
    color: red;
    opacity: 0;
    margin: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}