:root {
    --agro-green-dark: #31473a;
    --agro-green-light: #b7cbb2;
    --agro-beige: #f5f6f4;
    --agro-brown: #7a6a58;
    --agro-gold: #ecebe3;
    --main-bg: var(--agro-beige);
    --main-text: #23272f;
    --accent: var(--agro-green-dark);
    --accent-light: var(--agro-green-light);
    --accent-dark: #23272f;
    --primary: var(--agro-brown);
    --primary-light: #f0f2f6;
    --border: #e2e5ea;
    --shadow: 0 2px 16px #1a22300d;
    --shadow-hover: 0 4px 32px #1a223022;
    --btn-bg: var(--agro-green-dark);
    --btn-bg-hover: #223227;
    --btn-text: #fff;
    --btn-outline: var(--agro-green-dark);
    --tag-bg: var(--agro-gold);
    --tag-text: var(--agro-green-dark);
    --input-bg: var(--agro-beige);
    --input-border: #d1d5db;
    --input-focus: #31473a33;
}

body {
    background: var(--main-bg);
    color: var(--main-text);
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
}
h1, h2, h3, h4 {
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 0.5em 0;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; text-align: center; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; letter-spacing: 1px; }
.subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 2em;
    margin-top: -1em;
    text-align: center;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.3em; }

header {
    background: #fff;
    box-shadow: 0 1px 6px #1a223008;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2em 2em;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 1px;
}
nav ul {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li a {
    font-weight: 500;
    color: var(--main-text);
    transition: color 0.2s;
}
nav ul li a:hover {
    color: var(--accent);
}
.cta {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.7em 1.5em;
    border-radius: 8px;
    font-weight: bold;
    margin-left: 2em;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
}
.cta:hover {
    background: var(--btn-bg-hover);
}

.hero {
    max-width: 800px;
    margin: 2em auto 0 auto;
    text-align: center;
    padding: 2em 1em 2.5em 1em;
}
.hero h1 {
    font-size: 3rem;
    color: var(--accent-dark);
}
.hero h2 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1em;
}
.hero p {
    color: var(--main-text);
    margin-bottom: 2em;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5em;
}
.hero::after {
    content: "";
    display: block;
    height: 2.5em;
}

.btn, .btn-outline {
    display: inline-block;
    padding: 0.8em 2em;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
}
.btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
}
.btn:hover {
    background: var(--btn-bg-hover);
}
.btn-outline {
    background: #fff;
    color: var(--btn-outline);
    border: 2px solid var(--btn-outline);
}
.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
}
.btn-rdv {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--btn-bg);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.08rem;
    padding: 1em 0;
    border: none;
    box-shadow: 0 1px 6px #1a223008;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.7em;
    margin-bottom: 1.5em;
}
.btn-rdv:hover {
    background: var(--btn-bg-hover);
    color: #fff;
    box-shadow: 0 2px 12px #1a223012;
    transform: translateY(-1px) scale(1.01);
}

