:root {
    --primary-color: #E65330;
    --secondary-color: #7AC8D0;
    --tertiary-color: #F6F6F6;
    --text-color: #1a1a1a;
    --heading-color: #333333;
    --bg-color: #ffffff;
    --font-main: "DM Sans", sans-serif;
    --font-heading: "Inter", sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--tertiary-color);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #d14620;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 83, 48, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #65b2ba;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 200, 208, 0.4);
}

/* Top Bar */
.topbar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Header */
header {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo img {
    max-width: 150px;
    border-radius: 0;
}

/* Hero Section */
.hero-section {
    background-image: url('https://www.lescrechescalines.com/wp-content/uploads/2023/10/Untitled-design-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 80vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
}

.hero-section>.container {
    position: relative;
    z-index: 1;
}

.hero {
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.form-wrapper {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Native form styles */
.form-section-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    margin-top: 1.2rem;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-field {
    margin-bottom: 0.8rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-field input::placeholder {
    color: #999;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 83, 48, 0.2);
    background: #fff;
}

.form-date-label {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.form-consent {
    margin-top: 0.5rem;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Features - Custom Border grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Colored borders and specific rounded corners for Desktop (3 columns) */
.feature-card:nth-child(1) {
    border-color: var(--primary-color);
    border-radius: 60px 0 0 0;
}

.feature-card:nth-child(2) {
    border-color: var(--secondary-color);
    border-radius: 0;
}

.feature-card:nth-child(3) {
    border-color: var(--primary-color);
    border-radius: 0 60px 0 0;
}

.feature-card:nth-child(4) {
    border-color: var(--secondary-color);
    border-radius: 0 0 0 60px;
}

.feature-card:nth-child(5) {
    border-color: var(--primary-color);
    border-radius: 0;
}

.feature-card:nth-child(6) {
    border-color: var(--secondary-color);
    border-radius: 0 0 60px 0;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Redefine borders and order for 2 columns layout */
    .feature-card:nth-child(1) {
        order: 1;
        border-color: var(--primary-color);
        border-radius: 60px 0 0 0;
    }

    .feature-card:nth-child(2) {
        order: 2;
        border-color: var(--secondary-color);
        border-radius: 0 60px 0 0;
    }

    /* Jardin (3) moves to 4th spot */
    .feature-card:nth-child(3) {
        order: 4;
        border-color: var(--primary-color);
        border-radius: 0;
    }

    /* Ateliers (4) moves to 3rd spot */
    .feature-card:nth-child(4) {
        order: 3;
        border-color: var(--secondary-color);
        border-radius: 0;
    }

    .feature-card:nth-child(5) {
        order: 5;
        border-color: var(--primary-color);
        border-radius: 0 0 0 60px;
    }

    .feature-card:nth-child(6) {
        order: 6;
        border-color: var(--secondary-color);
        border-radius: 0 0 60px 0;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 columns on mobile */
        gap: 0.5rem;
    }

    .feature-card {
        padding: 1.5rem 0.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .feature-card img {
        height: 60px;
        margin-bottom: 1rem;
    }
}

.feature-card img {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Patrick Hand', var(--font-heading);
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.2;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Split sections */
.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Virtual Tour & Maps */
.iframe-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 3rem 0;
    }
}