/* ==========================================================================
   LOKA FONCIER — Thème « Nuit et or », mode clair (design B)
   Ivoire et blanc, texte bleu nuit, or champagne pour les actions.
   Chargé après style.css.
   ========================================================================== */

:root {
  /* Or champagne pour les actions ; or foncé pour le texte sur fond clair (AA) */
  --color-cta: #C7A66A;
  --color-cta-hover: #B59355;
  --color-cta-text: #7A5F30;
  --color-cta-subtle: #FAF6EE;
  --color-terracotta: #C7A66A;
  --color-terracotta-hover: #B59355;
  --color-terracotta-text: #7A5F30;
  --color-terracotta-light: #FAF6EE;
  --color-apple-blue: #7A5F30;  /* legacy alias used for links */
  --color-border-focus: #11222E;
  --color-ring: #B59355;
}

body {
  background-image: none;
}

/* --- Libellés et prix en or foncé, lisibles sur ivoire --- */
.section-eyebrow,
.property-card-price {
  color: #7A5F30;
}

/* --- En-tête clair, bouton or --- */
.btn-header-confier,
.btn-header-confier span {
  background: #C7A66A;
  color: #0A161E;
}

.btn-header-confier:hover {
  background: #B59355;
}

/* --- Bouton principal : or, texte nuit --- */
.btn-primary {
  background-color: #C7A66A;
  color: #0A161E;
  border-color: #C7A66A;
}

.btn-primary:hover {
  background-color: #B59355;
  border-color: #B59355;
  color: #0A161E;
}

/* --- Pied de page : panneau blanc dépoli, titres nuit soulignés d'or --- */
.site-footer {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: #11222E;
}

.site-footer a {
  color: #3A4A55;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #7A5F30;
}

.footer-col-title {
  position: relative;
  color: #11222E;
  padding-bottom: 12px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #C7A66A, #B25E3B);
}

.footer-brand-desc,
.footer-cookie-link,
.footer-links-list button.footer-cookie-link,
.footer-legal-links button.footer-cookie-link {
  color: #3A4A55;
}

:focus-visible {
  outline: 2px solid #11222E;
  outline-offset: 2px;
}

/* --- Texte or foncé sur fond clair --- */
.nav-link.active,
.site-header a.active,
.mobile-drawer-links a.active,
.about-main-intro .section-eyebrow,
.adv-input-unit,
.about-tasks-title {
  color: #7A5F30;
}

/* --- Boutons or (ex-terracotta, comparatif) : texte nuit --- */
.btn-terracotta,
.btn-terracotta span,
.btn-open-compare {
  color: #0A161E;
}

/* --- Section « Pourquoi nous » passée en clair --- */
.why-us-section {
  background: #F1ECE1;
}

.why-us-section .section-eyebrow {
  color: #7A5F30;
}

.why-us-section .section-title,
.why-us-card-title {
  color: #11222E;
}

.why-us-section .section-subtitle,
.why-us-card-text {
  color: #586065;
}

.why-us-card {
  background: #FFFFFF;
  border: 1px solid rgba(199, 166, 106, 0.3);
}

.why-us-icon-wrap {
  background: #FAF6EE;
  color: #7A5F30;
}

/* Survol/clic : carte claire et liseré or (le hover d'origine mettait la carte en bleu nuit) */
.why-us-card:hover {
  background: #FFFFFF;
  border-color: rgba(199, 166, 106, 0.6);
  box-shadow: 0 18px 40px rgba(17, 34, 46, 0.12), 0 0 0 4px rgba(199, 166, 106, 0.14);
}

.why-us-card:hover .why-us-icon-wrap {
  background: #C7A66A;
  color: #0A161E;
  box-shadow: 0 6px 18px rgba(199, 166, 106, 0.35);
}

/* ==========================================================================
   iOS « Liquid Glass » — mode clair
   Verre dépoli, coins continus, capsules, typographie système,
   fond maillé coloré et motif zellige discret.
   ========================================================================== */

:root {
  --font-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  --font-title: var(--font-serif);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 10px 34px rgba(17, 34, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-blur: blur(22px) saturate(180%);
  --radius-ios: 26px;
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);

  /* Couleurs d'accent secondaires (texte AA sur fond clair) */
  --accent-terracotta: #8E4426;
  --accent-terracotta-tint: rgba(178, 94, 59, 0.12);
  --accent-blue: #255C94;
  --accent-blue-tint: rgba(64, 128, 200, 0.12);
  --accent-sage: #2B6B4E;
  --accent-sage-tint: rgba(90, 160, 125, 0.14);
  --accent-gold-tint: rgba(199, 166, 106, 0.16);
}