section {
    max-width: 1200px;
    margin: 0 auto 3em auto;
    padding: 2.5em 1em 0 1em;
}
main > section {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
main > section.services {
    padding-top: 4em;
}
main > section.methode {
    margin-top: 0;
    padding-top: 2.5em;
}
.methode.section-alt-bg {
    padding-top: 2.5em;
    padding-bottom: 2.5em;
}

.cards {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 8px #1a223008;
    padding: 2em 1.5em 1.5em 1.5em;
    flex: 1 1 320px;
    max-width: 370px;
    min-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2em;
    position: relative;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border 0.2s;
}
.card:hover {
    box-shadow: 0 2px 16px #1a223010;
    border: 1px solid var(--accent-light);
}
.card .icon {
    font-size: 2.2rem;
    margin-bottom: 0.7em;
    color: #99a1ad;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    width: 40px;
}
.icon-meca, .icon-elec, .icon-soft {
    width: 40px;
    height: 40px;
}
.icon-meca {
    background: url('data:image/svg+xml;utf8,<svg width="32" height="32" fill="none" stroke="%2331473a" stroke-width="2" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="6" stroke="%2331473a" fill="none"/><g stroke="%2331473a"><path d="M16 3v4"/><path d="M16 25v4"/><path d="M3 16h4"/><path d="M25 16h4"/><path d="M7.8 7.8l2.8 2.8"/><path d="M21.4 21.4l2.8 2.8"/><path d="M7.8 24.2l2.8-2.8"/><path d="M21.4 10.6l2.8-2.8"/></g></svg>') no-repeat center/contain;
}
.icon-elec {
    background: url('data:image/svg+xml;utf8,<svg width="32" height="32" fill="none" stroke="%2331473a" stroke-width="2.2" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><polygon points="18,3 6,18 15,18 14,29 26,13 17,13" stroke="%2331473a" fill="none"/></svg>') no-repeat center/contain;
}
.icon-soft {
    background: url('data:image/svg+xml;utf8,<svg width="32" height="32" fill="none" stroke="%2331473a" stroke-width="2.2" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><polyline points="12,10 7,16 12,22" stroke="%2331473a" fill="none"/><polyline points="20,10 25,16 20,22" stroke="%2331473a" fill="none"/></svg>') no-repeat center/contain;
}
.card .price {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 0.7em;
    font-size: 1.1rem;
}
.card .desc {
    margin-top: 1em;
    color: var(--main-text);
    font-size: 1rem;
}
.card .tag {
    margin-top: 1.2em;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 8px;
    padding: 0.7em 1em;
    font-weight: 600;
    font-size: 1rem;
}
.img-placeholder {
    width: 100%;
    height: 80px;
    background: var(--accent-light);
    border-radius: 8px 8px 0 0;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5b5b5;
    font-size: 1.2rem;
    font-style: italic;
}

.steps {
    display: flex;
    gap: 2em;
    justify-content: center;
    margin-top: 2em;
    flex-wrap: wrap;
}
.step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px #1a223008;
    padding: 1.5em 1.2em;
    flex: 1 1 250px;
    max-width: 320px;
    min-width: 200px;
    text-align: center;
    margin-bottom: 1em;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border 0.2s;
}
.step:hover {
    box-shadow: 0 2px 16px #1a223010;
    border: 1px solid var(--accent-light);
}
.step-num {
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7em auto;
    font-size: 1.2rem;
}

