/* ==========================================================
   Dune Bassam Immobilier — Variante « Translucide »
   Effet verre dépoli (glassmorphism), activé par <body class="verre">
   ========================================================== */

body.verre {
  --verre: rgba(255, 255, 255, .58);
  --verre-fort: rgba(255, 255, 255, .74);
  --verre-bord: rgba(255, 255, 255, .7);
  --verre-ombre: 0 10px 40px rgba(14, 42, 71, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
  --flou: blur(18px) saturate(170%);
  background-color: #EEF1F4;
}

/* Fond vivant : halos de couleur fixes derrière le verre */
body.verre::before {
  content: ''; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 12% 18%, rgba(201, 160, 99, .45), transparent 70%),
    radial-gradient(34% 40% at 88% 12%, rgba(10, 110, 121, .30), transparent 70%),
    radial-gradient(40% 45% at 80% 78%, rgba(122, 76, 158, .22), transparent 70%),
    radial-gradient(36% 40% at 18% 85%, rgba(63, 122, 69, .22), transparent 70%),
    linear-gradient(160deg, #F4EEE4 0%, #EAF0F6 55%, #EFEAF4 100%);
}
/* Dans une rubrique, les halos prennent sa couleur */
body.verre[data-t]::before {
  background:
    radial-gradient(40% 45% at 10% 15%, color-mix(in srgb, var(--t) 38%, transparent), transparent 70%),
    radial-gradient(35% 40% at 90% 30%, rgba(201, 160, 99, .35), transparent 70%),
    radial-gradient(45% 45% at 70% 90%, color-mix(in srgb, var(--t) 26%, transparent), transparent 70%),
    linear-gradient(160deg, #F6F2EC 0%, var(--t-clair) 60%, #F3F1EE 100%);
}

/* Surfaces en verre */
body.verre .header,
body.verre .recherche-carte,
body.verre .categorie,
body.verre .bien,
body.verre .filtres,
body.verre .contact-carte,
body.verre .caracteristiques div,
body.verre .equipements li,
body.verre .etapes li,
body.verre .vide,
body.verre .charte-carte,
body.verre .nuance,
body.verre .picto,
body.verre .rubrique {
  background: var(--verre);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
  border: 1px solid var(--verre-bord);
  box-shadow: var(--verre-ombre);
}
body.verre .bien[data-t] { border-top: 1px solid var(--verre-bord); }
body.verre .bien[data-t]::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--t); z-index: 2; }
body.verre .rubrique { border-top: 6px solid var(--t); }

/* En-tête */
body.verre .header { background: rgba(255, 255, 255, .62); border-width: 0 0 1px; box-shadow: none; }
body.verre .header.defile { box-shadow: 0 8px 30px rgba(14, 42, 71, .10); }
body.verre[data-t] .header { border-bottom: 3px solid var(--t); }
body.verre .topbar { background: rgba(10, 23, 38, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 960px) {
  body.verre .nav { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }
}

/* Bandeau d'accueil : le verre se pose sur la photo */
body.verre .hero { background: #0E2A47; }
body.verre .hero::after { background: linear-gradient(100deg, rgba(8, 27, 48, .82) 0%, rgba(8, 27, 48, .35) 100%); }
body.verre .hero-fond { opacity: .9; }
body.verre .recherche-carte { background: rgba(255, 255, 255, .7); border-radius: 22px; }

/* Bandeau de la page résultats */
body.verre .page-tete { background: transparent; border: 0; }
body.verre[data-t] .page-tete { background: transparent; }

/* Champs et petits éléments */
body.verre .champ input, body.verre .champ select, body.verre .champ textarea,
body.verre .barre-outils select, body.verre .onglet:not([aria-selected="true"]),
body.verre .filtre button:not(.actif), body.verre .vue button:not([aria-pressed="true"]),
body.verre .pagination a:not([aria-current]) {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(14, 42, 71, .16);
}
body.verre .favori { background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.verre .badge { background: color-mix(in srgb, var(--t) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
body.verre .btn-photos, body.verre .carte-note { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.verre .encart { background: color-mix(in srgb, var(--t-clair) 70%, transparent); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); border: 1px solid var(--verre-bord); }
body.verre .recap { background: rgba(255, 255, 255, .6); }
body.verre .bien-infos { border-top-color: rgba(14, 42, 71, .10); }

/* Arrondis plus généreux, typiques du style verre */
body.verre .bien, body.verre .categorie, body.verre .filtres, body.verre .contact-carte,
body.verre .etapes li, body.verre .charte-carte { border-radius: 20px; }
body.verre .media { border-radius: 0; }
body.verre .galerie-principale, body.verre .galerie-cote .media, body.verre .carte { border-radius: 20px; }

/* Bandeau propriétaires et pied de page en verre sombre */
body.verre .cta { background: linear-gradient(120deg, rgba(14, 42, 71, .88), rgba(22, 62, 102, .78)); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 50px rgba(14, 42, 71, .25); border-radius: 24px; }
body.verre .footer { background: rgba(10, 23, 38, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.verre .barre-mobile { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }
body.verre .visionneuse { background: rgba(6, 14, 24, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body.verre .voile.ouvert { background: rgba(8, 20, 34, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (max-width: 960px) { body.verre .filtres { background: rgba(255, 255, 255, .86); } }

/* Navigateurs sans flou : verre plus opaque pour rester lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.verre { --verre: rgba(255, 255, 255, .9); }
}

/* Bouton de bascule Classique / Translucide */
.bascule-style { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); color: #E3E9EF; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.bascule-style:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.bascule-style .pastille { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .2)); border: 1px solid rgba(255, 255, 255, .6); }