/* --- Fond : maillage de couleurs + motif zellige --- */
html {
  background: #F6F3EC;
}

body {
  background-color: transparent !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(42% 36% at 8% 6%, rgba(199, 166, 106, 0.30), transparent 70%),
    radial-gradient(36% 32% at 94% 14%, rgba(178, 94, 59, 0.20), transparent 70%),
    radial-gradient(40% 36% at 86% 88%, rgba(84, 140, 205, 0.20), transparent 70%),
    radial-gradient(38% 34% at 10% 86%, rgba(104, 172, 138, 0.20), transparent 70%);
  background-size: 120% 120%;
  animation: loka-mesh-drift 28s var(--ease-ios) infinite alternate;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23B59355' stroke-width='1'%3E%3Cpath d='M44 10 52 36 78 44 52 52 44 78 36 52 10 44 36 36Z'/%3E%3Crect x='29' y='29' width='30' height='30'/%3E%3Crect x='29' y='29' width='30' height='30' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='5'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.09;
}

@keyframes loka-mesh-drift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* Les sections laissent voir le fond ; le verre porte le contenu */
.section-padding,
.why-us-section,
.trust-bar,
.transactions-section,
.similar-properties-section,
.home-advice-section,
.cities-section,
.about-values-section,
.about-tasks-section,
.about-agency-section,
.about-main-intro {
  background: transparent;
}

/* --- Typographie système, grands titres iOS --- */
h1, h2, h3,
.section-title,
.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* --- En-tête : capsule de verre flottante --- */
.site-header {
  top: 12px;
  width: calc(100% - 24px);
  max-width: 1320px;
  margin: 12px auto 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* --- Surfaces en verre dépoli --- */
.property-card,
.trans-card,
.why-us-card,
.home-advice-card,
.trust-item,
.about-service-item,
.about-value-card,
.about-tasks-card,
.about-agency-card,
.blog-card,
.faq-item,
.contact-info-card,
.confier-form-card,
.confier-sidebar-card,
.confier-notice-card,
.detail-sidebar-card,
.legal-content-card,
.catalog-sidebar,
.advanced-filters-panel,
.spec-box,
.adv-amenity-card,
.compare-item-card,
.form-feedback-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ios);
  box-shadow: var(--glass-shadow);
  transition: transform 0.5s var(--ease-ios), box-shadow 0.5s var(--ease-ios), border-color 0.3s ease;
}

/* Verre plus opaque là où il recouvre une photo ou une fenêtre */
.search-widget-card,
.advisor-modal-card,
.visite-modal-card,
.share-modal-card,
.loka-cookie-modal-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ios);
  box-shadow: 0 24px 60px rgba(17, 34, 46, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* --- Effets : élévation, halo doré, zoom des photos --- */
.property-card:hover,
.trans-card:hover,
.why-us-card:hover,
.home-advice-card:hover,
.blog-card:hover,
.about-value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 166, 106, 0.55);
  box-shadow: 0 22px 48px rgba(17, 34, 46, 0.12), 0 0 0 4px rgba(199, 166, 106, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.property-card-media,
.home-advice-media {
  overflow: hidden;
  border-radius: calc(var(--radius-ios) - 6px);
}

.property-card-img,
.home-advice-img {
  transition: transform 0.9s var(--ease-ios);
}

.property-card:hover .property-card-img,
.home-advice-card:hover .home-advice-img {
  transform: scale(1.06);
}

.city-card {
  border-radius: var(--radius-ios);
  overflow: hidden;
}

/* --- Boutons capsule, reflet au survol, pression iOS --- */
.btn,
.btn-primary,
.btn-header-confier,
.btn-terracotta,
.btn-card-consult,
.btn-open-compare {
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-ios), box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary::after,
.btn-header-confier::after,
.btn-terracotta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-ios);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-header-confier:hover::after,
.btn-terracotta:hover::after {
  transform: translateX(120%);
}

.btn:active,
.btn-primary:active,
.btn-header-confier:active,
.btn-terracotta:active,
.btn-card-consult:active {
  transform: scale(0.97);
}

/* --- Liens de navigation : soulignement or animé --- */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C7A66A, #B25E3B);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-ios);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* --- Champs façon iOS --- */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.78);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #B59355;
  box-shadow: 0 0 0 4px rgba(199, 166, 106, 0.28);
}

