/* Couleurs et dimensions partagées */
:root {
    --green: #166A31;
    --accent: #77B82A;
    --purple: #C017CF;
    --purple-text: #852393;
    --purple-soft: #f8edf9;
    --purple-line: #e7c6ec;
    --ink: #193c28;
    --muted: #57665c;
    --paper: #fafbf7;
    --line: #dce5d9;
    --radius: 18px;
}

/* Base et accessibilité */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
p { margin: 0 0 20px; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 650; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.7rem, 5.2vw, 4.7rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.4rem; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 96px; }
.eyebrow { margin-bottom: 22px; color: var(--green); font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: 1.3rem; line-height: 1.55; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: white; }
.skip-link:focus { top: 12px; }

/* En-tête et navigation par ancres */
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 26px; }
.brand { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; text-decoration: none; }
.brand-logo { display: block; width: 88px; max-width: 28%; height: auto; flex-shrink: 0; }
.brand-name { font-size: 1.65rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; color: var(--green); }
.brand-dot { color: var(--purple); }
nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: .83rem; font-weight: 600; }
nav a:hover, .text-link:hover { color: var(--green); text-decoration: underline; }
nav .nav-contact { padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; }
.nav-contact span { margin-left: 10px; }

.site-header [hidden] { display: none; }
.menu-toggle { display: none; }
.menu-toggle:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }

/* Section d'accueil et emplacement de photographie */
.hero { padding-block: 74px 80px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; }
h1 span { color: var(--green); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
.intro { margin-top: 28px; color: var(--muted); max-width: 490px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 15px 22px; border-radius: 6px; color: white; background: var(--green); text-decoration: none; font-size: .87rem; font-weight: 650; }
.button:hover { background: #105124; }
.text-link { font-size: .83rem; font-weight: 650; text-decoration: none; }
.text-link span { margin-left: 8px; }
.hero-note { margin: 28px 0 0; font-size: .72rem; color: var(--muted); }
.photo-placeholder { background: #eaf0e4; border: 1px solid #d5dfce; }
.hero-photo { height: 560px; min-width: 0; overflow: hidden; border-radius: 140px 18px 18px 18px; background: #eaf0e4; }
/* Le cadrage privilégie le jardin et le matériel, sans déformer la photo. */
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.values-strip { border-block: 1px solid var(--line); background: #f1f5eb; }
.values-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 21px; font-size: .8rem; font-weight: 600; }
.values-inner span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 12px; border-radius: 50%; }

/* Prestations, entreprise et réalisations */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: .94rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.card-number { color: var(--green); font-size: .75rem; letter-spacing: .08em; }
.service-card h3 { margin-top: 40px; font-size: 1.28rem; letter-spacing: -.03em; line-height: 1.25; }
.service-card p { margin-top: 18px; color: var(--muted); font-size: .88rem; }
.service-card .text-link { margin-top: auto; padding-top: 16px; font-size: .73rem; }
.about-section { background: #eef3e9; }
.about-grid, .area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.about-copy > p:not(.lead), .area-grid > div > p:not(.lead):not(.eyebrow) { color: var(--muted); }
.signature { display: inline-block; padding-top: 12px; font-size: .9rem; font-weight: 600; color: var(--green); }
.signature::before { content: ""; display: inline-block; width: 25px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--purple); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-placeholder { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; padding: 24px; border-radius: var(--radius); }
.project-placeholder:nth-child(2) { background: #f0f1e8; }
.project-placeholder:nth-child(3) { background: #e8efea; }
.project-placeholder p { margin: 0; font-size: 1rem; font-weight: 600; }
.project-placeholder p span { display: block; margin-top: 6px; font-size: .75rem; font-weight: 400; color: var(--muted); }

/* Information fiscale et zone d'intervention */
.tax-section { padding-block: 0; }
.tax-panel { display: grid; grid-template-columns: .6fr 1.4fr; align-items: center; gap: 65px; padding: 60px; border-radius: var(--radius); background: #f1f4eb; border: 1px solid var(--line); }
.tax-figure { text-align: center; }
.tax-figure strong { display: block; color: var(--purple-text); font-size: clamp(5rem, 9vw, 8rem); line-height: 1.1; letter-spacing: -.08em; }
.tax-figure strong span { font-size: .5em; }
.tax-figure > span { display: block; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.tax-panel h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); margin-bottom: 22px; }
.tax-panel p:not(.eyebrow) { color: var(--muted); }
.tax-panel .tax-note { font-size: .82rem; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.area-tags span { font-size: .73rem; border: 1px solid var(--line); border-radius: 30px; padding: 7px 13px; }

/* Contact et pied de page */
.contact-section { background: var(--green); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 90px; }
.contact-section .eyebrow { color: #d2ecb4; }
.contact-section h2 { margin-bottom: 25px; }
.contact-section p:not(.eyebrow) { color: #e0ecdf; }
.contact-card { padding: 30px; border: 1px solid #669a73; border-radius: var(--radius); }
.contact-card h3 { margin-bottom: 16px; }
.contact-card p { font-size: .9rem; }
.contact-pending { display: inline-block; padding-top: 12px; border-top: 1px solid #669a73; font-size: .8rem; color: #e0ecdf; }
.site-footer { background: white; padding-block: 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer p { margin: 7px 0 0; font-size: .72rem; color: var(--muted); }

/* Tablettes et téléphones. */
@media (max-width: 1050px) {
    .container { width: calc(100% - 48px); }
    .header-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-grid { gap: 32px; }
    .hero-photo { height: 490px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .area-grid, .contact-grid { gap: 45px; }
    .tax-panel { padding: 40px; gap: 35px; }
}
@media (max-width: 700px) {
    .brand { gap: 12px; }
    .brand-logo { width: 64px; }
    .container { width: calc(100% - 40px); }
    .section { padding-block: 60px; }
    /* Chaque lien dispose de sa propre ligne et d'une grande zone tactile. */
    .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 12px; padding-block: 18px; }
    .site-header .brand { min-width: 0; }
    .site-header .brand-name { font-size: clamp(1.1rem, 5vw, 1.65rem); line-height: 1.2; overflow-wrap: anywhere; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--green); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
    .site-header nav { grid-column: 1 / -1; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
    .site-header nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; font-size: 1rem; overflow-wrap: anywhere; }
    .site-header nav a:hover { background: #eef3e9; }
    .site-header nav .nav-contact { padding: 12px 14px; }
    .hero-grid, .about-grid, .area-grid, .contact-grid, .tax-panel { grid-template-columns: 1fr; }
    .hero { padding-top: 45px; }
    .hero-photo { height: clamp(360px, 110vw, 520px); border-top-left-radius: 100px; margin-top: 10px; }
    .hero-actions { gap: 20px; }
    .values-inner { flex-direction: column; gap: 10px; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 24px; }
    .section-heading > p { max-width: none; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .project-placeholder { min-height: 240px; }
    .tax-section { padding-block: 0; }
    .tax-panel { padding: 30px 24px; }
    .tax-figure { text-align: left; }
    .tax-figure strong { font-size: 5rem; }
    .tax-figure > span br { display: none; }
    .tax-figure > span { margin-top: 8px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 430px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card h3 { margin-top: 24px; }
    h1 { font-size: 2.7rem; }
    .eyebrow { letter-spacing: .09em; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Galerie de realisations.html : styles limités à cette page. */
.realisations-page .realisations-gallery-section { padding-top: 0; }
.realisations-page .realisations-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.realisations-page .realisation-card { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.realisations-page .realisation-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.realisations-page .realisation-card figcaption { padding: 24px; }
.realisations-page .realisation-card h3 { font-size: 1.25rem; line-height: 1.3; }
.realisations-page .realisation-card p { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
    .realisations-page .realisations-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .realisations-page .realisations-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Page Contact : styles limités à son contenu. */
.contact-page .contact-content { padding-top: 0; }
.contact-page .contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.contact-page h2 { margin-bottom: 24px; }
.contact-page .contact-details { padding: 28px; border-radius: var(--radius); background: #eef3e9; }
.contact-page .contact-methods { list-style: none; margin: 24px 0; padding: 0; }
.contact-page .contact-methods li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact-page .contact-methods li span { display: block; font-size: .8rem; color: var(--muted); }
.contact-page .contact-methods a { display: inline-block; padding-block: 8px; font-weight: 600; overflow-wrap: anywhere; }
.contact-page .quote-panel { min-width: 0; padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-page .form-notice { padding: 20px; margin-bottom: 24px; background: #f1f4eb; border-left: 3px solid var(--green); overflow-wrap: anywhere; }
.contact-page .form-notice p { margin: 8px 0 0; }
.contact-page .form-help, .contact-page small { font-size: .85rem; color: var(--muted); }
.contact-page .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-page .form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-page .form-wide { grid-column: 1 / -1; }
.contact-page label { font-size: .9rem; font-weight: 600; }
.contact-page input:not([type="checkbox"]), .contact-page select, .contact-page textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #8a9d8d; border-radius: 6px; background: white; color: var(--ink); font: inherit; font-size: 1rem; }
.contact-page textarea { resize: vertical; }
.contact-page input[type="file"] { font-size: .85rem; }
.contact-page input[type="file"]::file-selector-button { min-height: 44px; margin-right: 10px; border: 1px solid var(--line); border-radius: 4px; background: #eef3e9; color: var(--ink); cursor: pointer; }
.contact-page input:focus-visible, .contact-page select:focus-visible, .contact-page textarea:focus-visible, .contact-page button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.contact-page .consent-field { display: flex; gap: 12px; align-items: flex-start; margin-block: 24px; }
.contact-page .consent-field input { flex: 0 0 22px; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--green); }
.contact-page .consent-field label { padding-block: 2px; font-weight: 400; }
.contact-page button.button { border: 0; font-family: inherit; line-height: 1.5; cursor: pointer; text-align: left; }
.contact-page button:disabled { opacity: .6; cursor: not-allowed; }
.contact-page .field-error { margin: 0; color: #a12828; font-size: .85rem; }
.contact-page .form-status { margin: 20px 0 0; font-weight: 600; }
.contact-page .privacy-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-page .privacy-note h3 { font-size: 1.1rem; }
.contact-page .privacy-note p { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.contact-page [hidden] { display: none; }
@media (max-width: 1000px) {
    .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
    .contact-page .form-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-page .quote-panel, .contact-page .contact-details { padding: 22px 18px; }
    .contact-page button.button { width: 100%; }
}

/* Accents violets partagés : le vert reste dominant. */
.section-heading .eyebrow,
.about-grid > div:first-child > .eyebrow,
.area-grid > div:first-child > .eyebrow,
.contact-details > .eyebrow { color: var(--purple-text); }
.service-card { border-top: 3px solid var(--purple-line); }
.service-card .card-number { color: var(--purple-text); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-header nav a:hover { text-decoration-color: var(--purple); }
.realisations-page .realisation-card figcaption { border-top: 3px solid var(--purple-line); }
.contact-page .quote-panel { border-top: 3px solid var(--purple-line); }
.site-footer a[href="confidentialite.html"],
.site-footer a[href="mentions-legales.html"] { text-decoration: underline; text-decoration-color: var(--purple-line); text-decoration-thickness: 2px; }

/* Crédit d'impôt placé entre les prestations et la présentation de l'entreprise. */
.tax-section { padding-bottom: 96px; }
.tax-panel { border-color: var(--purple-line); background: var(--purple-soft); }
.tax-panel .eyebrow { color: var(--purple-text); }
.tax-panel h2 { color: var(--green); font-size: clamp(2.5rem, 4.5vw, 3.8rem); }
.tax-panel .tax-subtitle { font-size: 1.15rem; font-weight: 600; }

/* Photographies des réalisations sur l'accueil. */
.home-project-card { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.home-project-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.home-project-card figcaption { padding: 24px; border-top: 3px solid var(--purple-line); }
.home-project-card h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.02em; }
@media (max-width: 700px) {
    .tax-section { padding-bottom: 60px; }
    .home-project-card figcaption { padding: 20px; }
}

/* Catégories de chantiers : espacement régulier entre les galeries. */
.realisations-page .chantier-category + .chantier-category { padding-top: 0; }

@media (max-width: 700px) {
    .realisations-page .chantier-category .realisations-gallery { grid-template-columns: minmax(0, 1fr); }
}
