:root {
    --primary-color: #2c5e2e;
    --secondary-color: #f9f9f9;
    --accent-color: #d4a017;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --border-color: #ddd;
    --max-width: 1100px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.ag-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.ag-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ag-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #b88b14;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-image {
    background-color: #eee;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-style: italic;
    border: 2px dashed #ccc;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services {
    background-color: #e8f5e9;
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.2rem;
}

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

#calculateur {
    background-color: #f4f4f4;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.calc-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.calc-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.calc-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.calc-input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

#addressSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-top: none;
    z-index: 99999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 0 0 4px 4px;
}

#addressSuggestions li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 14px;
    background: white;
    transition: background 0.2s;
}

#addressSuggestions li:hover {
    background-color: #f0f4f0;
}

#addressSuggestions li:last-child {
    border-bottom: none;
}

.calc-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 0;
}

.calc-btn:hover {
    background-color: #244f26;
}

.calc-result {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
    animation: fadeIn 0.5s;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.calc-row.total {
    padding: 15px 0 5px 0;
    margin-top: 10px;
    border-top: 2px solid #333;
    border-bottom: none;
    font-size: 1.2rem;
}

.calc-row.total span {
    color: var(--primary-color);
    font-weight: bold;
}

.calc-row.small {
    display: none;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.calc-row.small.visible {
    display: flex;
}

.cecb-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.step-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.step-item h4 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.05rem;
}

.step-item p {
    margin: 0;
    color: #555;
    line-height: 1.4;
    font-size: 0.95rem;
}

#contact {
    background-color: var(--secondary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-item a, .contact-item p {
    color: #555;
    font-size: 1.1rem;
}

.contact-form form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0;
}

.contact-form button:hover {
    background-color: #1e4220;
}

footer {
    background-color: #222;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr !important;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .ag-section h1 {
        font-size: 2rem;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}