/* --- Touches de couleur : libellés et icônes teintés --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-gold-tint);
  color: #7A5F30;
}

section:nth-of-type(even) .section-eyebrow {
  background: var(--accent-terracotta-tint);
  color: var(--accent-terracotta);
}

.why-us-card:nth-child(4n+1) .why-us-icon-wrap,
.trans-card:nth-child(4n+1) .trans-card-icon,
.trust-item:nth-child(4n+1) .trust-icon-box {
  background: var(--accent-gold-tint);
  color: #7A5F30;
}

.why-us-card:nth-child(4n+2) .why-us-icon-wrap,
.trans-card:nth-child(4n+2) .trans-card-icon,
.trust-item:nth-child(4n+2) .trust-icon-box {
  background: var(--accent-terracotta-tint);
  color: var(--accent-terracotta);
}

.why-us-card:nth-child(4n+3) .why-us-icon-wrap,
.trans-card:nth-child(4n+3) .trans-card-icon,
.trust-item:nth-child(4n+3) .trust-icon-box {
  background: var(--accent-blue-tint);
  color: var(--accent-blue);
}

.why-us-card:nth-child(4n+4) .why-us-icon-wrap,
.trans-card:nth-child(4n+4) .trans-card-icon,
.trust-item:nth-child(4n+4) .trust-icon-box {
  background: var(--accent-sage-tint);
  color: var(--accent-sage);
}

.why-us-icon-wrap,
.trans-card-icon,
.trust-icon-box {
  border-radius: 16px;
}

/* --- Mouvement réduit : pas d'animation ni de déplacement --- */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .property-card:hover,
  .trans-card:hover,
  .why-us-card:hover,
  .home-advice-card:hover,
  .blog-card:hover,
  .about-value-card:hover,
  .property-card:hover .property-card-img,
  .home-advice-card:hover .home-advice-img {
    transform: none;
  }

  .btn-primary::after,
  .btn-header-confier::after,
  .btn-terracotta::after {
    display: none;
  }
}

/* --- Téléphone : en-tête presque pleine largeur, coins plus serrés --- */
@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 18px;
  }

  :root {
    --radius-ios: 22px;
  }
}

/* Barre de confiance : pilules de verre avec marge intérieure (le verre seul collait les icônes au bord) */
.trust-item {
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
}

.trust-item-title {
  line-height: 1.3;
}

/* En-tête façon iOS : onglets en capsule, pas de soulignement */
.nav-link::after {
  display: none;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease-ios), color 0.25s ease;
}

.nav-link:hover {
  background: rgba(17, 34, 46, 0.06);
  opacity: 1;
}

.nav-link.active {
  background: rgba(199, 166, 106, 0.2);
  color: #7A5F30;
  opacity: 1;
}

