/*
 * Clé des Champs — theme.css
 * CSS structurel et placeholders de design
 * À remplacer / compléter selon le Figma livré
 *
 * Organisation :
 *   1. Variables CSS (couleurs, typo, espacements)
 *   2. Global / Reset
 *   2a. Overrides Bootstrap (grid, layout)
 *   3. Header & Navigation
 *   4. Section Hero
 *   4a. Section Présentation
 *   4bis. Section Portes ouvertes (mini-section)
 *   5. Section Projet
 *   6. Section Galerie
 *   7. Section Appartements
 *   8. Section Contact
 *   9. Footer
 *  10. Page Détail Appartement
 *  11. Utilitaires
 */

/* ═══════════════════════════════════════════════════
   1. VARIABLES CSS
   ═══════════════════════════════════════════════════ */
:root {
  /* Couleurs — Design Figma CDC */
  --color-primary: #14453E; /* FONCE — vert principal */
  --color-primary-dk: #115441; /* COLOR 7 — vert hover/active */
  --color-secondary: #919B53; /* CLAIR — vert olive secondaire */
  --color-accent-warm: #CEBFAE; /* BEIGE — accent warm */

  --color-text: #222222; /* texte principal */
  --color-text-light: #666666; /* texte secondaire */
  --color-bg: #FFFFFF; /* BLANC */
  --color-bg-alt: #EDE7E2; /* GRIS — fond alternatif (beige clair) */
  --color-border: #E0E0D8; /* bordures */

  /* Statuts appartements */
  --color-disponible: #46CE86; /* vert clair disponible */
  --color-reserve: #FF9800; /* orange réservé */
  --color-vendu: #E5421E; /* rouge-orange vendu */

  /* Typographie */
  --font-heading: "ivyora-display", serif;
  --font-body: "ivyora-text", sans-serif;
  --font-size-base: 16px;

  /* Espacements */
  --section-padding: 80px;
  --section-padding-sm: 48px;

  /* Header */
  --header-height: 117px;
  --header-bg: var(--color-primary);
  --header-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════
   2. GLOBAL / RESET
   ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* scroll-behavior géré par JS (scrollIntoView) pour éviter les conflits */
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  padding-top: var(--header-height); /* compense la navbar fixed */
}

/* Cache les flèches de navigation par défaut de Swiper */
.swiper-button-next, .swiper-button-prev {
  color: transparent;
}

/* ── Barre admin WordPress ──────────────────────────
   WP ajoute automatiquement margin-top:32px au body,
   mais la navbar fixed ne le perçoit pas — on la décale. */
.admin-bar .navbar.fixed-top {
  top: 32px;
}
.admin-bar body {
  padding-top: calc(var(--header-height) + 32px);
}
.admin-bar html {
  scroll-padding-top: calc(var(--header-height) + 32px);
}
@media screen and (max-width: 782px) {
  /* WP passe à 46px en dessous de 782px */
  .admin-bar .navbar.fixed-top {
    top: 46px;
  }
  .admin-bar body {
    padding-top: calc(var(--header-height) + 46px);
  }
  .admin-bar html {
    scroll-padding-top: calc(var(--header-height) + 46px);
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-primary-dk);
}

img {
  max-width: 100%;
  height: auto;
}

/* Surcharge couleur Bootstrap */
.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-dk);
  --bs-btn-hover-border-color: var(--color-primary-dk);
  --bs-btn-active-bg: var(--color-primary-dk);
}
.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
}


/* ═══════════════════════════════════════════════════
   2a. OVERRIDES BOOTSTRAP — Grid & Layout
   ═══════════════════════════════════════════════════ */
:root {
  --bs-gutter-x: 20px;
}

@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1140px;
  }
}


/* ═══════════════════════════════════════════════════
   3. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */
.site-header .navbar {
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
  height: var(--header-height);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Navbar — fond FONCE constant (pas de transparence) */

/* Logo */
.navbar-brand img {
  max-height: 80px;
  width: auto;
}
.navbar-brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

/* Liens nav */
.navbar .nav-link {
  color: var(--color-bg-alt);
  font-size: 20px;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-accent-warm);
}

