/* ==========================================================================
   BONNE VISITE - THÈME NOIR & BLANC (MONOCHROME HAUT DE GAMME)
   Chargé APRÈS styles.css : redéfinit toutes les couleurs, fonds, bordures
   et effets lumineux pour une esthétique épurée, minimaliste et luxueuse
   en Noir Profond et Blanc Pur.
   ========================================================================== */

:root {
  /* Palette noire et anthracite */
  --bg: #09090b;
  --card-bg: #121215;
  --card-bg-2: #19191d;
  --field-bg: #0d0d10;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-soft: #e4e4e7;

  /* Accent Blanc Pur & Argenté */
  --accent: #ffffff;
  --accent-2: #e4e4e7;
  --accent-ink: #09090b;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-border: rgba(255, 255, 255, 0.28);

  /* Effet lumière blanche cristalline du haut */
  --edge-light: rgba(255, 255, 255, 0.95);
  --halo: rgba(255, 255, 255, 0.14);
  --halo-inner: radial-gradient(ellipse 70% 160px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 75%);

  /* Remappage complet des variables du thème d'origine */
  --navy: var(--accent);
  --navy-soft: var(--accent-2);
  --navy-deep: var(--text);
  --navy-dark: #000000;
  --gold: var(--accent);
  --gold-hover: var(--accent-2);
  --gold-light: var(--accent-soft);
  --gold-gradient: linear-gradient(135deg, #ffffff 0%, #e4e4e7 100%);
  --ink: var(--text);
  --ink-light: var(--text-soft);
  --muted: #a1a1aa;
  --muted-light: #71717a;
  --surface-card: rgba(18, 18, 21, 0.96);
  --surface-card-hover: var(--card-bg-2);
  --card-border: var(--line);
  --border-field: var(--line-strong);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 24px rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Fond général du site (Noir onyx profond + halo supérieur blanc discret)
   -------------------------------------------------------------------------- */
html,
body,
body[data-time-slot],
body[data-time-slot="morning"],
body[data-time-slot="midday"],
body[data-time-slot="evening"],
body[data-page] {
  background: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 65%) fixed, #09090b !important;
  background-color: #09090b !important;
  background-image: radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 65%) !important;
  color: var(--text) !important;
  color-scheme: dark !important;
}

::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   EFFET LUMIÈRE BLANCHE : halo discret d'en haut + trait lumineux supérieur
   Appliqué à tous les conteneurs et cartes de toutes les pages :
   - .section-card (grand cadre englobant de chaque page)
   - .card (les 2 cartes de contact.html)
   - .home-copy-card (carte d'accueil)
   - .annonce-card (cartes des annonces sur annonces.html)
   - .pricing-card (grille honoraires)
   - .location-box (bloc gestion honoraires)
   - .section (sections du formulaire d'estimation)
   - .cta-box (encart contact bas de page annonce)
   - .meta-card (tuiles caractéristiques annonce)
   - .energy-badge (tuiles DPE/GES annonce)
   - .detail-description (texte descriptif annonce)
   - .status-note (messages de chargement/statut)
   -------------------------------------------------------------------------- */
.section-card,
.card,
.home-copy-card,
.home-avatar-frame,
.detail-hero-image,
.annonce-card,
.pricing-card,
.location-box,
.section,
.cta-box,
.meta-card,
.energy-badge,
.detail-description,
.status-note {
  position: relative !important;
  background: var(--halo-inner), var(--card-bg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 -14px 44px -16px var(--halo), var(--shadow-md) !important;
  color: var(--text) !important;
}

/* Le trait lumineux blanc épuré sur le haut de chaque bloc */
.section-card::before,
.card::before,
.home-copy-card::before,
.home-avatar-frame::before,
.detail-hero-image::before,
.annonce-card::before,
.pricing-card::before,
.location-box::before,
.section::before,
.cta-box::before,
.meta-card::before,
.energy-badge::before,
.detail-description::before,
.status-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--edge-light) 22%, var(--edge-light) 78%, transparent);
  box-shadow: 0 0 10px var(--halo), 0 0 20px var(--halo);
  pointer-events: none;
  z-index: 5;
}

/* Grand conteneur principal de page : un peu plus de présence et halo plus large */
.section-card {
  background: var(--halo-inner), rgba(18, 18, 21, 0.96) !important;
  box-shadow: 0 -14px 50px -20px var(--halo), var(--shadow-card) !important;
}

/* Blocs imbriqués à l'intérieur d'un grand bloc : fond légèrement distinct */
.section-card .card,
.section-card .section,
.section-card .pricing-card,
.section-card .location-box,
.section-card .meta-card,
.section-card .energy-badge,
.section-card .detail-description,
.section-card .cta-box,
.section-card .status-note,
.section-card .annonce-card {
  background: var(--halo-inner), var(--card-bg-2) !important;
  box-shadow: 0 -8px 30px -16px var(--halo), var(--shadow-sm) !important;
}

/* Petites tuiles : trait lumineux centré */
.meta-card::before,
.energy-badge::before {
  left: 14%;
  right: 14%;
}