.site-header .btn-header-confier {
  height: 42px;
  padding: 0 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Cartes de biens façon iOS (toutes les pages : accueil, catalogues, similaires)
   Photo insérée dans la carte, badges en verre, prix sobre, boutons capsule.
   ========================================================================== */
.property-card {
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
}

.property-card:hover {
  border-color: rgba(199, 166, 106, 0.45);
  box-shadow: 0 20px 44px rgba(17, 34, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.property-card-media {
  border-radius: 20px;
}

.property-badge {
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.82);
  color: #11222E;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.btn-save-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.property-card-body {
  padding: 16px 12px 8px;
}

.property-card-location {
  font-size: 0.85rem;
  color: #586065;
}

.property-card-title,
.property-card:hover .property-card-title {
  color: #11222E;
  font-weight: 650;
}

.property-card-price,
.property-card:hover .property-card-price {
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background-color: rgba(199, 166, 106, 0.14);
  box-shadow: none;
  color: #11222E;
  font-weight: 700;
}

.property-card-features {
  color: #586065;
}

.btn-card-consult {
  height: 46px;
  border-radius: 999px;
  background: #11222E;
  color: #FFFFFF;
  font-weight: 600;
}

.btn-card-consult:hover {
  background: #1D3444;
}

.btn-card-compare {
  border: none;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  color: #11222E;
}

.btn-card-compare.active {
  background: rgba(199, 166, 106, 0.22);
  color: #7A5F30;
}

.badge-verified-title {
  border-radius: 999px;
}

/* --- Pied de page : icônes sociales centrées (.footer-brand-box a les forçait en inline-block) --- */
.footer-brand-box .footer-social-link {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(199, 166, 106, 0.14);
  color: #7A5F30;
  border: none;
}

.footer-brand-box .footer-social-link:hover {
  background: #C7A66A;
  color: #0A161E;
}

/* ==========================================================================
   Zellige marocain — étoile à 8 branches, joints blancs, palette du site :
   or champagne, terracotta, bleu nuit, sauge et bleu acier atténués.
   ========================================================================== */
:root {
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cg id='s'%3E%3Crect x='-22' y='-22' width='44' height='44'/%3E%3Crect x='-22' y='-22' width='44' height='44' transform='rotate(45)'/%3E%3C/g%3E%3Cg id='t'%3E%3Crect x='-10' y='-10' width='20' height='20'/%3E%3Crect x='-10' y='-10' width='20' height='20' transform='rotate(45)'/%3E%3C/g%3E%3C/defs%3E%3Crect width='120' height='120' fill='%23F6F3EC'/%3E%3Cg stroke='%23FFFFFF' stroke-width='2.5'%3E%3Cg fill='%236E9C86'%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='120' y='0'/%3E%3Cuse href='%23s' x='0' y='120'/%3E%3Cuse href='%23s' x='120' y='120'/%3E%3C/g%3E%3Cg fill='%23C7A66A'%3E%3Cuse href='%23s' x='60' y='60'/%3E%3C/g%3E%3Cg fill='%23B25E3B'%3E%3Cuse href='%23t' x='0' y='0'/%3E%3Cuse href='%23t' x='120' y='0'/%3E%3Cuse href='%23t' x='0' y='120'/%3E%3Cuse href='%23t' x='120' y='120'/%3E%3C/g%3E%3Cg fill='%2311222E'%3E%3Cuse href='%23t' x='60' y='60'/%3E%3C/g%3E%3Cg fill='%233F6E8C'%3E%3Crect x='-7' y='-7' width='14' height='14' transform='translate(60 0) rotate(45)'/%3E%3Crect x='-7' y='-7' width='14' height='14' transform='translate(0 60) rotate(45)'/%3E%3Crect x='-7' y='-7' width='14' height='14' transform='translate(120 60) rotate(45)'/%3E%3Crect x='-7' y='-7' width='14' height='14' transform='translate(60 120) rotate(45)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Fond de page : grille d'architecte (plan), discrète, thème immobilier */
body::after {
  background-image:
    linear-gradient(rgba(17, 34, 46, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 34, 46, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(17, 34, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 34, 46, 0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  opacity: 1;
}

/* Pied de page en panneau flottant (assorti à l'en-tête capsule), liseré or en haut */
.site-footer {
  position: relative;
  width: calc(100% - 24px);
  max-width: 1320px;
  margin: 24px auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(17, 34, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding-top: 60px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C7A66A, #B25E3B 50%, #C7A66A);
  pointer-events: none;
}

/* Icônes de contact en pastilles teintées, comme les icônes du site */
.footer-contact-item svg {
  flex-shrink: 0;
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(199, 166, 106, 0.14);
  color: #7A5F30;
}

/* Barre du bas : filet fin, place laissée au bouton flottant « Conseiller en ligne » */
.footer-bottom-bar {
  border-top: 1px solid rgba(17, 34, 46, 0.08);
  padding-right: 250px;
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    padding-right: 0;
    padding-bottom: 72px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    width: calc(100% - 16px);
    margin-bottom: 8px;
    border-radius: 22px;
    padding-top: 48px;
  }
}

/* Pied de page clair : textes encore blancs dans style.css (contacts, copyright) */
.footer-contact-item a,
.footer-contact-item span,
.footer-bottom-bar p {
  color: #3A4A55;
}

/* --- Espacement : sections plus serrées (fonds transparents = marges cumulées visibles) --- */
.section-padding,
.transactions-section,
.cities-section,
.why-us-section,
.home-advice-section,
.about-values-section,
.about-tasks-section,
.similar-properties-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.trust-bar {
  padding: 24px 0;
}

.banner-cta-section {
  margin-top: 16px;
  margin-bottom: 16px;
}

.search-widget-wrap {
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .section-padding,
  .transactions-section,
  .cities-section,
  .why-us-section,
  .home-advice-section,
  .about-values-section,
  .about-tasks-section,
  .similar-properties-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* --- En-tête flottant sur la photo du hero (style iOS) --- */
:root {
  --hdr-offset: 77px; /* marge haute 12px + hauteur de l'en-tête */
}

.site-header {
  margin-bottom: calc(-1 * var(--hdr-offset));
}

.hero-section,
#hero-section,
.page-banner {
  padding-top: calc(var(--hdr-offset) + 48px);
}

/* Fiche bien : pas de bannière, le contenu démarre sous l'en-tête flottant (remplace le padding inline de 36px) */
#detail-content-area {
  padding-top: calc(var(--hdr-offset) + 28px) !important;
}

@media (max-width: 640px) {
  :root {
    --hdr-offset: 63px;
  }

  .hero-section,
  #hero-section,
  .page-banner {
    padding-top: calc(var(--hdr-offset) + 32px);
  }
}

/* --- Fond animé : la grille d'architecte glisse lentement, les halos colorés flottent --- */
body::after {
  animation: loka-grid-drift 40s linear infinite;
}

/* 120px = un carreau complet de la grille : la boucle est sans à-coup */
@keyframes loka-grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 120px 120px, 120px 120px, 120px 120px, 120px 120px; }
}

body::before {
  background-size: 160% 160%;
  animation: loka-mesh-float 18s ease-in-out infinite alternate;
}

@keyframes loka-mesh-float {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 30%; }
  100% { background-position: 30% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* ==========================================================================
   Fond final : halos de couleur flottants sur ivoire (remplace grille et zellige)
   Calme et lumineux pour garder l'attention sur les biens et les boutons.
   Animé par transform (GPU) pour un défilement fluide.
   ========================================================================== */
html {
  background: #F8F5EE;
}

body::before,
body::after {
  inset: -20%;
  background-size: auto;
  background-position: 0 0;
  will-change: transform;
}

body::before {
  background:
    radial-gradient(34% 34% at 22% 24%, rgba(199, 166, 106, 0.30), transparent 70%),
    radial-gradient(30% 30% at 78% 72%, rgba(120, 165, 215, 0.20), transparent 70%);
  animation: loka-float-a 22s ease-in-out infinite alternate;
}

body::after {
  background-image:
    radial-gradient(28% 28% at 76% 20%, rgba(178, 94, 59, 0.14), transparent 70%),
    radial-gradient(32% 32% at 24% 80%, rgba(104, 172, 138, 0.16), transparent 70%);
  opacity: 1;
  animation: loka-float-b 28s ease-in-out infinite alternate;
}

@keyframes loka-float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 4%, 0) scale(1.08); }
}

@keyframes loka-float-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-5%, -6%, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

/* --- Cartes : nouveauté, nombre de photos, prix au m² --- */
.property-badge-new {
  position: absolute;
  top: 12px;
  right: 56px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #C7A66A;
  color: #0A161E;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.property-photo-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 22, 30, 0.7);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
}

.property-card-price-m2 {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #586065;
}

/* --- Filtres : case et libellé alignés sur une même ligne --- */
.filter-checkbox-item > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-checkbox-item input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #11222E;
}

/* --- Réinitialiser : reste sur une ligne dans le panneau --- */
.btn-reset-filters {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Suggestions de recherche : champ aux couleurs du site --- */
#catalog-search-input {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

/* --- Impression de la fiche : pas de barres flottantes, étiquettes complètes --- */
@media print {
  body::before,
  body::after,
  .property-mobile-bar,
  .compare-dock,
  .compare-modal,
  .compare-modal-backdrop,
  .loka-cookie-banner,
  .loka-cookie-backdrop,
  .loka-cookie-modal,
  .favorites-drawer,
  .favorites-backdrop,
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .visite-modal-backdrop,
  .visite-modal-card,
  .gallery-lightbox-modal,
  .lightbox-modal {
    display: none !important;
  }

  /* Caractéristiques : deux colonnes, libellés entiers (pas de « SUR… ») */
  .spec-box {
    display: flex !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .spec-box * {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .spec-box,
  .property-specs-grid,
  .detail-specs-grid {
    break-inside: avoid;
  }

  /* Bandeau des caractéristiques clés : 5 colonnes à plat (les pastilles écran coupaient les libellés) */
  .key-specs-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
  }

  .key-specs-strip .spec-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    padding: 0 4px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .key-specs-strip .spec-box-icon { display: none !important; }
}

/* --- Fiche bien : caractéristiques clés en grille qui passe à la ligne (plus de « SURFA… ») --- */
.key-specs-strip {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

.key-specs-strip .spec-box * {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* --- Canal de confirmation : cartes avec bouton radio rond bien aligné (le style « champ texte » s'appliquait aux radios) --- */
.visite-contact-pref {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.visite-contact-pref label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid rgba(17, 34, 46, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #11222E;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.visite-contact-pref label:has(input:checked) {
  border-color: #11222E;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(199, 166, 106, 0.18);
}

.visite-contact-pref input[type="radio"] {
  appearance: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  accent-color: #11222E;
}

.visite-contact-pref input[type="radio"]:focus-visible {
  outline: 2px solid #C7A66A;
  outline-offset: 3px;
}

/* --- Page « Confier mon bien » : bannière photo sombre (au lieu du voile blanc qui délavait l'image) --- */
.page-banner-confier {
  background-image:
    linear-gradient(120deg, rgba(10, 22, 30, 0.9) 0%, rgba(17, 34, 46, 0.72) 55%, rgba(17, 34, 46, 0.35) 100%),
    url('../images/hero.jpg') !important;
  background-size: cover;
  background-position: center;
}

.page-banner-confier .page-banner-title,
.page-banner-confier h1 {
  color: #FFFFFF;
}

.page-banner-confier .page-banner-subtitle,
.page-banner-confier p {
  color: rgba(255, 255, 255, 0.85);
}

.page-banner-confier .page-banner-eyebrow {
  background: rgba(199, 166, 106, 0.2);
  border: 1px solid rgba(199, 166, 106, 0.5);
  color: #E9CD96;
}

/* ==========================================================================
   Barre de recherche : cadre de verre, champs et bouton de même hauteur
   ========================================================================== */
.search-widget-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 22px 24px 24px;
  box-shadow: 0 24px 60px rgba(17, 34, 46, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-field-group select,
.search-field-group input[type="text"],
.search-field-group input[type="number"] {
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(17, 34, 46, 0.12);
  background-color: #FFFFFF;
  font-size: 0.95rem;
}

.search-field-group select:focus,
.search-field-group input:focus {
  border-color: #B59355;
  box-shadow: 0 0 0 4px rgba(199, 166, 106, 0.22);
}

/* Bouton Rechercher : icône visible, texte sur une ligne, même hauteur que les champs */
.btn-search-submit {
  height: 52px;
  border-radius: 16px;
  background-color: #C7A66A;
  color: #0A161E;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(199, 166, 106, 0.35);
}

.btn-search-submit:hover {
  background-color: #B59355;
}

.btn-search-submit svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Onglets Acheter / Louer en capsule */
.search-tab-btn {
  border-radius: 999px;
}

/* ==========================================================================
   Page « Confier mon bien » — refonte
   Bannière photo sombre, étapes reliées, formulaire en verre, panneau nuit collant.
   ========================================================================== */

/* Bannière : points de réassurance */
.page-banner-confier .page-banner-content {
  text-align: left;
  max-width: 1240px;
}

.page-banner-confier .page-banner-gold-line {
  margin-left: 0;
}

.confier-banner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.confier-banner-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
}

.confier-banner-points svg {
  color: #E9CD96;
  flex-shrink: 0;
}

/* Étapes reliées */
.confier-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.confier-steps::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, #C7A66A, #B25E3B, #C7A66A);
  opacity: 0.35;
}

.confier-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(17, 34, 46, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.confier-step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #11222E;
  color: #E9CD96;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px rgba(199, 166, 106, 0.18);
}

.confier-step h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: #11222E;
}

.confier-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #586065;
}

/* Mise en page : formulaire + panneau latéral collant */
.confier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.confier-form-card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.86);
}

.confier-form-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #11222E;
}

.confier-form-intro {
  margin: 0 0 28px;
  color: #586065;
  line-height: 1.6;
}

/* Titres de section du formulaire : bandeau discret */
.confier-form-card .form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 18px !important;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(199, 166, 106, 0.12);
  color: #11222E;
  font-size: 1rem;
  font-weight: 700;
}

