/*
Theme Name: Astra Enfant
Description: Theme enfant de Astra. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: astra
Version: 1.0
*/


.logements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 120%;
  margin: 0 -10%;
}

/* Responsive : 2 colonnes sur tablettes */
@media (max-width: 992px) {
  .logements-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 576px) {
  .logements-grid {
    grid-template-columns: 1fr;
    width: 95%;
  }
}

.logement-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-top: 10px;
  margin-bottom: 18px;
}

.logement-card {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet de survol sur toute la carte */
.logement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logement-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #f3f4f6;
}

/* Slider */
.logement-card__slider {
  width: 100%;
  height: 100%;
  position: relative;
	overflow: hidden;
}

.logement-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.logement-card__slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

/* Image dans le slider */
.logement-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  top: 0;
  left: 0;
}

/* Flèches */
.logement-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.logement-card__arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.logement-card__arrow--prev {
  left: 10px;
}

.logement-card__arrow--next {
  right: 10px;
}

/* Points */
.logement-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.logement-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease;
}

.logement-card__dot.is-active {
  background: #fff;
}

.logement-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  flex-shrink: 0;
}

.logement-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.logement-card__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.logement-card__meta {
  opacity: .75;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.logement-card__cta {
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: 10px;
  text-decoration: none !important;
  background: #000;
  color: #fff;
  font-weight: 600;
  margin-top: auto;
  text-align: center;
}

.logement-card__cta:hover {
  text-decoration: none !important;
  color: #FFFFFF;
}


/* ===== Page Logements (externe) =====
   À coller dans : Apparence > Personnaliser > CSS additionnel
   ou dans un fichier CSS de ton thème.
*/

.page {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #12212a;
  line-height: 1.75;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.page * {
  box-sizing: border-box;
}


/* Typo */
.page .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 14px;
  color: #5a6a74;
}

.page h1 {
  margin: 12px 0 10px;
  font-size: 45px;
  line-height: 1.15;
}

.page h2 {
  margin: 28px 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.page h3 {
  margin: 18px 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.page p {
  margin: 12px 0;
}

.page .lead {
  color: #3b4b55;
  font-size: 16px;
}

/* Images */
.page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page figure {
  margin: 26px 0;
}

.page .hero img {
  width: 140%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.page .img img {
  width: 140%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
}

.page .caption {
  margin-top: 8px;
  color: #5a6a74;
  font-size: 13px;
}

/* Citation / encart léger */
.page .quote {
  background: #f6fbff;
  border-left: 4px solid #cfe6ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 18px 0;
  color: #2b4252;
}

/* Listes */
.page ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.page li {
  margin: 6px 0;
}

/* Séparateur */
.page hr {
  border: 0;
  height: 1px;
  background: #e9eef2;
  margin: 32px 0;
}

/* FAQ accordéon (sobre, sans cadres) */
.page details {
  border-bottom: 1px solid #e9eef2;
  padding: 14px 0;
}

.page summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page summary::-webkit-details-marker {
  display: none;
}

.page summary:before {
  content: "+";
  font-weight: 800;
  font-size: 18px;
  color: #5a6a74;
  width: 18px;
  display: inline-block;
}

.page details[open] summary:before {
  content: "–";
}

.page .answer {
  padding: 10px 0 0;
  color: #3b4b55;
}

/* Note de bas de page */
.page .smallnote {
  font-size: 12px;
  color: #5a6a74;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 700px) {
  .page h1 {
    font-size: 28px;
  }
  
  .page .hero img {
    height: 300px;
  }
  
  .page .img img {
    height: 240px;
  }
}

/* ========================================
   SHORTCODE PAGES SIMILAIRES
   ======================================== */
.pages-similaires-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}

.pages-similaires-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .pages-similaires-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
}

@media (max-width: 576px) {
  .pages-similaires-grid {
    grid-template-columns: 1fr;
    width: 95%;
  }
}

.page-similaire-card {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-similaire-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.13);
}

.page-similaire-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.page-similaire-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f0f0f0;
}

.page-similaire-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.page-similaire-card:hover .page-similaire-card__media img {
  transform: scale(1.05);
}

.page-similaire-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  color: #999;
  font-size: 1.2rem;
}

.page-similaire-card__body {
  padding: 0.85rem 1rem;
  background: #fff;
}

.page-similaire-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .page-similaire-card__title {
    font-size: 0.95rem;
  }
}

.pv-section {
  display: block !important;
  width: 100% !important;
  margin: 2rem 0 !important;
  flex: none !important;
}

.pv-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
}

.pv-wrapper {
  display: block !important;
  width: 100% !important;
  flex: none !important;
  align-self: auto !important;
}

.pv-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 992px) {
  .pv-card {
    width: calc(50% - 10px) !important; /* 2 par ligne */
  }
}

@media (max-width: 576px) {
  .pv-card {
    width: 100% !important; /* 1 par ligne */
  }
}

.pv-card {
  position: relative !important;
  display: block !important;
  flex: none !important;
  width: calc(33.333% - 14px) !important; /* 3 par ligne */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pv-card__link {
  display: block !important;
  position: relative !important;
  text-decoration: none !important;
  color: inherit !important;
  width: 100% !important;
}

.pv-card__img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.pv-card:hover .pv-card__img {
  transform: scale(1.06);
  opacity: 0.85;
}

.pv-card__no-img {
  display: flex !important;
  width: 100% !important;
  height: 220px !important;
  background: #ccc;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

.pv-card__overlay {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 1.25rem !important;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  ) !important;
  pointer-events: none;
  box-sizing: border-box !important;
}

.pv-card__title {
  margin: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 768px) {
  .pv-card__title {
    font-size: 1rem !important;
  }
}