
:root {
    --green: #27a35a;
    --dark: #174b32;
    --ink: #202923;
    --muted: #78827b;
    --line: #e7ece8;
    --soft: #edf7f0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* PAGE */

.page-shell {
    width: min(1040px, calc(100% - 56px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: relative;
    width: 100%;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 32px;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -1.8px;
    color: var(--dark);
    white-space: nowrap;
}

.brand b {
    color: var(--green);
}

.site-header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
}

.site-header nav a {
    font-size: 15px;
    font-weight: 650;
    color: var(--muted);
    transition: color .2s ease;
}

.site-header nav a.active,
.site-header nav a:hover {
    color: var(--dark);
}

/* LANGUAGE BUTTON */

#language-switch {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 7px;
    padding: 8px 11px;
    color: var(--dark);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

#language-switch:hover {
    background: var(--soft);
    border-color: var(--green);
}

/* HERO */

.hero {
    text-align: center;
    padding: 75px 0 55px;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--green);
    font-size: clamp(14px, 2vw, 21px);
    font-weight: 800;
    letter-spacing: .18em;
}

.hero h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(42px, 6vw, 66px);
    line-height: 1.06;
    letter-spacing: -3.4px;
    font-weight: 850;
}

/* Même couleur pour les deux parties du titre */

.hero h1 em {
    color: var(--dark);
    font-style: normal;
}

.hero > p:last-child {
    max-width: 620px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

/* CONTACT FORM */

.contact-section {
    width: min(680px, 100%);
    margin: 0 auto 55px;
    padding: 34px 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.contact-heading {
    margin-bottom: 28px;
}

.contact-heading h2 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
}

.contact-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 21px;
}

.form-group label {
    color: var(--dark);
    font-size: 13px;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 13px 14px;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input,
.form-group select {
    height: 47px;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aab2ac;
}

/* SEND BUTTON */

.send-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: #198754;
    color: var(--white);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: all .2s ease;
}

.send-button:hover {
    background: #146c43;
    transform: translateY(-2px);
}

#form-status {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--green);
}

/* FOOTER */

.site-footer {
    width: 100%;
    min-height: 66px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    color: #9aa39d;
    font-size: 12px;
}

.copyright {
    white-space: nowrap;
}

.copyright b {
    color: #78827b;
    font-weight: 750;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-links a {
    color: #9aa39d;
    font-size: 13px;
    font-weight: 450;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--dark);
}

/* TABLET */

@media (max-width: 900px) {
    .page-shell {
        width: min(calc(100% - 44px), 760px);
    }

    .hero {
        padding: 65px 0 45px;
    }
}

/* MOBILE */

@media (max-width: 640px) {
    .page-shell {
        width: calc(100% - 36px);
    }

    /* HEADER */

    .site-header {
        height: auto;
        min-height: 0;
        padding: 17px 0 13px;
        flex-wrap: wrap;
        row-gap: 15px;
    }

    .brand {
        order: 1;
        font-size: 27px;
    }

    #language-switch {
        order: 2;
        margin-left: auto;
    }

    .site-header nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 34px;
    }

    .site-header nav a {
        font-size: 14px;
    }

    /* HERO */

    .hero {
        padding: 55px 0 40px;
    }

    .eyebrow {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: clamp(37px, 10vw, 49px);
        letter-spacing: -2.1px;
        line-height: 1.08;
    }

    .hero > p:last-child {
        max-width: 330px;
        margin-top: 17px;
        font-size: 14px;
    }

    /* CONTACT FORM */

    .contact-section {
        padding: 25px 19px;
        margin-bottom: 38px;
    }

    .contact-heading h2 {
        font-size: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* FOOTER */

    .site-footer {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        padding: 18px 0;
        margin-top: 30px;
    }

    .footer-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 13px 20px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* SMALL MOBILE */

@media (max-width: 370px) {
    .page-shell {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 24px;
    }

    .site-header nav {
        gap: 26px;
    }

    .contact-section {
        padding: 22px 15px;
    }

    .footer-links {
        gap: 14px 17px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
