/* --- VARIABLES & RESET --- */
:root {
    --primary-dark: #13271C; /* Vert sapin profond */
    --bg-light: #F7F5F0;    /* Lin / Beige très clair */
    --text-color: #2C2C2C;
    --text-muted: #6B6B6B;
    --sage: #7A9A85;
    --sage-light: #A3B899;
    --font-heading: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--sage-light);
    outline-offset: 3px;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4%;
    z-index: 100;
    background: transparent;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
    background: rgba(19, 39, 28, 0.92);
    backdrop-filter: blur(6px);
    padding: 1.1rem 4%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding-bottom: 0.2rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Bouton menu mobile (hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO SECTION (AVEC IMAGE DE FOND) --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: #fff;
}

.hero-bg-container {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(19, 39, 28, 0.85) 0%, rgba(19, 39, 28, 0.3) 70%, rgba(19, 39, 28, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-anim {
    display: block;
    opacity: 0;
    transform: translateY(22px);
    animation: heroIn 0.9s var(--ease) forwards;
    animation-delay: calc(var(--d) * 0.14s + 0.2s);
}

a.hero-anim {
    display: inline-block;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #A3B899;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    font-size: 1rem;
    color: #E2E8F0;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 480px;
}

.btn-primary {
    display: inline-block;
    background-color: #355845;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s var(--ease);
}

.btn-primary:hover {
    background-color: #274233;
    transform: translateY(-2px);
}

/* Invitation à scroller */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2.5rem;
    z-index: 2;
    width: 22px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    transform: translateX(-50%);
    opacity: 0;
    animation: heroIn 0.9s var(--ease) forwards;
    animation-delay: 0.9s;
}

.scroll-cue-line {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
    0% { transform: translate(-50%, 0); opacity: 1; }
    70% { transform: translate(-50%, 14px); opacity: 0; }
    71% { transform: translate(-50%, 0); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* --- CONCEPT SECTION --- */
.concept-section {
    padding: 7rem 8%;
    background-color: var(--bg-light);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rounded-img-concept {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.concept-text-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.concept-text-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 46ch;
}

.features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

/* --- STEPS SECTION --- */
.steps-section {
    padding: 5rem 8% 6rem;
    background-color: #EFECE6;
}

.steps-header {
    margin-bottom: 3.5rem;
    max-width: 46ch;
}

.steps-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.steps-header p {
    color: var(--text-muted);
}

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Ligne qui "pousse" comme une racine reliant les 3 étapes */
.steps-line {
    position: absolute;
    top: 2.6rem;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: rgba(19, 39, 28, 0.12);
    z-index: 0;
}

.steps-line-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--sage);
    transition: width 1.4s var(--ease);
}

.step-item {
    position: relative;
    z-index: 1;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #7A9A85;
    display: block;
    margin-bottom: 1rem;
}

.step-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- GALLERY SECTION (PROJET VERTICAL + BIENTOT) --- */
.gallery-section {
    padding: 7rem 8%;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.gallery-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 400;
}

.gallery-desc {
    max-width: 400px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.single-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
}

.gallery-card img,
.gallery-card .video-embed {
    transition: transform 0.6s var(--ease);
}

.gallery-card:hover img {
    transform: scale(1.02);
}

/* Image verticale entièrement visible */
.featured-card .vertical-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Vidéo au format vertical, désormais responsive (plus de hauteur fixe en px) */
.video-embed {
    position: relative;
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Texte centré sous l'image */
.featured-card .gallery-info,
.video-card .gallery-info {
    text-align: center;
    margin-top: 1rem;
}

.gallery-info h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Carte Bientôt */
.coming-soon-container {
    margin-top: 3rem;
}

.coming-soon-card {
    background-color: #EFECE6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px dashed #C8C2B6;
    height: 100%;
}

.coming-soon-content .coming-soon-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #355845;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.coming-soon-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}

.coming-soon-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 auto;
}

/* --- FOOTER --- */
.footer-section {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 6rem 8% 3rem 8%;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.footer-cta p {
    color: #C1CDC6;
    font-size: 0.95rem;
    max-width: 46ch;
}

.footer-contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-contact-info p {
    color: #C1CDC6;
    margin-bottom: 0.5rem;
}

.footer-contact-info a {
    color: #C1CDC6;
    text-decoration: none;
    border-bottom: 1px solid rgba(193, 205, 198, 0.4);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #fff;
    border-color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #8FA397;
}

.legal-mentions p {
    font-size: 0.75rem;
}

/* --- BOUTON RETOUR EN HAUT --- */
.back-to-top {
    position: fixed;
    right: 1.6rem;
    bottom: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #274233;
}

/* --- ANIMATIONS AU DÉFILEMENT (scroll reveal) --- */
[data-reveal] {
    transition-duration: 0.9s;
    transition-timing-function: var(--ease);
    transition-delay: calc(var(--d, 0) * 0.12s);
}

[data-reveal="fade"] {
    opacity: 0;
    transform: translateY(28px);
    transition-property: opacity, transform;
}

[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.94);
    transition-property: opacity, transform;
}

[data-reveal="clip"] {
    clip-path: inset(0 0 100% 0);
    transition-property: clip-path;
    transition-duration: 1.1s;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0% 0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-anim,
    .scroll-cue,
    .scroll-cue-line,
    [data-reveal] {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
    .hero-img {
        transform: none !important;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .concept-grid,
    .single-project-grid {
        gap: 2.5rem;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 5vw, 3.4rem);
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 340px);
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
        padding: 6rem 3rem;
        transform: translateX(100%);
        transition: transform 0.45s var(--ease);
        z-index: 105;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .concept-grid,
    .footer-top,
    .single-project-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .steps-line {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1.3rem 6%;
    }

    .hero {
        padding: 0 6%;
        text-align: left;
    }

    .concept-section,
    .steps-section,
    .gallery-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .concept-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .gallery-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .rounded-img-concept {
        height: 320px;
    }

    .concept-text-box h2,
    .gallery-header h2 {
        font-size: 1.9rem;
    }

    .footer-section {
        padding: 4.5rem 6% 2.5rem;
    }

    .footer-cta h2 {
        font-size: 1.9rem;
    }

    .back-to-top {
        right: 1.1rem;
        bottom: 1.1rem;
        width: 40px;
        height: 40px;
    }

    .video-embed {
        max-width: 260px;
    }
}
