/* ============================================================
   app.css — Cabinet Immobilier Patoux
   Site-specific overrides, components, and utilities
   Loads after main.css
   ============================================================ */

/* === GOOGLE REVIEWS === */
.avisGoogleReview {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.avisGoogleReview:hover {
  box-shadow: var(--shadow-md);
}

.profilePhotoUrl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
  border: 2px solid var(--bg-gray);
}

.nom-poseur {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.3;
}

.avis-stars {
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 4px 0;
}

.avis-stars .fa-star,
.avis-stars .ion-ios-star {
  color: #f5a623;
}

.avis-stars .fa-star-o,
.avis-stars .ion-ios-star-outline {
  color: #ccc;
}

.date-poseur {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.commentaire-poseur {
  font-size: 13px;
  color: var(--text-medium);
  margin-top: 10px;
  line-height: 1.6;
  font-style: italic;
}

/* Review card layout */
.avisGoogleReview .d-flex {
  display: flex;
  align-items: flex-start;
}

.avisGoogleReview .d-flex > div {
  flex: 1;
}

/* === FORM FIELDS === */
.champs {
  margin-bottom: 15px;
}

.champs label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.champs input[type="text"],
.champs input[type="email"],
.champs input[type="tel"],
.champs input[type="number"],
.champs input[type="date"],
.champs textarea,
.champs select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.champs input:focus,
.champs textarea:focus,
.champs select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15);
}

.champs textarea {
  min-height: 100px;
  resize: vertical;
}

.champs .btn-submit,
.champs input[type="submit"] {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition);
}

.champs .btn-submit:hover,
.champs input[type="submit"]:hover {
  background-color: var(--primary-dark);
}

/* === POPUP / MODAL === */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.popup.active,
.popup.show {
  display: flex;
}

.popup-with-form {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 550px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.popup-with-form h2,
.popup-with-form h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-gray);
}

.popup-with-form .close,
.popup-with-form .popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0;
  transition: color var(--transition);
}

.popup-with-form .close:hover,
.popup-with-form .popup-close:hover {
  color: var(--text-dark);
}

/* === BADGE / ETIQUETTE === */
.block_etiquette {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
}

.block_etiquette span {
  display: inline-block;
  background-color: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  letter-spacing: 0.5px;
}

.block_etiquette .nouveau {
  background-color: var(--success);
}

.block_etiquette .exclusivite {
  background-color: var(--accent);
}

.block_etiquette .coup-de-coeur {
  background-color: #e74c6f;
}

.block_etiquette .vendu {
  background-color: var(--danger);
}

.block_etiquette .sous-compromis {
  background-color: #ff8c00;
}

/* === STATISTICS BARS === */
.get_in_total {
  background-color: var(--bg-gray);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin: 6px 0;
}

.get_in_total_percent {
  background-color: var(--primary);
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s ease;
  min-width: 2%;
}

/* === UTILITY CLASSES === */
.hide {
  display: none !important;
}

.xxs {
  font-size: 10px;
}

/* Single-letter utility classes used by Consortium platform */
.c {
  text-align: center;
}

.b {
  font-weight: 700;
}

.f {
  float: left;
}

.r {
  float: right;
}

/* === IONICONS SPACING === */
[class^="ion-"],
[class*=" ion-"] {
  vertical-align: middle;
  line-height: 1;
}

footer [class^="ion-"],
footer [class*=" ion-"] {
  font-size: 16px;
  margin-right: 6px;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.detail-poseur [class^="ion-"],
.detail-poseur [class*=" ion-"] {
  margin-right: 5px;
  color: var(--primary);
}

/* === BOOTSTRAP-SELECT OVERRIDES === */
.bootstrap-select .dropdown-toggle {
  background-color: var(--bg-white) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius) !important;
  font-size: 13px !important;
  color: var(--text-dark) !important;
  padding: 8px 12px !important;
}

.bootstrap-select .dropdown-toggle:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.15) !important;
  outline: none !important;
}

.bootstrap-select .dropdown-menu {
  font-size: 13px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.bootstrap-select .dropdown-item.active,
.bootstrap-select .dropdown-item:active {
  background-color: var(--primary);
}

/* === CAROUSEL THUMBNAIL STRIP === */
.carousel-thumbnails {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.carousel-thumbnails img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition);
  border: 2px solid transparent;
}

.carousel-thumbnails img:hover,
.carousel-thumbnails img.active {
  opacity: 1;
  border-color: var(--primary);
}

/* === PRINT STYLES === */
@media print {
  header,
  footer,
  .sidebar,
  .nav_back,
  .detail-nav,
  .list-more,
  .popup {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .block_img img {
    height: auto;
    max-height: 300px;
  }

  .info_prix {
    color: #000;
    font-size: 16pt;
  }

  .detail_carousel {
    box-shadow: none;
  }

  a[href]::after {
    content: none;
  }
}

/* === COOKIE CONSENT BAR SUPPLEMENT === */
/* Main styling is inline in HTML; these are safe overrides */
.cc-window {
  font-family: inherit !important;
  font-size: 13px !important;
}

.cc-btn {
  border-radius: var(--radius) !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

/* === PAGE TITLE AREA === */
.page-title {
  background-color: var(--primary);
  color: #fff;
  padding: 25px 0;
  margin-bottom: 30px;
}

.page-title h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.page-title .breadcrumb {
  background: transparent;
  padding: 5px 0 0;
  margin: 0;
}

.page-title .breadcrumb-item,
.page-title .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.page-title .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.page-title .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* === RESPONSIVE OVERRIDES === */
@media (max-width: 767px) {
  .popup-with-form {
    padding: 20px;
    width: 95%;
  }

  .avisGoogleReview {
    padding: 15px;
  }

  .profilePhotoUrl {
    width: 40px;
    height: 40px;
  }

  .carousel-thumbnails img {
    width: 55px;
    height: 40px;
  }

  .page-title {
    padding: 18px 0;
  }

  .page-title h1 {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .popup-with-form {
    padding: 15px;
    margin: 10px;
  }

  .champs input[type="text"],
  .champs input[type="email"],
  .champs input[type="tel"],
  .champs textarea,
  .champs select {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* === CLEARFIX === */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