.contact-content {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2em;
    align-items: stretch;
}
.contact-info {
    flex: 1 1 270px;
    min-width: 250px;
    max-width: 350px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 8px #1a223008;
    border: 1.5px solid var(--accent-light);
    padding: 2em;
    margin-bottom: 2em;
    transition: box-shadow 0.2s, border 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.contact-info h3 {
    font-size: 1.13rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 1.1em;
    letter-spacing: 0.1px;
}
.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.2em;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}
.contact-info li {
    margin-bottom: 0.5em;
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    color: #222;
    font-size: 1.01rem;
    padding: 0.3em 0;
    border-bottom: 1px solid var(--accent-light);
    line-height: 1.5;
}
.contact-info li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    font-size: 1.01rem;
    line-height: 1.4;
}
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
    flex: 1 1 370px;
    min-width: 300px;
    max-width: 480px;
}
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 8px #1a223008;
    border: 1.5px solid var(--accent-light);
    padding: 2em 1.5em 1.5em 1.5em;
}
.contact-form h3 {
    font-size: 1.18rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 1.2em;
    letter-spacing: 0.2px;
    text-align: left;
}
.contact-form label {
    font-size: 1rem;
    color: var(--main-text);
    font-weight: 500;
    margin-bottom: 0.5em;
    display: block;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1em 1.1em;
    border-radius: 8px;
    border: 1.5px solid var(--accent-light);
    font-size: 1.05rem;
    background: var(--input-bg);
    margin-bottom: 0.3em;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    color: var(--main-text);
    font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--input-focus);
    background: #fff;
}
.divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.3em 0 0 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    gap: 0.7em;
}
.divider-or::before,
.divider-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--accent-light);
    margin: 0 0.5em;
}
footer {
    background: #fff;
    border-top: 1px solid var(--border);
    margin-top: 2em;
    padding-top: 1.2em;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15em;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0.7em;
    border-radius: 8px 8px 0 0;
}
.footer-content div {
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    align-items: flex-start;
}
.footer-content h4 {
    color: var(--accent);
    margin-bottom: 0.2em;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1px;
}
.footer-content a {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.98rem;
    border-radius: 4px;
    padding: 0.05em 0.1em;
    transition: color 0.2s, background 0.2s;
}
.footer-content a.footer-icon-link:hover {
    color: var(--accent);
    background: var(--accent-light);
    text-decoration: none;
}
.footer-content a:not(.footer-icon-link):hover {
    color: var(--btn-bg);
    background: var(--accent-light);
    text-decoration: none;
}
.footer-icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 0.1em;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(0.1) brightness(1);
    transition: filter 0.2s;
}
.footer-content a.footer-icon-link:hover .footer-icon {
    filter: none;
}
.icon-mail {
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2331473a" stroke-width="1.7" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="14" x="2" y="5" rx="3" stroke="%2331473a" fill="white"/><path d="M4 7l8 6 8-6" stroke="%2331473a" fill="none"/></svg>');
}
.icon-linkedin {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><rect width="24" height="24" rx="4" fill="white"/><path d="M6.94 19V9.56H4.13V19h2.81ZM5.53 8.36c.97 0 1.57-.65 1.57-1.46-.02-.83-.6-1.46-1.55-1.46-.95 0-1.57.63-1.57 1.46 0 .81.6 1.46 1.53 1.46h.02ZM9.36 19h2.8v-5.25c0-.28.02-.56.1-.76.22-.56.72-1.13 1.56-1.13 1.1 0 1.54.85 1.54 2.1V19h2.8v-5.62c0-3-1.6-4.39-3.74-4.39-1.73 0-2.5.96-2.93 1.63h.02V9.56H9.36c.04.85 0 9.44 0 9.44Z" fill="%2331473a"/></svg>');
}
.icon-github {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><rect width="24" height="24" rx="4" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.48 2 2 6.58 2 12.26c0 4.49 2.87 8.3 6.84 9.64.5.09.68-.22.68-.48 0-.24-.01-.87-.01-1.7-2.78.62-3.37-1.36-3.37-1.36-.45-1.18-1.1-1.5-1.1-1.5-.9-.63.07-.62.07-.62 1 .07 1.53 1.05 1.53 1.05.89 1.56 2.34 1.11 2.91.85.09-.66.35-1.11.63-1.37-2.22-.26-4.56-1.14-4.56-5.07 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.3.1-2.7 0 0 .84-.28 2.75 1.05A9.34 9.34 0 0 1 12 6.84c.85.004 1.71.12 2.51.35 1.91-1.33 2.75-1.05 2.75-1.05.55 1.4.2 2.44.1 2.7.64.72 1.03 1.63 1.03 2.75 0 3.94-2.34 4.81-4.57 5.07.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.81 0 .27.18.58.69.48A10.01 10.01 0 0 0 22 12.26C22 6.58 17.52 2 12 2Z" fill="%2331473a"/></svg>');
}
.footer-content span {
    font-size: 0.95rem;
    margin-top: 0.05em;
    margin-bottom: 0.05em;
    line-height: 1.2;
}
.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 0.5em 0 0.2em 0;
    margin-top: 0.5em;
    border-radius: 0 0 6px 6px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.real-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none;
}
.real-modal-backdrop {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(49,71,58,0.45);
    backdrop-filter: blur(2px);
    z-index: 1;
}
.real-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 48px #1a223044, 0 1.5px 8px #b7cbb220;
    max-width: 540px;
    width: 95vw;
    padding: 2.5em 2em 2em 2em;
    animation: modalIn 0.18s cubic-bezier(.4,1.4,.6,1) both;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    background: linear-gradient(120deg, #fff 85%, #f5f6f4 100%);
    margin: 2.5em auto auto auto;
}
.real-modal-close {
    position: absolute;
    top: 1.4em;
    right: 1.2em;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--accent-dark);
    cursor: pointer;
    z-index: 3;
    padding: 0 0.2em;
    border-radius: 50%;
    line-height: 1;
    font-weight: 400;
}