.confier-form-card form > .form-section-title:first-of-type {
  margin-top: 0 !important;
}

.confier-form-card .form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #11222E;
}

.confier-form-card .form-field input,
.confier-form-card .form-field select,
.confier-form-card .form-field textarea {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(17, 34, 46, 0.14);
  background-color: #FFFFFF;
}

.confier-form-card .form-field textarea {
  min-height: 120px;
}

/* Vendre / Louer : cartes à choisir */
.confier-form-card .segmented-label {
  min-height: 56px;
  border: 1.5px solid rgba(17, 34, 46, 0.14);
  border-radius: 16px;
  background: #FFFFFF;
  color: #11222E;
}

.confier-form-card .segmented-option input[type="radio"]:checked + .segmented-label {
  border-color: #11222E;
  background: #11222E;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(199, 166, 106, 0.22);
}

/* Zone photos */
.confier-form-card .upload-dropzone {
  border: 2px dashed rgba(199, 166, 106, 0.7);
  border-radius: 20px;
  background: rgba(199, 166, 106, 0.07);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.confier-form-card .upload-dropzone:hover {
  background: rgba(199, 166, 106, 0.14);
  border-color: #B59355;
}

.confier-form-card .upload-icon {
  color: #7A5F30;
}

/* Bouton d'envoi */
#confier-submit-btn {
  min-height: 58px;
  margin-top: 18px !important;
  border-radius: 999px;
  background: #C7A66A;
  color: #0A161E;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(199, 166, 106, 0.4);
}