/* --------------------------------------------------------------------------
   Navigation & En-tête
   -------------------------------------------------------------------------- */
.nav {
  background: rgba(9, 9, 11, 0.85) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(20px) !important;
}

.nav-phone-btn {
  background: transparent !important;
  border: 1px solid var(--accent-border) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.nav-phone-btn:hover {
  background: var(--accent-soft) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.menu a {
  color: rgba(255, 255, 255, 0.72) !important;
}

.menu a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.menu a[aria-current="page"] {
  color: #ffffff !important;
  background: var(--accent-soft) !important;
  border: 1px solid var(--accent-border) !important;
  box-shadow: none !important;
}

.nav-toggle {
  background: var(--card-bg) !important;
  border: 1px solid var(--line-strong) !important;
}

.nav-backdrop {
  background: rgba(0, 0, 0, 0.85) !important;
}

@media (max-width: 1024px) {
  .nav-panel {
    background: rgba(12, 12, 14, 0.98) !important;
    border-left: 1px solid var(--line) !important;
  }

  .menu a {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--line) !important;
  }

  .menu a[aria-current="page"] {
    background: var(--accent-soft) !important;
    border-color: var(--accent-border) !important;
  }

  .nav-panel-tel {
    background: #ffffff !important;
    color: #09090b !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 24px -6px rgba(255, 255, 255, 0.3) !important;
  }
}

/* --------------------------------------------------------------------------
   Boutons d'action (Blanc pur contrasté sur texte noir)
   -------------------------------------------------------------------------- */
.button-primary,
button[type="submit"],
.btn-primary,
.btn-hero-primary,
a.button-primary {
  background: #ffffff !important;
  color: #09090b !important;
  box-shadow: 0 8px 24px -6px rgba(255, 255, 255, 0.35) !important;
  border: 1px solid #ffffff !important;
  font-weight: 800 !important;
  transition: all 0.25s ease !important;
}

.button-primary:hover,
button[type="submit"]:hover,
.btn-primary:hover,
.btn-hero-primary:hover,
a.button-primary:hover {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  box-shadow: 0 12px 30px -6px rgba(255, 255, 255, 0.5) !important;
  color: #000000 !important;
  transform: translateY(-2px) !important;
}

.btn-hero-secondary,
.button-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
}

.btn-hero-secondary:hover,
.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

.btn-hero-ghost {
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text-soft) !important;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* --------------------------------------------------------------------------
   Champs de saisie & Formulaires (Contact, Estimation, Annonces)
   -------------------------------------------------------------------------- */
input,
select,
textarea {
  background-color: var(--field-bg) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--line-strong) !important;
  box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #71717a !important;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

select option {
  background: #141416 !important;
  color: #ffffff !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18) !important;
  outline: none !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
}

/* Titres et textes génériques de formulaires */
.section-title {
  color: var(--text) !important;
}

.section-intro {
  color: var(--muted) !important;
}

/* --------------------------------------------------------------------------
   PAGE ACCUEIL
   -------------------------------------------------------------------------- */
.home-avatar-frame {
  position: relative !important;
  background: var(--halo-inner), var(--card-bg) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: 0 -16px 50px -16px rgba(255, 255, 255, 0.32), 0 24px 50px rgba(0, 0, 0, 0.7) !important;
}

.home-avatar-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffffff 20%, #ffffff 80%, transparent) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.3) !important;
  pointer-events: none;
  z-index: 5 !important;
}

.home-avatar-badge {
  background: #ffffff !important;
  color: #09090b !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

.home-desc {
  color: var(--muted) !important;
}

.home-desc strong {
  color: var(--text) !important;
}

.home-metrics {
  border-top: 1px solid var(--line) !important;
}

.metric-sep {
  background: var(--line-strong) !important;
}

.metric-num {
  color: #ffffff !important;
}

.metric-label {
  color: var(--muted) !important;
}

/* --------------------------------------------------------------------------
   PAGE ANNONCES (annonces.html)
   -------------------------------------------------------------------------- */
.annonce-toolbar {
  border-bottom: 1px solid var(--line) !important;
  padding-bottom: 18px !important;
}

.search-wrap .search-icon {
  color: rgba(255, 255, 255, 0.75) !important;
}

.search-wrap input[type="search"] {
  background-color: var(--field-bg) !important;
  color: var(--text) !important;
}

.annonce-count-wrap {
  border-color: var(--line) !important;
}

.annonce-count {
  color: var(--muted) !important;
}

.annonce-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.annonce-card:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 -12px 44px -16px var(--halo), 0 26px 50px rgba(0, 0, 0, 0.7) !important;
  transform: translateY(-5px) !important;
}