#real-modal-body {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5em;
    padding-bottom: 0.5em;
}

#real-modal-body h2 {
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin: 0.2em 0 0.7em 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: left;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
    margin-top: 0.1em;
}
#real-modal-body h4 {
    font-size: 1.05rem;
    color: var(--accent);
    margin: 0 0 0.2em 0;
    font-weight: 600;
    letter-spacing: 0.09em;
    margin-bottom: 0.1em;
    margin-top: 0.2em;
}

#real-modal-body hr {
    border: none;
    border-top: 1.5px solid var(--accent-light);
    margin: 1.3em 0 1.3em 0;
    opacity: 0.7;
}

#real-modal-body ul {
    padding-left: 1.5em;
    margin: 0.7em 0 1.1em 0;
    list-style-type: disc;
}
#real-modal-body ul ul {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    padding-left: 1.1em;
    font-size: 0.98rem;
    list-style-type: circle;
}
#real-modal-body li {
    margin-bottom: 0.4em;
    line-height: 1.6;
    padding-left: 0.1em;
    position: relative;
}
#real-modal-body li b {
    color: var(--accent);
    font-weight: 600;
    font-family: inherit;
}

#real-modal-body p {
    margin: 0.7em 0 0.7em 0;
    font-size: 1.05rem;
    color: var(--main-text);
    line-height: 1.7;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.1em;
}

#real-modal-body code, #real-modal-body .tech {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    background: #f5f6f4;
    color: var(--accent-dark);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.98em;
    margin: 0 0.1em;
}

#real-modal-body .modal-note {
    background: var(--accent-light);
    color: var(--accent-dark);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 0.7em 1em;
    margin: 1em 0;
    font-size: 0.98rem;
    font-style: italic;
}

#real-modal-body .modal-section {
    margin: 1.5em 0 1.5em 0;
    border-top: 1.5px solid var(--accent-light);
    padding-top: 1.1em;
}

#real-modal-body .tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 7px;
    padding: 0.4em 1em;
    font-weight: 600;
    font-size: 0.98rem;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
    letter-spacing: 0.03em;
    border: 1px solid var(--accent-light);
}

/* === Responsive Design === */
@media (max-width: 900px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 1.2em;
    }
    nav ul {
        gap: 1.2em;
    }
    .footer-content {
        gap: 4em;
    }
    .cards, .steps, .contact-content {
        flex-direction: column;
        gap: 1.5em;
        align-items: stretch;
    }
    .card, .step, .contact-info, .contact-form-wrapper {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.7em 0.5em;
    }
    .logo {
        font-size: 1.5rem;
        margin-bottom: 0.5em;
    }
    nav ul {
        flex-direction: column;
        gap: 0.7em;
        width: 100%;
        margin-bottom: 0.7em;
    }
    .cta {
        width: 100%;
        margin: 0.5em 0 0 0;
        padding: 0.7em 0;
    }
    .hero {
        padding: 1.2em 0.3em 1.5em 0.3em;
    }
    .cards, .steps, .contact-content {
        flex-direction: column;
        gap: 1em;
        align-items: stretch;
    }
    .card, .step, .contact-info, .contact-form-wrapper {
        max-width: 100%;
        min-width: 0;
        padding: 1.2em 0.7em;
    }
    section {
        padding: 1.2em 0.3em 0 0.3em;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.2em;
        align-items: stretch;
        padding: 0 0.5em 0.7em 0.5em;
    }
    .footer-content div {
        min-width: 0;
        width: 100%;
    }
    .footer-bottom {
        font-size: 0.9rem;
        padding: 0.7em 0 0.3em 0;
    }
    .real-modal-content {
        padding: 1.2em 0.5em 1em 0.5em;
    }
}