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

:root {
    --sage: #8A9A5B;
    --terracotta: #C17A6F;
    --cream: #F5F1E8;
    --dark-green: #3E5A3C;
    --white: #ffffff;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--dark-green);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 40px;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 154, 91, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark-green);
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: var(--dark-green);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--terracotta);
}

.leaf {
    display: inline-block;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Grid Layout */
.hero-grid {
    margin-top: 100px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 150px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.grid-item:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* Grid sizes */
.grid-small {
    grid-column: span 1;
    height: 280px;
}

.grid-medium {
    grid-column: span 1;
    height: 400px;
}

.grid-large {
    grid-column: span 2;
    height: 400px;
}

.grid-tall {
    grid-row: span 2;
    height: 620px;
}

.grid-wide {
    grid-column: span 3;
    height: 300px;
}

/* Content Cards */
.card-content {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--sage), var(--dark-green));
}

.hero-card .card-content {
    background: linear-gradient(135deg, rgba(193, 122, 111, 0.9), rgba(138, 154, 91, 0.9));
    justify-content: flex-end;
}

.hero-card h1 {
    font-size: 4rem;
    line-height: 1;
    color: var(--white);
    font-weight: 700;
}

.about-card .card-content {
    background: var(--sage);
}

.about-card h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
}

.about-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Services Card */
.service-card .card-content {
    background: var(--terracotta);
    padding: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
}

.service {
    text-align: center;
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.service h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.service p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Quote Card */
.quote-card .card-content {
    background: var(--dark-green);
    justify-content: center;
    align-items: center;
}

.quote-card blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-green);
    padding: 30px 40px;
    z-index: 999;
}

.nav-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item span {
    font-size: 1.5rem;
}

.nav-item p {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.5;
}

.nav-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: var(--terracotta);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-wide {
        grid-column: span 2;
    }
    
    .nav-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        margin-top: 80px;
        padding: 15px;
        gap: 15px;
    }
    
    .grid-large, .grid-wide {
        grid-column: span 1;
    }
    
    .grid-tall {
        grid-row: span 1;
        height: 400px;
    }
    
    .hero-card h1 {
        font-size: 2.5rem;
    }
    
    .nav-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header {
        padding: 20px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

/* Scroll animations */
.grid-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }
.grid-item:nth-child(7) { animation-delay: 0.7s; }
.grid-item:nth-child(8) { animation-delay: 0.8s; }
.grid-item:nth-child(9) { animation-delay: 0.9s; }
.grid-item:nth-child(10) { animation-delay: 1s; }
.grid-item:nth-child(11) { animation-delay: 1.1s; }

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

/* Tarifs Section */
.tarifs-card .card-content {
    background: var(--dark-green);
    padding: 50px;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tarif {
    background: rgba(245, 241, 232, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(245, 241, 232, 0.2);
    transition: all 0.3s ease;
}

.tarif:hover {
    background: rgba(245, 241, 232, 0.15);
    transform: translateY(-5px);
}

.tarif h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tarif .price {
    color: var(--terracotta);
    font-size: 2rem;
    font-weight: 600;
    margin: 15px 0;
}

.tarif p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Clickable cards */
a.grid-item {
    text-decoration: none;
    cursor: pointer;
}

a.service {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

a.service:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