#confier-submit-btn:hover {
  background: #B59355;
}

/* Panneau latéral nuit et or */
.confier-sidebar-card {
  position: sticky;
  top: calc(var(--hdr-offset) + 16px);
  padding: 30px 26px;
  background: linear-gradient(160deg, #11222E 0%, #0A161E 100%);
  border: 1px solid rgba(199, 166, 106, 0.3);
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(10, 22, 30, 0.22);
  color: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.confier-sidebar-title {
  margin: 0 0 22px;
  font-size: 1.2rem;
  color: #FFFFFF;
}

.confier-sidebar-card .confier-advantage-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.confier-sidebar-card .confier-adv-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(199, 166, 106, 0.16);
  color: #E9CD96;
}

.confier-sidebar-card .confier-adv-text h5 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: #FFFFFF;
}

.confier-sidebar-card .confier-adv-text p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.confier-call-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(199, 166, 106, 0.14);
  border: 1px solid rgba(199, 166, 106, 0.35);
  text-align: center;
}

.confier-call-box h5 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #FFFFFF;
}

.confier-call-box p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.confier-call-box .btn {
  width: 100%;
  min-height: 48px;
  background: #C7A66A;
  border-color: #C7A66A;
  color: #0A161E;
  font-weight: 700;
}

/* Tablette et téléphone */
@media (max-width: 1024px) {
  .confier-layout {
    grid-template-columns: 1fr;
  }

  .confier-sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .confier-steps {
    grid-template-columns: 1fr;
  }

  .confier-steps::before {
    display: none;
  }

  .confier-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 18px;
  }

  .confier-form-card {
    padding: 22px 18px;
  }

  .confier-form-title {
    font-size: 1.45rem;
  }
}