/* Bouton hamburger */
.navbar-toggler {
  border: none !important;
  filter: brightness(0) invert(1);
}
.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none;
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .site-header .navbar {
    height: auto;
    min-height: var(--header-height);
  }
  .navbar-collapse {
    background-color: var(--header-bg);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  /* Liens mobiles en GRIS (même couleur que desktop) */
  .navbar-collapse.show .nav-link {
    color: var(--color-bg-alt) !important;
  }
  .navbar-collapse.show .nav-link:hover {
    color: var(--color-accent-warm) !important;
  }
}

/* ═══════════════════════════════════════════════════
   4. SECTION HERO
   ═══════════════════════════════════════════════════ */
.section-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.section-hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 50%,
      var(--color-primary) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.1) 100%
    );
  z-index: 0;
  opacity: 0.8;
}

/* Élément décoratif PNG en bas à droite — classe réutilisable */
.section-hero,
.section-map,
.has-bg-hero-decoration {
  position: relative;
}

.section-hero::after,
.section-map::after,
.has-bg-hero-decoration::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url('../images/bg-hero-right.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  z-index: 1;
  pointer-events: none;
}

.section-hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 64px;
  font-weight: 500;
  font-family: "ivyora-display", serif;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   4a. SECTION PRÉSENTATION — INTRO (fond GRIS)
   ═══════════════════════════════════════════════════ */
.section-presentation-intro {
  background-color: var(--color-bg-alt);
}

.presentation-intro-titre {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 50px);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.presentation-intro-titre br {
  display: block;
  content: "";
  margin: 0.5rem 0;
}

/* ═══════════════════════════════════════════════════
   4a2. SECTION PRÉSENTATION — DÉTAILS (fond FONCE)
   ═══════════════════════════════════════════════════ */
.section-presentation-details {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Infos (4 colonnes) */
.presentation-stats {
  margin-bottom: 3rem;
}

.info-box {
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.info-text {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

/* Bordures verticales entre les colonnes de stats */
.presentation-stats .col-lg-3:not(:last-child) .info-box {
  position: relative;
}

.presentation-stats .col-lg-3:not(:last-child) .info-box::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 120px;
  width: 1px;
  background-color: var(--color-primary);
}

/* Points forts */
.point-fort-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.point-fort-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.point-fort-titre {
  margin-top: auto;
  font-size: 1rem;
}

/* Bordures verticales entre les points forts */
.presentation-points-forts .col-lg-2:nth-child(n+3):not(:last-child) .point-fort-card {
  position: relative;
}

.presentation-points-forts .col-lg-2:nth-child(n+3):not(:last-child) .point-fort-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100px;
  width: 1px;
  background-color: var(--color-bg);
}

/* Onglets */
.presentation-onglets {
  margin-top: 3rem;
  position: relative;
}

/* ── Pills de navigation ────────────────────────── */
.presentation-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.presentation-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.presentation-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.presentation-tab-btn.active {
  background: var(--color-accent-warm);
  border-color: var(--color-accent-warm);
  color: var(--color-primary);
}

/* ── Swiper ────────────────────────────────────── */
/* ── Swiper ────────────────────────────────────── */
.presentation-swiper {
  overflow: hidden;
  padding-bottom: 1rem;
}

.presentation-swiper .swiper-slide {
  height: auto;
}

.presentation-prev,
.presentation-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
  background-color: transparent;
  z-index: 10;
  padding: 0;
}

/* Cacher les icônes par défaut de Swiper */
.presentation-prev:after,
.presentation-next:after {
  display: none;
}

.presentation-prev {
  left: -25px !important;
  background-image: url('/wp-content/themes/cdc/assets/images/arrow-prev-gris.png');
}

.presentation-next {
  right: -25px !important;
  background-image: url('/wp-content/themes/cdc/assets/images/arrow-next-gris.png');
}

.presentation-prev:hover,
.presentation-next:hover {
  opacity: 0.8;
}

