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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: rgb(250,244,235);
    color: rgb(36,44,25);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* background: rgba(250,244,235,0.95); */
    background: rgba(250,244,235);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(36,44,25,0.1);
}

/* .logo {
    height: 80px;
} */

.logo {
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 3rem;
}

nav a {
    color: rgb(36,44,25);
    text-decoration: none;
    /* font-size: 0.95rem; */
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.5s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(36,44,25);
    transition: width 0.3s ease;
}

nav a:hover {
    transition: 0.3s ease;
    transform: scale(1.1);
}

nav a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(36,44,25) 0%, rgba(36,44,25,0.9) 50%, rgba(36,44,25,0.8) 100%);
    opacity: 0.95;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards 0.3s;
    color: rgb(250,244,235);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(250,244,235,0.9);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: rgb(250,244,235);
    color: rgb(36,44,25);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.cta-button:hover {
    transform: scale(1.05) translateY(20px);
    box-shadow: 0 10px 40px rgba(250,244,235,0.3);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s, bounce 2s ease-in-out infinite 1.5s;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 2px;
    height: 40px;
    background: rgba(250,244,235,0.6);
    margin: 0 auto 10px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

section {
    padding: 8rem 4rem;
    position: relative;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(36,44,25,0.05);
    border: 1px solid rgba(36,44,25,0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease;
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
}

/* .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
} */

.card.visible {
    opacity: 1;
    transform: translateX(0);
}

.card:hover {
    background: rgba(36,44,25,0.08);
    transform: translateY(-10px);
    border-color: rgba(36,44,25,0.2);
    box-shadow: 0 10px 40px rgba(36,44,25,0.1);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: rgb(36,44,25);
}

.card p {
    color: rgba(36,44,25,0.7);
    line-height: 1.6;
}

.stats-section {
    background: rgb(36,44,25);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item h2 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: rgb(250,244,235);
}

.stat-item p {
    color: rgba(250,244,235,0.8);
    font-size: 1.1rem;
}

/* --------------------------------------------- */
/* Card */
.projects-section {
    background: rgb(250,244,235);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(36,44,25,0.9) 0%, rgba(36,44,25,0.7) 100%);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(36,44,25,0.4);
    transition: background 0.3s ease;
}

.project-card:hover::before {
    background: rgba(36,44,25,0.2);
}

.project-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.project-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: rgb(250,244,235);
}

.project-info p {
    color: rgba(250,244,235,0.9);
}

.services-section {
    background: rgba(36,44,25,0.03);
}

.card-renovation {
    background-image: url('images/projects/maison_reno.png');
    background-size: cover;
    background-position: center;
}

.card-industriel {
    background-image: url('images/projects/industriel.jpg');
    background-size: cover;
    background-position: center;
}

.card-extension {
    background-image: url('images/projects/extension2.png');
    background-size: cover;
    background-position: center;
}

/* --------------------------------------------- */
/* video */

.presentation-section {
    background: rgb(250,244,235);
}

.presentation-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.presentation-text {
    /* text-align: center; */
    font-size: 1.5rem;
    color: rgba(36,44,25,0.7);
    margin-bottom: 3rem;
    line-height: 1.7;
    /* max-width: 750px; */
    /* margin-left: auto;
    margin-right: auto; */
}

.text-accent {
    font-weight: 600;
    color: rgb(36,44,25);
    border-bottom: 2px solid rgba(36,44,25, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(36,44,25,0.15);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------- */
/* Zone Intervention  */
.zone-section {
    /* plus besoin de background ici */
}

.zone-map {
    max-width: 860px;
    margin: 2rem auto 0;
}

.zone-map img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* --------------------------------------------- */
/* Contact  */
.contact-section {
    background: rgb(250,244,235);
}

.contact-form {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-column.right {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(36,44,25,0.05);
    border: 1px solid rgba(36,44,25,0.1);
    border-radius: 10px;
    color: rgb(36,44,25);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(36,44,25,0.3);
    background: rgba(36,44,25,0.08);
}

.form-group textarea {
    flex: 1;
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: rgb(36,44,25);
    color: rgb(250,244,235);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(36,44,25,0.3);
}

/* footer {
    background: rgb(36,44,25);
    padding: 3rem 4rem;
    text-align: center;
    color: rgba(250,244,235,0.7);
} */

footer {
    background: rgb(36,44,25);
    padding: 3rem 4rem;
    color: rgba(250,244,235,0.9);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    max-height: fit-content;
    margin: 0 auto;
    flex-wrap: wrap; /* Permet de s'adapter aux petits écrans */
}

.footer-image img {
    width: 300px;
    height: 200px;
    /* border-radius: 50%; */
    object-fit: cover;
    /* border: 2px solid rgba(250,244,235,0.7); */
}

.footer-info {
    flex: 1;
    text-align: center;
}

.footer-info p {
    margin: 0.5rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.footer-info p strong {
    color: rgba(250,244,235,1);
}



@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    nav {
        gap: 1.5rem;
    }

    section {
        padding: 4rem 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-image {
        margin-bottom: 1.5rem;
    }
}