/* ==========================================================================
   Edovert Paysages — design « Edovert Accueil »
   ========================================================================== */

:root {
    --bg: #fbfaf6;
    --ink: #121512;
    --head: #ffffff;
    --line: rgba(18, 21, 18, .08);
    --surf: #eef1e8;
    --surf-h: #e1e7d8;
    --mut: #535a52;
    --acc: #108b4c;
    --acc-h: #0a7a41;
    --acc-dark: #0a5c32;
    --acc-pale: #eef7f1;
    --brown: #7b4a24;
    --brown-dark: #5a3418;
    --brown-pale: #f3dcc6;
    --cream-h: #f3e9df;
    --gutter: clamp(20px, 4vw, 40px);
    --font: 'Bricolage Grotesque', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { display: block; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font); }
[id] { scroll-margin-top: 118px; }

.page { min-height: 100vh; }

.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* — boutons — */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.btn--lg { font-size: 18px; padding: 18px 32px; }
.btn--xl { font-size: 19px; padding: 20px 34px; }
.btn--primary { background: var(--acc); color: #fff; }
.btn--primary:hover { background: var(--acc-h); color: #fff; }
.btn--light { background: #fff; color: var(--acc-dark); }
.btn--light:hover { background: var(--acc-pale); color: var(--acc-dark); }
.btn--outline-light { border: 2px solid #fff; color: #fff; padding: 16px 30px; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border: 2px solid var(--acc); color: var(--acc); align-self: flex-start; margin-top: 6px; }
.btn--outline:hover { background: var(--acc); color: #fff; }
.btn--cream { background: #fff; color: var(--brown-dark); font-size: 17px; padding: 18px 28px; white-space: normal; }
.btn--cream:hover { background: var(--cream-h); color: var(--brown-dark); }

.chip-btn {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: var(--surf);
    color: var(--ink);
    cursor: pointer;
}
.chip-btn:hover { background: var(--surf-h); }

.display-title {
    font-size: clamp(44px, 5.2vw, 68px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--brown);
}

/* — header — */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--head);
    border-bottom: 1px solid var(--line);
}
.site-header__bar {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-header__logo { flex: none; }
.site-header__logo img { height: 88px; width: auto; }
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}
.site-header__nav a { padding: 10px 12px; border-radius: 999px; }
.site-header__nav a:hover { background: var(--surf); }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__phone { font-size: 16px; font-weight: 600; padding: 10px 6px; white-space: nowrap; }
.site-header__phone:hover { color: var(--acc); }
.site-header__burger {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 999px;
    border: none;
    background: var(--surf);
    color: var(--ink);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.site-header__burger:hover { background: var(--surf-h); }
.site-header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--head);
    box-shadow: 0 18px 30px rgba(18, 21, 18, .12);
    display: none;
    flex-direction: column;
    padding: 8px var(--gutter) 20px;
    font-size: 18px;
    font-weight: 600;
    border-top: 1px solid var(--line);
}
.site-header__menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.site-header__menu .site-header__menu-phone { color: var(--acc); border-bottom: none; }

@media (max-width: 1179.98px) {
    .site-header__nav, .site-header__phone { display: none; }
    .site-header__burger { display: flex; }
    .site-header__menu { display: flex; }
}
@media (max-width: 560px) {
    .site-header__logo img { height: 64px; }
    .site-header__actions .btn { font-size: 15px; padding: 12px 18px; }
    [id] { scroll-margin-top: 94px; }
}
@media (max-width: 400px) {
    .site-header__bar { gap: 12px; }
    .site-header__logo img { height: 52px; }
    .site-header__actions .btn { font-size: 14px; padding: 11px 14px; }
    [id] { scroll-margin-top: 82px; }
}

/* — hero — */
.hero { background: var(--acc); color: #fff; }
.hero__inner {
    padding-top: clamp(56px, 8vw, 96px);
    padding-bottom: clamp(56px, 8vw, 96px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 56px;
    align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
    margin: 0;
    font-size: clamp(46px, 6.4vw, 84px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 600px;
    width: 100%;
    justify-self: end;
}
.hero__shape { position: absolute; overflow: hidden; background: rgba(255, 255, 255, .15); }
.hero__shape img { width: 100%; height: 100%; object-fit: cover; }
.hero__shape--tall { right: 0; top: 0; width: 56%; height: 100%; border-radius: 0 100% 0 0 / 0 50% 0 0; }
.hero__shape--small { left: 0; bottom: 0; width: 41%; height: 62%; border-radius: 100% 0 0 0 / 60% 0 0 0; }

/* — services — */
.services { display: flex; flex-direction: column; }
.services__head {
    padding-top: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(40px, 5vw, 64px);
}
.service { background: var(--bg); }
.service:nth-child(odd) { background: var(--surf); }
.service__inner {
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 80px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.service:nth-child(odd) .service__inner { flex-direction: row-reverse; }
.service__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.service h3 {
    margin: 0;
    font-size: clamp(32px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}
.service p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--mut); text-wrap: pretty; }
.service__hint { font-size: 15px; font-weight: 600; color: var(--acc); }
.service__media { flex: 1.4 1 420px; min-width: 0; }
.service__photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: none;
    border-radius: 32px;
    overflow: hidden;
    background: var(--surf);
    cursor: zoom-in;
    transition: box-shadow .2s;
}
.service__photo:hover { box-shadow: 0 18px 40px rgba(18, 21, 18, .18); }
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
.service__photo-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--acc-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

/* — avant / après — */
.before-after {
    position: relative;
    max-height: 720px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    user-select: none;
    background: var(--surf);
}
.before-after > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.before-after__line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    margin-left: -2px;
    background: #fff;
    pointer-events: none;
}
.before-after__handle {
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 999px;
    background: #fff;
    color: var(--acc-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    pointer-events: none;
}
.before-after__tag {
    position: absolute;
    top: 16px;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff;
    pointer-events: none;
}
.before-after__tag--before { left: 16px; background: rgba(18, 21, 18, .72); }
.before-after__tag--after { right: 16px; background: var(--acc); }
.before-after input[type=range] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

/* — à propos — */
.about {
    padding-top: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(72px, 9vw, 120px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.about__portrait { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.about__photo { aspect-ratio: 1 / 1; border-radius: 999px; overflow: hidden; background: var(--surf); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about__caption { display: flex; flex-direction: column; gap: 2px; }
.about__name { font-size: 18px; font-weight: 700; }
.about__role { font-size: 15px; color: var(--mut); }
.about__text { flex: 1.3 1 380px; display: flex; flex-direction: column; gap: 22px; }
.about h2 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
    color: var(--acc);
    text-wrap: balance;
}
.about p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--mut); text-wrap: pretty; }

/* — crédit d'impôt — */
.credit { padding-bottom: clamp(72px, 9vw, 120px); }
.credit__card {
    border-radius: 32px;
    background: var(--brown);
    color: #fff;
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}
.credit__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.credit__kicker { font-size: 18px; font-weight: 600; color: var(--brown-pale); }
.credit__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.credit__body { font-size: 17px; line-height: 1.6; max-width: 680px; }

/* — contact — */
.contact { background: var(--acc); color: #fff; }
.contact__inner {
    padding-top: clamp(72px, 9vw, 112px);
    padding-bottom: clamp(72px, 9vw, 112px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 48px;
    align-items: center;
}
.contact__text { display: flex; flex-direction: column; gap: 24px; }
.contact h2 {
    margin: 0;
    font-size: clamp(40px, 5.4vw, 72px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
}
.contact p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 460px; }
.contact__text .btn { align-self: flex-start; }
.contact__list { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: background .15s;
}
.contact-card:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.contact-card__icon {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 999px;
    background: #fff;
    color: var(--acc-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card__label { font-size: 14px; font-weight: 500; opacity: .85; }
.contact-card__value { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.contact-card__arrow { margin-left: auto; font-size: 20px; }

/* — footer — */
.footer {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: var(--mut);
}
.footer__title {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    color: var(--ink);
}
.footer__meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }

/* — galerie — */
.gallery {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 12, 9, .92);
    color: #fff;
    display: flex;
    flex-direction: column;
    outline: none;
}
.gallery__backdrop { position: absolute; inset: 0; }
.gallery__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px clamp(16px, 3vw, 32px);
}
.gallery__titles { display: flex; flex-direction: column; gap: 2px; }
.gallery__kicker { font-size: 14px; font-weight: 600; color: #9fe0b4; }
.gallery__title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.gallery__count { margin-left: auto; font-size: 16px; font-weight: 600; opacity: .85; }
.gallery__close {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery__close:hover { background: rgba(255, 255, 255, .22); }
.gallery__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 clamp(16px, 3vw, 32px);
    pointer-events: none;
}
.gallery__img {
    pointer-events: auto;
    min-width: 0;
    max-width: min(100%, 1200px);
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
}
.gallery__nav {
    pointer-events: auto;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: var(--acc-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery__nav:hover { background: var(--acc-pale); }
.gallery__thumbs {
    position: relative;
    display: flex;
    justify-content: safe center;
    gap: 8px;
    padding: 20px;
    overflow-x: auto;
}
.gallery__thumb {
    flex: none;
    width: 72px;
    height: 54px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    opacity: .6;
}
.gallery__thumb.is-active { border-color: #fff; opacity: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 560px) {
    .gallery__nav { width: 44px; height: 44px; }
    .gallery__stage { gap: 8px; }
}

.not-found { max-width: 1240px; margin: 80px auto; padding: 0 var(--gutter); font-size: 18px; }
.not-found a { color: var(--acc); font-weight: 600; }

/* — Blazor — */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 3.5rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Une erreur est survenue."
}