/* ── Titre et texte ────────────────────────────── */
.presentation-onglet-titre {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-presentation-details .presentation-onglet-titre {
  color: #ffffff;
}

.presentation-onglet-text {
  font-size: 20px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.section-presentation-details .presentation-onglet-text {
  color: rgba(255, 255, 255, 0.85);
}

.presentation-texte {
  padding-right: 3.5rem;
  padding-bottom: 1rem;
  height: 525px;
  overflow: hidden;
}
.presentation-texte .scroll-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1rem;
  /* Scrollbar Firefox */
  scrollbar-color: var(--color-accent-warm) transparent;
  scrollbar-width: thin;
}

/* Scrollbar Chrome/Safari/Edge */
.presentation-texte .scroll-inner::-webkit-scrollbar {
  width: 8px;
}

.presentation-texte .scroll-inner::-webkit-scrollbar-track {
  background: transparent;
}

.presentation-texte .scroll-inner::-webkit-scrollbar-thumb {
  background: var(--color-accent-warm);
  border-radius: 4px;
}

.presentation-texte .scroll-inner::-webkit-scrollbar-thumb:hover {
  background: #d4c8be;
}

.presentation-image {
  padding-left: 2rem;
}

.presentation-image img {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  object-fit: cover;
}

/* Points forts en bas (Parking, Autoroute, Bus, Place de jeux) */
.presentation-points-forts {
  border-top-color: rgba(255, 255, 255, 0.2) !important;
}

.point-fort-card {
  padding: 1.5rem 1rem;
}

.point-fort-icon {
  display: flex;
  justify-content: center;
}

.point-fort-icon img {
  width: inherit;
  filter: brightness(0) invert(1);
}

.point-fort-titre {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

@media (max-width: 991.98px) {
  /* Pills */
  .presentation-tabs-nav {
    justify-content: flex-start;
  }

  /* Swiper : image sur mobile empilée au-dessus du texte */
  .presentation-swiper .swiper-slide .row {
    flex-direction: column;
  }

  .presentation-texte {
    padding-right: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .presentation-image {
    padding-left: 0;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  /* Flèches plus proches sur mobile */
  .presentation-prev {
    left: -40px;
  }

  .presentation-next {
    right: -40px;
  }
}

/* ═══════════════════════════════════════════════════
   4a3. SECTION PRÉSENTATION — DÉTAIL (générique, fond FONCE)
   ═══════════════════════════════════════════════════ */
.section-presentation-detail,
.presentation-detail {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--section-padding) 0;
}

.presentation-detail-titre {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.presentation-detail-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .section-presentation-detail {
    padding: var(--section-padding-sm) 0;
  }
}

/* ═══════════════════════════════════════════════════
   4bis. SECTION PORTES OUVERTES (mini-section)
   ═══════════════════════════════════════════════════ */
.section-portes-ouvertes {
  height: 136px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
}

.section-portes-ouvertes .container {
  width: 100%;
}

.section-portes-ouvertes .row {
  text-align: center;
}

.section-portes-ouvertes [class^="col-"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portes-ouvertes-title {
  font-family: "ivyora-text", serif;
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.portes-ouvertes-dates,
.portes-ouvertes-adresse {
  font-family: "ivyora-text", serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.portes-ouvertes-dates p {
  margin: 0;
}

.portes-ouvertes-adresse {
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.portes-ouvertes-adresse::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('../images/marker.png');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   4ter. SECTION MAP (fond FONCE)
   ═══════════════════════════════════════════════════ */
.section-map {
  background-color: var(--color-primary);
  color: #ffffff;
}

.map-img {
  border-radius: 4px;
  display: block;
}

/* Overlay SVG sur la carte */
.map-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.map-overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
}

.map-zone {
  cursor: pointer;
  transition: filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  /* Pictos en gris neutre par défaut */
  filter: brightness(0) invert(1) grayscale(100%) opacity(70%);
}

.map-zone:hover,
.map-zone.active {
  opacity: 1;
  /* Pictos colorés au survol */
  filter: brightness(0) invert(1) saturate(1.5) hue-rotate(45deg) brightness(1.2) drop-shadow(0 0 6px rgba(206, 191, 174, 0.8));
}

/* Tableau map — 4 colonnes */
.map-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-left: 30px;
}

.map-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.map-row:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.map-row.active {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-secondary);
}

.map-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-col img {
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
}


.map-col-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.map-col-icon img {
  max-width: 32px;
  max-height: 32px;
}

.map-col-label {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  justify-content: flex-start;
  max-width: 209px;
}

.map-col-time {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 60px;
  text-align: left;
}

.map-col-transport {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
}

@media (max-width: 991.98px) {
  .map-list {
    max-height: 100%;
    overflow-y: visible;
  }

  .section-map .container {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════
   5. SECTION PROJET
   ═══════════════════════════════════════════════════ */
.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

@media (max-width: 767.98px) {
  .section-padding {
    padding-top: var(--section-padding-sm);
    padding-bottom: var(--section-padding-sm);
  }
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 50px);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* Points forts */
.points-forts-title,
.telechargements-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.point-fort-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.point-fort-icon {
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Téléchargements */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  margin-top: 0.4rem;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.btn-download:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════
   6. SECTION GALERIE
   ═══════════════════════════════════════════════════ */
.section-galerie {
  background-color: var(--color-bg-alt);
}

/* Slider principal Swiper */
.galerie-main-slider {
  height: 500px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.galerie-main-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

.galerie-main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Boutons navigation */
.galerie-button-prev,
.galerie-button-next {
  width: 44px;
  height: 44px;
  color: #ffffff;
}

.galerie-button-prev::after,
.galerie-button-next::after {
  font-size: 28px;
  font-weight: 700;
}

/* Thumbnails Swiper */
.galerie-thumbs-slider {
  height: 100px;
  margin-top: 1rem;
}

.galerie-thumbs-slider .swiper-slide {
  width: 100px;
  height: 100px;
  opacity: 0.4;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

.galerie-thumbs-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galerie-thumbs-slider .swiper-slide-thumb-active {
  opacity: 1;
}

.galerie-video {
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════
   7. SECTION APPARTEMENTS
   ═══════════════════════════════════════════════════ */
.appartements-tabs .nav-link {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.appartements-tabs .nav-link.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: transparent;
}

/* Placeholder SVG */
.svg-placeholder {
  min-height: 300px;
  background-color: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  padding: 2rem;
}

/* Tableau listing */
.appartements-table,
.appartements-table * {
  --bs-body-font-family: "ivyora-text", sans-serif !important;
}

.appartements-table {
  background-color: transparent;
  border-collapse: collapse;
  overflow: hidden;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-hover-bg: transparent;
  font-family: "ivyora-text", sans-serif !important;
}
.appartements-table thead {
  background-color: transparent;
  font-family: "ivyora-text", sans-serif !important;
}
.appartements-table thead th {
  font-weight: 700;
  white-space: nowrap;
  border-bottom: none;
  border-top: none;
  color: var(--color-text-dark);
  text-transform: none;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-family: "ivyora-text", sans-serif !important;
}
.appartements-table tbody {
  font-family: "ivyora-text", sans-serif !important;
}
.appartements-table tbody td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--color-accent-warm);
  vertical-align: middle;
  font-size: 18px;
  font-weight: 500;
  font-family: "ivyora-text", sans-serif !important;
  text-align: center;
}
.appartements-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
  background-color: transparent;
}
.appartements-table tbody tr:hover {
  background-color: transparent;
}
.appartements-table tbody tr:nth-child(even) {
  background-color: transparent;
}
.appartements-table tbody tr:nth-child(even):hover {
  background-color: transparent;
}
.appartements-table th.sortable {
  cursor: pointer;
}
.sort-icon {
  opacity: 0.5;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Badges statut */
.badge.statut {
  font-size: 18px;
  font-weight: 500;
  border-radius: 0;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background-color: transparent !important;
  font-family: var(--font-body);
}
.badge.statut::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}
.statut-disponible {
  color: var(--color-disponible) !important;
}
.statut-disponible::before {
  background-color: var(--color-disponible) !important;
}
.statut-reserve {
  color: var(--color-reserve) !important;
}
.statut-reserve::before {
  background-color: var(--color-reserve) !important;
}
.statut-vendu {
  color: var(--color-vendu) !important;
}
.statut-vendu::before {
  background-color: var(--color-vendu) !important;
}

/* Lien téléchargement plan */
.btn-download-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.btn-download-plan:hover {
  color: var(--color-primary-dk);
}

/* ═══════════════════════════════════════════════════
   8. SECTION CONTACT
   ═══════════════════════════════════════════════════ */
.section-contact {
  background-color: var(--color-bg);
}

/* Styles Contact Form 7 */
.wpcf7-form .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.wpcf7-form .form-control {
  background-color: var(--color-bg-alt);
  border-color: var(--color-border);
}
.wpcf7-form .form-control:focus {
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 73, 0.15);
}

/* Checkbox avec label inline */
.form-check {
  margin-bottom: 0.75rem;
  padding-left: inherit;
}
.wpcf7-list-item {
  margin-left: inherit;
}

/* CF7 wraps checkbox dans un span avec form-check-input class */
.wpcf7-checkbox.form-check-input {
  all: unset;
  display: inline;
}
.wpcf7-checkbox input[type="checkbox"] {
  cursor: pointer;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

.form-check-label {
  margin-bottom: 0;
  display: inline;
  cursor: pointer;
}

/* Submit button */
.wpcf7-form .wpcf7-submit {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 2rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
  font-weight: 500;
}
.wpcf7-form .wpcf7-submit:hover {
  background-color: var(--color-primary-dk);
}

.wpcf7-not-valid-tip {
  font-size: 0.8em;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #664d03;
  background-color: #fff3cd;
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ffecb5;
}

/* ═══════════════════════════════════════════════════
   9. FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

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

.footer-logo {
  margin-bottom: 1.5rem;
}

/* Footer Columns */
.footer-col {
  padding: 0;
}

/* Left Column: Logo left, address centered */
.footer-left {
  text-align: left;
}

/* Middle Column: Nav centered, items left */
.footer-nav {
  text-align: left;
}

/* Right Column: All centered */
.footer-right {
  text-align: center;
}

/* Left Column: Logo & Address */
.footer-left .footer-logo-section {
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-height: 80px;
  width: auto;
  display: block;
}

.footer-site-name {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1.5rem;
}

.footer-left .footer-address {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: center;
}

.footer-left .footer-address p {
  margin: 0;
}

/* Middle Column: Navigation */
.footer-nav .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-nav .footer-menu li {
  margin-bottom: 0;
}

.footer-nav .footer-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-nav .footer-menu a:hover {
  color: #ffffff;
}

/* Right Column: Company Info */
.footer-company-header {
  margin-bottom: 2rem;
}

.footer-company-logo {
  max-height: 60px;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-company-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-company-year {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-company-addresses {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer-company-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Footer Text */
.footer-text p {
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   10. PAGE DÉTAIL APPARTEMENT
   ═══════════════════════════════════════════════════ */
.breadcrumb-bar {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}
.breadcrumb-bar .breadcrumb {
  font-size: 0.85rem;
  background: transparent;
  padding: 0;
  margin: 0;
}
.breadcrumb-bar .breadcrumb-item a {
  color: var(--color-primary);
}

.apt-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.apt-specs-table {
  font-size: 0.95rem;
}
.apt-specs-table th {
  color: var(--color-text-light);
  font-weight: 600;
  width: 40%;
}

.apt-description {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.apt-plan figcaption,
.apt-plan-caption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 0.5rem;
}

.apt-plan-placeholder {
  min-height: 250px;
  background-color: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* Galerie sur page détail */
.apt-galerie {
  background-color: var(--color-bg-alt);
}

/* ═══════════════════════════════════════════════════
   9b. SECTION COURTIERS
   ═══════════════════════════════════════════════════ */
.section-courtiers {
  background-color: var(--color-bg-alt);
}

.courtiers-slider .swiper-slide {
  height: auto;
}

.courtier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  justify-content: flex-end;
  min-height: 100%;
}

.courtier-ville {
  font-size: 38px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
}

.courtier-photo {
  margin-bottom: 1.5rem;
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.courtier-photo img,
.courtier-photo-placeholder {
  width: 174px;
  height: 210px;
  object-fit: cover;
  display: block;
}

.courtier-photo-placeholder {
  background-color: var(--color-border);
}

.courtier-nom {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  line-height: 1.3;
}

.courtier-tel,
.courtier-email {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.courtier-tel:hover,
.courtier-email:hover {
  color: var(--color-primary);
}

/* Boutons navigation courtiers */
.courtiers-button-prev,
.courtiers-button-next {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
  background-color: transparent;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.courtiers-button-prev::after,
.courtiers-button-next::after {
  display: none;
}

.courtiers-button-prev {
  background-image: url('/wp-content/themes/cdc/assets/images/arrow-prev-fonce.png');
}

.courtiers-button-next {
  background-image: url('/wp-content/themes/cdc/assets/images/arrow-next-fonce.png');
}

.courtiers-button-prev:hover,
.courtiers-button-next:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════
   10. SECTION APPARTEMENTS — FILTRES
   ═══════════════════════════════════════════════════ */

.filtre {
  background-color: var(--color-primary-dk);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.5rem 0.65rem 1.5rem;
  padding-right: 2.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.filtre:hover:not(:disabled) {
  background-color: #1f4a47;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filtre:focus {
  background-color: var(--color-primary-dk);
  color: #fff;
  border-color: transparent;
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Option text dans le dropdown */
.filtre option {
  background-color: #fff;
  color: var(--color-primary-dk);
  padding: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   11. UTILITAIRES
   ═══════════════════════════════════════════════════ */

/* Accessibilité — skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
}

/* Anim d'entrée légère sur les sections */
.section-fade {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   SECTION CONTACT
   ═══════════════════════════════════════════════ */
.section-contact {
  background-color: var(--color-bg-alt);
}

.section-contact .col-lg-12 {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.section-contact .wpcf7-form {
  width: 100%;
}

.section-contact .wpcf7-form > .row {
  max-width: 100% !important;
  width: 100%;
  padding: 2.5rem !important;
  background-color: var(--color-accent-warm);
  border-radius: 30px;
}

.section-contact .wpcf7-form [class*="col-"] {
  margin-bottom: 1.5rem;
}

.section-contact .wpcf7-form-control-wrap {
  width: 100%;
}

.section-contact .wpcf7-form-control-wrap[data-name="privacy"] {
  width: inherit;
}

.section-contact .wpcf7-form input[type="text"],
.section-contact .wpcf7-form input[type="email"],
.section-contact .wpcf7-form input[type="tel"],
.section-contact .wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 25px;
  background-color: #ffffff;
  color: #333;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}

.section-contact .wpcf7-form input[type="text"]:focus,
.section-contact .wpcf7-form input[type="email"]:focus,
.section-contact .wpcf7-form input[type="tel"]:focus,
.section-contact .wpcf7-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 77, 66, 0.1);
}

.section-contact .wpcf7-form textarea {
  resize: vertical;
  min-height: 180px;
  font-family: inherit;
}

.section-contact .wpcf7-form label {
  display: block;
  color: #1a4d42;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.section-contact .wpcf7-form input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #1a4d42;
}

.section-contact .wpcf7-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.section-contact .wpcf7-form .form-check-input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.section-contact .wpcf7-form .form-check-label {
  color: #1a4d42;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.5;
}

.section-contact .wpcf7-submit {
  background-color: #1a4d42;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  margin-top: 1rem;
}

.section-contact .wpcf7-submit::after {
  content: '→';
  display: inline-block;
}

.section-contact .wpcf7-submit:hover {
  background-color: #0d2f2a;
}
