/* Direction « ALPAGE » — pierre, lin et sauge ; verre teinté, formes douces, serif chaleureuse.
   Animations (3) : entrée échelonnée de l'accueil · pastille qui glisse sous l'onglet du bâtiment choisi ·
   léger parallaxe de la grande photo. */
:root {
  --fond: #edeae2; --fond-2: #e2ddd1; --surface: #f8f6f1;
  --encre: #243026; --encre-2: #4b5545; --filet: rgba(36, 48, 38, .14);
  --marque: #7d8f6d; --marque-texte: #4a5d40; --bouton: #2c3a2e; --sur-bouton: #f4f1ea;
  --terre: #93522d;
  --verre-bg: rgba(242, 245, 236, .74); --verre-bord: rgba(255, 255, 255, .66); --verre-flou: 22px;
  --verre-doux-bg: rgba(250, 249, 245, .7);
  --ombre: 0 30px 70px -34px rgba(36, 48, 38, .45);
  --rayon: 999px; --rayon-grand: 26px;
  --police-titres: "Fraunces", Georgia, serif;
  --police-texte: "DM Sans", system-ui, sans-serif;
  --st-libre: #2a6a3b; --st-reserve: #774c00; --st-attente: #3d5774; --st-vendu: #a0302b;
}
h1, h2, h3, .pl-nom, .compteur dd, .chiffres dd, .atout-n, .carte-prix, .trajets strong, .contact-nom, .carte-lot h3, .plans h3, .contact-appel h3, .fenetre-boite h2, .table-lots tr.groupe th {
  font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 380; }
.surtitre { color: var(--marque-texte); letter-spacing: .16em; }
.bouton { font-weight: 600; }
.bouton--petit { min-height: 40px; }

/* En-tête toujours en verre (il passe sur la photo) */
.entete { padding: 22px calc(var(--gouttiere) + 6px); }
.entete-in { background: var(--verre-bg); border-color: var(--verre-bord); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-radius: 999px; max-width: 1380px; }
.entete .bouton--verre { background: var(--bouton); color: var(--sur-bouton); border-color: transparent; }
.pl-nom { font-size: 28px; }

/* Accueil : photo NETTE dans une carte, posée sur la même photo très floutée (le verre teinté au-dessus) */
.hero { padding: 12px; }
.hero-cadre { position: relative; min-height: calc(100svh - 24px); border-radius: 30px; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: 1fr auto; gap: 14px 28px; padding: 128px 32px 32px; align-items: end; }
.hero-flou { position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); max-width: none; object-fit: cover; filter: blur(50px) saturate(.9) sepia(.15); }
.hero-cadre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(240, 236, 226, .7) 0%, rgba(214, 208, 190, .45) 45%, rgba(110, 128, 96, .5) 100%); pointer-events: none; }
.hero-photo { position: relative; z-index: 1; grid-column: 2; grid-row: 1; margin: 0; aspect-ratio: 16 / 10.5; border-radius: 24px; overflow: hidden; box-shadow: var(--ombre); }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.hero-panneau { position: relative; z-index: 1; grid-column: 1; grid-row: 1 / span 2; align-self: end; padding: 38px 38px 40px; border-radius: 24px; }
.hero-titre { font-family: var(--police-titres); font-size: clamp(46px, 5.4vw, 82px); line-height: 1; margin: 16px 0 18px; letter-spacing: -.015em; }
.hero-accroche { font-size: 18px; color: var(--encre-2); max-width: 480px; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .bouton--verre { background: rgba(255, 255, 255, .6); }
.hero-pastilles { position: relative; z-index: 1; grid-column: 2; grid-row: 2; }
.hero-pastilles .compteurs { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-pastilles .compteur { background: var(--verre-bg); border: 1px solid var(--verre-bord); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: 18px; padding: 14px 18px; }
.hero-pastilles .compteur:first-child { padding-left: 18px; }
.compteur dd { font-size: 28px; }

/* Entrée échelonnée */
[data-anim~="entree"] [data-entree] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
[data-anim~="entree"].pret .hero-photo { opacity: 1; transform: none; transition-delay: .1s; }
[data-anim~="entree"].pret .hero-panneau { opacity: 1; transform: none; transition-delay: .3s; }
[data-anim~="entree"].pret .hero-pastilles { opacity: 1; transform: none; transition-delay: .55s; }

/* Projet */
.section-titre { font-size: clamp(36px, 4.4vw, 58px); }
.chiffres { border-top: 0; gap: 10px; }
.chiffres > div { background: var(--surface); border: 0; border-radius: 20px; padding: 18px 20px !important; }
.atout { background: var(--surface); border: 1px solid var(--filet); }
.atout-n { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #e4e9dc; color: var(--marque-texte); font-size: 22px; margin-bottom: 22px; }
.filet-or { width: 48px; height: 3px; border-radius: 3px; background: var(--marque); }

/* Lots */
.lots { background: var(--fond-2); border-radius: 36px; margin-inline: 12px; }
.table-cadre { background: var(--surface); border: 1px solid var(--filet); }
.onglets { background: var(--surface); }
.lots .verre-doux { background: var(--surface); }
.statut { padding: 5px 11px 5px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); }
.plans img { border-radius: 14px; }

/* Galerie, situation, contact : arrondis généreux */
.g-item { border-radius: 22px; }
.carte { background: var(--surface); border-radius: 26px; }
.carte-motif { color: rgba(74, 93, 64, .2); }
.carte-bouton { background: var(--bouton); color: var(--sur-bouton); border-color: transparent; }
.contact { margin: 0 12px; border-radius: 36px; padding: 120px 0; }
.contact-fond::after { content: ""; position: absolute; inset: 0; background: rgba(36, 48, 38, .22); }
.portrait { border-radius: 20px; }
.contact-carte, .contact-appel { background: rgba(246, 248, 241, .8); }
.pied { border-top: 0; }
.fenetre-boite { background: var(--surface); border-radius: 28px; }
.champs input, .champs textarea { border-radius: 14px; background: #fff; }
.po-boite { border-radius: 28px; }

@media (max-width: 1080px) {
  .hero-pastilles .compteurs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-cadre { grid-template-columns: 1fr; grid-template-rows: auto; padding: 96px 10px 10px; border-radius: 26px; min-height: 0; gap: 10px; }
  .hero-photo, .hero-pastilles, .hero-panneau { grid-column: 1; grid-row: auto; }
  .hero-photo { aspect-ratio: 4 / 3.2; border-radius: 20px; }
  .hero-panneau { padding: 26px 22px; border-radius: 20px; }
  .hero-pastilles .compteur { padding: 12px 14px !important; border-left: 1px solid var(--verre-bord); }
  .lots, .contact { margin-inline: 6px; border-radius: 26px; }
}
@media (max-width: 560px) {
  .hero { padding: 8px; }
  .entete { padding: 16px 14px; }
  .hero-titre { font-size: 44px; }
  .hero-accroche { font-size: 16.5px; }
  .hero-actions .bouton { flex: 1; padding: 0 12px; }
  .contact { padding: 64px 0; }
}