.annonce-visual {
  background: linear-gradient(145deg, #1b1b1f 0%, #0c0c0e 100%) !important;
}

.annonce-body {
  background: transparent !important;
}

.annonce-badge {
  background: rgba(9, 9, 11, 0.88) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.annonce-photo-count {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
}

.annonce-price {
  color: #ffffff !important;
}

.annonce-title {
  color: var(--text) !important;
}

.annonce-meta {
  color: var(--muted) !important;
}

.annonce-meta svg {
  color: rgba(255, 255, 255, 0.75) !important;
}

.annonce-tags {
  border-top: 1px solid var(--line) !important;
}

.tag-chip {
  background: var(--accent-soft) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent-border) !important;
}

.tag-chip svg {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   PAGE DÉTAIL ANNONCE (annonce.html)
   -------------------------------------------------------------------------- */
.detail-hero-image {
  position: relative !important;
  background: #000000 !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 -16px 50px -16px rgba(255, 255, 255, 0.3), var(--shadow-lg) !important;
}

.detail-hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffffff 20%, #ffffff 80%, transparent) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.3) !important;
  pointer-events: none;
  z-index: 5 !important;
}

.gallery-nav-btn {
  background: rgba(9, 9, 11, 0.8) !important;
  border: 1px solid var(--line-strong) !important;
  color: #ffffff !important;
}

.gallery-nav-btn:hover {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
}

.gallery-zoom-btn,
.gallery-counter {
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
}

.gallery-zoom-btn:hover {
  background: #ffffff !important;
  color: #09090b !important;
}

.thumb-button {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--line) !important;
}

.thumb-button.active {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
}

.thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
}

.detail-summary .section-title {
  color: var(--text) !important;
}

.detail-price {
  color: #ffffff !important;
}

.meta-label {
  color: var(--muted) !important;
}

.meta-value {
  color: var(--text) !important;
}

.energy-label {
  color: var(--muted) !important;
}

.energy-copy strong {
  color: var(--text) !important;
}

.energy-copy span {
  color: var(--muted) !important;
}

.detail-heading {
  color: var(--text) !important;
}

.detail-heading::before {
  background: #ffffff !important;
}

.detail-description {
  color: var(--text-soft) !important;
  line-height: 1.65 !important;
  font-size: 15.5px !important;
  white-space: pre-line !important;
}

.cta-box h3 {
  color: var(--text) !important;
}

.cta-box p {
  color: var(--muted) !important;
}

/* --------------------------------------------------------------------------
   PAGE CONTACT (contact.html)
   -------------------------------------------------------------------------- */
.grid-2 > .card,
.section-card .card {
  position: relative !important;
  background: var(--halo-inner), var(--card-bg-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 -16px 50px -16px rgba(255, 255, 255, 0.28), var(--shadow-sm) !important;
}

.grid-2 > .card::before,
.section-card .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffffff 20%, #ffffff 80%, transparent) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.3) !important;
  pointer-events: none;
  z-index: 5 !important;
}

.contact-info-list div p {
  color: var(--text-soft) !important;
}

.contact-info-list strong,
.contact-info-list p[style*="font-weight: 700"] {
  color: var(--text) !important;
}

.contact-quick-call {
  background: var(--accent-soft) !important;
  border: 1px solid var(--accent-border) !important;
  color: #ffffff !important;
}

.contact-quick-call:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.contact-quick-call svg {
  color: #ffffff !important;
}

.hours-table {
  border-top: 1px solid var(--line) !important;
  padding-top: 10px !important;
}

.hour-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.hour-day {
  color: var(--text) !important;
}

.hour-time {
  color: var(--muted) !important;
}

.hour-row.is-today {
  background: var(--accent-soft) !important;
  border-color: var(--accent-border) !important;
  color: #ffffff !important;
}

.hour-row.is-today .hour-day {
  color: #ffffff !important;
}

.hour-row.is-today .hour-time {
  color: #ffffff !important;
}

.home-pill {
  background: var(--accent-soft) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent-border) !important;
}

/* --------------------------------------------------------------------------
   PAGE ESTIMATION (estimation.html)
   -------------------------------------------------------------------------- */
.section h3 {
  color: var(--text) !important;
}

.section h3 svg {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   PAGE HONORAIRES (honoraires.html)
   -------------------------------------------------------------------------- */
.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 -12px 44px -16px var(--halo), var(--shadow-md) !important;
}

.pricing-card.featured {
  border-color: #ffffff !important;
  box-shadow: 0 -14px 50px -14px rgba(255, 255, 255, 0.3), 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}

.featured-badge {
  background: #ffffff !important;
  color: #09090b !important;
  font-weight: 800 !important;
  z-index: 5 !important;
}

.pricing-title,
.pricing-price {
  color: var(--text) !important;
}

.price-tag,
.pricing-card .price-tag {
  color: #ffffff !important;
}

.row {
  border-bottom-color: var(--line) !important;
}

.row span {
  color: var(--text-soft) !important;
}

.row strong {
  color: var(--text) !important;
}

.location-box h3 {
  color: var(--text) !important;
}

.location-box p {
  color: var(--muted) !important;
}

/* --------------------------------------------------------------------------
   Lightbox galerie photos (fond ultra noir + accents blancs)
   -------------------------------------------------------------------------- */
.lightbox-modal {
  background: rgba(0, 0, 0, 0.98) !important;
}

.lightbox-dot.active {
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
}

.lightbox-close-btn:hover,
.lightbox-counter-badge {
  color: #ffffff !important;
}
