/* Variables CSS */
:root {
    --vert-principal: #27715A;
    --vert-clair: #3A9B7F;
    --vert-fonce: #1A4D3C;
    --vert-tres-fonce: #0F2E23;
    --bois-clair: #DEB887;
    --bois-moyen: #BC9A6A;
    --bois-fonce: #8B7355;
    --beige: #FAF8F3;
    --beige-fonce: #F0EDE5;
    --creme: #FFF9F0;
    --noir: #1A1A1A;
    --gris: #949494ff;
    --gris-clair: #E5E5E5;
    --blanc: #FFFFFF;
    --argent: #B8B8B8;
    --argent-clair: #D4D4D4;
    --or: #C9A961;
    --or-clair: #E5D4A8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-colored: 0 4px 20px rgba(39, 113, 90, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Hauteur du header + marge */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--noir);
    background-color: var(--beige);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--vert-fonce);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 3px; background: linear-gradient(90deg, var(--vert-principal), var(--or)); }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
    color: var(--gris);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 1);
    padding: 0.25rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 80px;
    width: auto;
    margin-left: 20px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--vert-fonce);
    font-weight: 600;
    letter-spacing: 0.02em;
    display: none;
}

.logo:hover .logo-text {
    color: var(--vert-principal);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--gris);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vert-principal), var(--or));
    transition: var(--transition);
}

nav a:hover {
    color: var(--vert-principal);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--vert-principal);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--vert-principal), var(--vert-fonce));
    color: var(--blanc);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 113, 90, 0.35);
}

.btn:active {
    transform: translateY(0);
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(107, 142, 35, 0.45);
    outline-offset: 2px;
}

/* Footer */
footer {
    position: relative;
}

.footer-main {
    background: linear-gradient(135deg, var(--vert-fonce), var(--vert-tres-fonce));
    color: var(--blanc);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--or);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 1rem !important;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--or);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--or);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--or);
    transform: translateX(5px);
}

.footer-services li {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 1.2rem;
}

.footer-services li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--or);
    font-size: 0.7rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-contact strong {
    color: var(--blanc);
}

.footer-location {
    margin-top: 1rem !important;
    font-size: 0.95rem;
}

.footer-bottom {
    background: var(--vert-tres-fonce);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 77, 60, 0.92), rgba(39, 113, 90, 0.88)),
                url('https://images.unsplash.com/photo-1611085583191-a3b181a88401?w=1200&q=70');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--blanc);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.08), transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--blanc);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: opacity;
}

.section-content {
    position: relative;
    z-index: 1;
}

.section-overlay {
    background: linear-gradient(135deg, rgba(250, 248, 243, 0.97), rgba(240, 237, 229, 0.95));
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--vert-fonce), var(--vert-principal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-image-container {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease, opacity 0.5s ease;
}

.card-image.active {
    z-index: 2;
}

.card-image.inactive {
    z-index: 1;
    opacity: 0;
}

/* Zoom géré par JavaScript, pas au hover */

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--vert-principal);
    color: var(--blanc);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.card-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.card-dot.active {
    background: var(--blanc);
    width: 24px;
    border-radius: 4px;
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.card-content p {
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    font-weight: 600;
    color: var(--vert-principal);
    font-size: 1.1rem;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Feature boxes */
.feature-box {
    background: var(--blanc);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--vert-clair), var(--vert-principal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-size: 2rem;
    box-shadow: var(--shadow-colored);
}

.feature-box h3 {
    margin-bottom: 1rem;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--blanc);
    color: var(--gris);
    border: 2px solid var(--gris-clair);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--vert-principal);
    color: var(--vert-principal);
}

.filter-btn.active {
    background: var(--vert-principal);
    color: var(--blanc);
    border-color: var(--vert-principal);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gris-clair);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--blanc);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--vert-principal);
    outline: none;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--vert-fonce);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Contact options responsive */
    .contact-options {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Footer */
    .footer-wave {
        height: 50px;
    }
    
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    /* Header */
    header {
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 60px;
        margin-left: 10px;
    }
    
    /* Navigation mobile */
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--blanc);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 10000;
        padding: 2rem 0;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid var(--gris-clair);
    }
    
    nav a {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        color: var(--noir);
        position: relative;
        z-index: 10001;
    }
    
    nav a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 10002;
    }
    
    /* Overlay for mobile menu */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .card-content {
        padding: 1.5rem;
    }
    
    .card-image-container {
        height: 220px;
    }
    
    /* Card dots plus visibles sur mobile */
    .card-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .card-dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.7);
        border: 2px solid rgba(255, 255, 255, 0.9);
    }
    
    .card-dot.active {
        width: 28px;
        background: var(--blanc);
    }
    
    /* Feature boxes */
    .feature-box {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Contact section */
    #contact .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Filter buttons */
    .filter-buttons {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }
    
    .logo img {
        height: 50px;
        margin-left: 5px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-box {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
