/* ==========================================================================
   Parcellea — pages publiques (accueil, prix, guides, annonces)
   Complète style.css (couleurs et composants partagés avec la carte)
   ========================================================================== */
html:has(body.site), body.site { height: auto; overflow: auto; }
body.site { background: var(--bg); }
.site-main { max-width: 980px; margin: 0 auto; padding: 8px 16px 56px; }
.site-main h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 10px; }
.site-main h2 { font-size: 21px; letter-spacing: -.02em; margin: 40px 0 14px; }
.site-main h3 { font-size: 17px; margin: 24px 0 8px; }
.site-main p, .site-main li { line-height: 1.65; }
.site-main a:not(.btn):not(.ad-card):not(.carte-guide) { color: var(--brand); text-underline-offset: 2px; }
.chapo { font-size: 17px; color: var(--fg-2); max-width: 720px; margin: 0 0 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête et pied de page */
.site-entete { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-entete-interne { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.site-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--brand); text-decoration: none; }
.site-entete nav { display: flex; gap: 4px; margin-left: auto; }
.site-entete nav a { padding: 8px 10px; border-radius: 9px; color: var(--fg-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-entete nav a:hover, .site-entete nav a[aria-current] { background: var(--surface-2); color: var(--fg); }
.site-pied { border-top: 1px solid var(--line); background: var(--surface); }
.site-pied-interne { max-width: 980px; margin: 0 auto; padding: 28px 16px 8px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; font-size: 14px; }
.site-pied-interne b { display: block; margin-bottom: 8px; }
.site-pied-interne p { margin: 0; color: var(--muted); line-height: 1.55; }
.site-pied-interne a { display: block; color: var(--fg-2); text-decoration: none; padding: 3px 0; }
.site-pied-interne a:hover { color: var(--brand); text-decoration: underline; }
.site-sources { max-width: 980px; margin: 0 auto; padding: 8px 16px 24px; font-size: 12.5px; color: var(--faint); }
.ariane { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.ariane a { color: var(--muted) !important; }

/* Accueil */
.hero-accueil { padding: 36px 0 8px; }
.hero-accueil h1 { max-width: 760px; }
.recherche-accueil { position: relative; display: flex; gap: 8px; max-width: 620px; margin: 22px 0 10px; }
.recherche-accueil input { flex: 1; min-width: 0; height: 52px; font-size: 16px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.recherche-accueil .btn { height: 52px; padding: 0 20px; }
.suggestions { position: absolute; top: 58px; left: 0; right: 0; z-index: 5; list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: 13px; box-shadow: var(--shadow-lg); }
.suggestions li { padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.suggestions li:hover { background: var(--surface-2); }
.suggestions li span { color: var(--muted); font-size: 13px; }
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.etapes li { counter-increment: e; background: var(--surface); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.etapes li::before { content: counter(e); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.etapes b, .atouts b, .cartes-public b { display: block; margin-bottom: 4px; }
.etapes span, .atouts span { color: var(--fg-2); font-size: 14.5px; }
.atouts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.atouts li { border-left: 3px solid var(--brand); background: var(--surface); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.cartes-public { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cartes-public > div { background: var(--brand-soft); border-radius: 14px; padding: 18px; }
.cartes-public p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.grille-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.grille-deps a { display: block; background: var(--surface); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--fg) !important; box-shadow: var(--shadow-sm); }
.grille-deps a:hover { box-shadow: var(--shadow); }
.grille-deps span { display: block; color: var(--muted); font-size: 13px; }

/* Blocs communs */
.bloc-carte { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 30px 0; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.bloc-carte p { margin: 4px 0 0; color: var(--muted); }
.grille-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.tuile { background: var(--surface); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.tuile .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tuile .sub { font-size: 13px; }
.tableau-defilant { overflow-x: auto; border-radius: 12px; box-shadow: var(--shadow-sm); }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.tableau th, .tableau td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tableau th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.tableau .d { text-align: right; font-variant-numeric: tabular-nums; }
.liste-communes { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.liste-annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.liste-annonces .ad-card { margin: 0; text-decoration: none; color: inherit; }
.cartes-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.carte-guide { display: block; background: var(--surface); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.carte-guide:hover { border-color: var(--brand); }
.carte-guide b { display: block; margin-bottom: 6px; line-height: 1.35; }
.carte-guide span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.faq { background: var(--surface); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq p { margin: 0 0 14px; color: var(--fg-2); }
.galerie a { flex-basis: 70%; }

/* Guides */
.article { max-width: 720px; }
.article h2 { margin-top: 34px; }
.article table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; margin: 12px 0; border-radius: 10px; overflow: hidden; }
.article th, .article td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: var(--surface-2); }
.sources { font-size: 14px; }

@media (max-width: 760px) {
  .site-entete-interne { flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .site-entete .btn { margin-left: auto; }
  .site-entete nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; }
  .etapes, .atouts, .cartes-public { grid-template-columns: 1fr; }
  .site-pied-interne { grid-template-columns: 1fr; }
  .recherche-accueil .btn { padding: 0 14px; }
  .hero-accueil { padding-top: 20px; }
}

/* ==========================================================================
   Accueil
   ========================================================================== */
body.accueil { background: linear-gradient(180deg, #eef3ec 0, var(--bg) 620px); }
body.accueil .site-entete { background: rgba(238, 243, 236, .85); border-bottom-color: transparent; }
.accueil .site-main { max-width: 1120px; }
.accueil-hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; padding: 48px 0 28px; }
.surtitre { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.accueil-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 18px; }
.accueil-hero .chapo { font-size: 18.5px; line-height: 1.55; margin-bottom: 26px; }
.recherche-accueil { position: relative; display: flex; align-items: center; gap: 0; max-width: 540px; margin: 0; padding: 6px; background: var(--surface); border-radius: 18px; box-shadow: 0 1px 2px rgba(20, 30, 22, .06), 0 12px 32px rgba(20, 30, 22, .10); border: 1px solid var(--line); }
.recherche-accueil .recherche-icone { display: grid; place-items: center; padding: 0 6px 0 10px; color: var(--muted); }
.recherche-accueil input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; box-shadow: none; font-size: 17px; padding: 0 6px; outline: none; }
.recherche-accueil .btn { height: 50px; padding: 0 24px; border-radius: 13px; font-size: 15.5px; }
.recherche-accueil:focus-within { border-color: var(--brand); }
.suggestions { top: 70px; }
.accueil-liens { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Vitrine : vue aérienne + contour + puces flottantes */
.vitrine { position: relative; margin: 0; }
.vitrine-image { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20, 40, 25, .45); transform: rotate(1deg); }
.vitrine-image img, .vitrine-image svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vitrine-image .vitrine-cadastre { opacity: .55; mix-blend-mode: screen; }
.vitrine-contour { fill: rgba(255, 214, 102, .22); stroke: #ffd666; stroke-width: 6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vitrine figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.puce { position: absolute; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px -8px rgba(20, 30, 22, .35); display: flex; gap: 10px; align-items: center; animation: flotte 6s ease-in-out infinite; }
.puce span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.puce b { display: block; font-size: 15px; }
.puce svg { color: var(--brand); flex: none; }
.puce-estimation { top: -18px; left: -26px; display: block; padding: 14px 18px; }
.puce-estimation b { font-size: 22px; letter-spacing: -.02em; color: var(--brand); }
.puce-estimation small { color: var(--muted); font-size: 12px; }
.puce-cultures { bottom: 46px; left: -34px; animation-delay: -2s; }
.puce-zone { top: 38%; right: -24px; animation-delay: -4s; }
@keyframes flotte { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .puce { animation: none; } }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin: 34px 0 10px; background: var(--line); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.chiffres > div { background: var(--surface); padding: 20px 22px; }
.chiffres b { display: block; font-size: 30px; letter-spacing: -.035em; color: var(--brand); font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--muted); font-size: 14px; }

/* Sections */
.accueil-section { margin-top: 64px; }
.accueil-section h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 0 0 22px; }
.titre-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.titre-ligne a { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trois svg, .atouts2 svg { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); box-sizing: border-box; }
.trois b { display: block; font-size: 17px; margin: 14px 0 6px; }
.trois p { margin: 0; color: var(--fg-2); }
.atouts2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atouts2 li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 18px; border-radius: 16px; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.atouts2 li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.atouts2 b { display: block; margin-bottom: 2px; }
.atouts2 span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.accueil-faq { max-width: 760px; }
.bandeau-final { margin: 72px 0 0; padding: 48px 28px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2f7a47 0, #1f5130 55%, #173d24 100%); }
.bandeau-final h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; margin: 0 0 8px; }
.bandeau-final p { margin: 0 0 22px; opacity: .85; }
.bandeau-final .btn { background: #fff; color: var(--brand); height: 50px; padding: 0 28px; font-size: 16px; }

@media (max-width: 900px) {
  .accueil-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .vitrine { margin: 10px 14px 0; }
  .puce-estimation { left: -8px; }
  .puce-cultures { left: -8px; bottom: 40px; }
  .puce-zone { right: -8px; }
  .trois, .atouts2 { grid-template-columns: 1fr; }
  .accueil-section { margin-top: 48px; }
}
@media (max-width: 480px) {
  .puce { padding: 9px 12px; }
  .puce b { font-size: 13.5px; }
  .puce-estimation b { font-size: 18px; }
  .recherche-accueil .btn { padding: 0 16px; }
}
.accueil .site-entete-interne, .accueil .site-pied-interne, .accueil .site-sources { max-width: 1120px; }
