/* space-grotesk-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-grotesk-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

: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: '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;
    -webkit-font-smoothing: antialiased;
}


.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;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    /* Centre le contenu horizontalement */
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    background: transparent;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    top: 0;
    height: 10vh;
    z-index: 100;
}

.header.scrolled {
    background: linear-gradient(180deg, #e9e9e5 30%, #e9e9e5d3 70%, #e9e9e57a 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    width: 40px;
    height: 40px;
    background-image: url(image/logo_light.avif);
    background-size: contain;
}

.logo.scrolled {
    background-image: url(image/logoHCremovebg.avif);
}

.btn-join-top {
    position: absolute;
    right: 20px;
    color: var(--bg-light);
    background-color: var(--bg-dark-green);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: larger;
}


.btn-join-top.scrolled {
    background-color: transparent;
    color: var(--bg-light-green);
    border: 1px solid var(--bg-dark-green);
}


/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    height: 90vh;
    justify-content: flex-end;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 4vmax;
    line-height: 1.1;
    color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 85vw;
    min-width: 300px;
    z-index: 2;
    margin: 0 auto 50px auto;

}

.hero-title .line-1 {
    align-self: flex-start;
}

.hero-title .line-2 {
    text-align: left;
    padding-left: 100px;
    color: var(--text-accent);
}

@media (max-width: 500px) {
    .hero-title .line-2 {
        text-align: right;
        padding-left: 0
    }
}

.main-product-img img {
    width: 30vmax;
    height: 100%;
}

.btn-newsletter {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    background-color: var(--bg-dark-green);
    color: white;
    height: 40px;
    text-align: center;
    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-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::-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 */
.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;
    }

    .thumb {
        flex: 0 0 35vw;
    }
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.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;
    object-fit: cover;
}

/* 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;
    width: 35vw;
    /* max-width: 400px; */
    object-fit: cover;
    border-radius: 30px;
}

.steps {
    margin: auto;
    margin-top: 30px;
    width: 45vw;
    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;
}

/* newsletter Opt-in */
.newsletter {
    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;
    }
}

footer {
    background-color: var(--bg-dark-green);
    color: var(--bg-light);
    padding: 30px 20px;
    width: 100%;
}

footer .contact {
    font-weight:700;
    text-align: center;
}

footer a {
    color: var(--bg-light);
    text-decoration: none;
}

.footer-separator {
    width: 50%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid var(--bg-light);
}

.legal {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.legal p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0;
}

.footer-link {
    color: var(--bg-light);
    ;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.footer-link:hover {
    opacity: 1;
    border-bottom-color: #E2E8F0;
}