/* Bannière Confier : retirer le voile clair d'origine, texte aligné à gauche */
.page-banner-confier .page-banner-overlay {
  display: none;
}

.page-banner-confier .page-banner-desc {
  margin-left: 0;
  margin-right: 0;
  max-width: 640px;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
}

/* Suggestions de recherche en puces cliquables sous « Recherche libre » */
.search-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.search-suggest-chip {
  padding: 6px 12px;
  border: 1px solid rgba(199, 166, 106, 0.45);
  border-radius: 999px;
  background: rgba(199, 166, 106, 0.1);
  color: #7A5F30;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-suggest-chip:hover,
.search-suggest-chip:focus-visible {
  background: #C7A66A;
  color: #0A161E;
}

/* ==========================================================================
   Filtres du catalogue : en-tête sur une ligne, options en puces à toucher
   (la vraie case reste dans le DOM pour le clavier et les lecteurs d'écran)
   ========================================================================== */
.sidebar-header .sidebar-title {
  font-size: 1.05rem;
  white-space: nowrap;
}

.sidebar-header .btn-reset-filters {
  font-size: 0.82rem;
  font-weight: 600;
  color: #7A5F30;
  text-decoration: none;
}

.sidebar-header .btn-reset-filters:hover {
  text-decoration: underline;
}

.filter-checkbox-list {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.filter-checkbox-item {
  position: relative;
  justify-content: flex-start !important;
  padding: 8px 14px;
  border: 1px solid rgba(17, 34, 46, 0.14);
  border-radius: 999px;
  background: #FFFFFF;
  color: #11222E;
  font-size: 0.86rem !important;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-checkbox-item:hover {
  border-color: #C7A66A;
  background: rgba(199, 166, 106, 0.1);
}

.filter-checkbox-item > span {
  gap: 0;
}

/* Case native masquée visuellement mais toujours accessible */
.filter-checkbox-item input[type="checkbox"],
.filter-checkbox-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.filter-checkbox-item:has(input:checked) {
  background: #11222E;
  border-color: #11222E;
  color: #FFFFFF;
}

.filter-checkbox-item:has(input:checked) > span::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 700;
  color: #E9CD96;
}

.filter-checkbox-item:has(input:focus-visible) {
  outline: 2px solid #C7A66A;
  outline-offset: 2px;
}

/* Colonne de filtres (280px) : « Réinitialiser » passe sous le titre, aligné sur son texte */
@media (min-width: 993px) {
  .sidebar-header {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .sidebar-header .btn-reset-filters {
    order: 3;
    flex-basis: 100%;
    padding: 0 0 0 42px;
    text-align: left;
  }
}

/* ==========================================================================
   Aperçu rapide d'un bien (clic sur la photo d'une carte)
   ========================================================================== */
.property-card-media {
  cursor: zoom-in;
}

.quick-view {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: none;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 30px 80px rgba(10, 22, 30, 0.35);
  overflow: hidden;
  display: none;
}

.quick-view[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.quick-view::backdrop {
  background: rgba(10, 22, 30, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quick-view-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #11222E;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 34, 46, 0.15);
}

.quick-view-gallery {
  position: relative;
  min-height: 420px;
  background: #0A161E;
}

.quick-view-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #11222E;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.quick-view-prev { left: 14px; }
.quick-view-next { right: 14px; }

.quick-view-counter {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 30, 0.7);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
}

.quick-view-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px 26px;
  overflow-y: auto;
}

.quick-view-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(199, 166, 106, 0.16);
  color: #7A5F30;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.quick-view-location {
  margin: 0;
  color: #586065;
  font-size: 0.9rem;
}

.quick-view-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.25;
  color: #11222E;
}

.quick-view-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #11222E;
}

.quick-view-facts,
.quick-view-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.quick-view-facts li {
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(17, 34, 46, 0.06);
  color: #11222E;
  font-size: 0.86rem;
  font-weight: 600;
}

.quick-view-equipment li {
  padding: 5px 11px;
  border: 1px solid rgba(199, 166, 106, 0.45);
  border-radius: 999px;
  color: #7A5F30;
  font-size: 0.8rem;
}

.quick-view-desc {
  margin: 4px 0 0;
  color: #3A4A55;
  font-size: 0.92rem;
  line-height: 1.6;
}

.quick-view-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.quick-view-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.quick-view-btn-primary {
  background: #11222E;
  color: #FFFFFF;
}

.quick-view-btn-primary:hover {
  background: #1D3444;
  color: #FFFFFF;
}

.quick-view-btn-wa {
  background: #075E54;
  color: #FFFFFF;
}

.quick-view-btn-wa:hover {
  background: #054C44;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .quick-view[open] {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .quick-view-gallery {
    min-height: 260px;
  }

  .quick-view-info {
    padding: 22px 18px 20px;
    overflow: visible;
  }
}

/* Le reset du site retire la marge auto des <dialog> : recentrer l'aperçu */
.quick-view {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
}

/* Flèches et bouton fermer : pas de surbrillance bleue au clic, anneau or au clavier */
.quick-view-nav:focus,
.quick-view-close:focus {
  outline: none;
}

.quick-view-nav:focus-visible,
.quick-view-close:focus-visible {
  outline: 2px solid #C7A66A;
  outline-offset: 2px;
}

/* Aperçu rapide : hauteur fixe à l'écran, photo pleine hauteur, boutons toujours visibles */
.quick-view {
  height: min(680px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
}

.quick-view[open] {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.quick-view-gallery {
  min-height: 0;
  height: 100%;
}

.quick-view-info {
  min-height: 0;
  padding-bottom: 0;
}

.quick-view-actions {
  position: sticky;
  bottom: 0;
  margin: 0 -28px;
  padding: 14px 28px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 26%);
}

.quick-view-close {
  top: 16px;
  right: 16px;
}

@media (max-width: 768px) {
  .quick-view[open] {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 42%) minmax(0, 1fr);
  }

  .quick-view-gallery {
    min-height: 0;
  }

  .quick-view-actions {
    margin: 0 -18px;
    padding: 12px 18px 16px;
  }
}

/* Aperçu rapide : plus d'informations, mises en page en tuiles et en lignes */
.quick-view-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline-end: 44px; }
.quick-view-ref { color: #586065; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.quick-view-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 4px; }
.quick-view-specs > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; background: rgba(17, 34, 46, 0.05); }
.quick-view-specs span { color: #586065; font-size: 0.72rem; }
.quick-view-specs strong { color: #11222E; font-size: 0.95rem; }
.quick-view-details { margin: 6px 0 0; }
.quick-view-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid rgba(17, 34, 46, 0.09); }
.quick-view-details dt { color: #586065; font-size: 0.86rem; }
.quick-view-details dd { margin: 0; color: #11222E; font-weight: 600; font-size: 0.9rem; text-align: end; }
.quick-view-btn-call { border: 1.5px solid #11222E; color: #11222E; background: transparent; }
