/*
Theme Name: Astra Child
Template: astra
Version: 1.3.0
*/

/* ==========================================================================
   IMMODENIA - ARCHITECTURAL / PRIVATE CONCIERGE DESIGN
   ========================================================================== */

:root {
  --immo-dark: #0a192f;        /* Bleu nuit architectural profond */
  --immo-slate: #1e293b;
  --immo-gold: #c5a880;        /* Beige doré méditerranéen haut de gamme */
  --immo-gold-hover: #b39366;
  --immo-sand: #f8fafc;
  --immo-card-bg: #ffffff;
  --immo-border: #e2e8f0;
  --immo-radius: 12px;
}

/* Reset typo & titres */
body {
  color: var(--immo-slate);
  background-color: #ffffff;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4 {
  color: var(--immo-dark) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* --- HERO IMMERSIF HAUTE DÉFINITION --- */
.wp-block-cover.immo-hero-clean {
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(10, 25, 47, 0.25);
}

.immo-hero-clean .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.7) 0%, rgba(10, 25, 47, 0.92) 100%) !important;
  opacity: 1 !important;
}

.immo-hero-tagline {
  display: inline-block;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--immo-gold) !important;
  font-weight: 600;
  margin-bottom: 0.75rem !important;
}

.immo-hero-clean h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin-bottom: 1.25rem !important;
}

.immo-hero-clean p.immo-hero-sub {
  color: #cbd5e1 !important;
  font-size: 1.15rem !important;
  max-width: 650px;
  margin: 0 auto 2rem auto !important;
  line-height: 1.6 !important;
}

/* Bouton doré sur mesure */
.immo-btn-gold {
  background: linear-gradient(135deg, var(--immo-gold) 0%, var(--immo-gold-hover) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35) !important;
  transition: all 0.25s ease !important;
}
.immo-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.45) !important;
}

/* --- GRILLE DES 3 PILIERS (STYLE MINIMALISTE ÉLÉGANT) --- */
.immo-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3.5rem 0;
}

.immo-pillar-item {
  background: #ffffff;
  padding: 2.2rem;
  border-radius: var(--immo-radius);
  border: 1px solid var(--immo-border);
  box-shadow: 0 4px 20px -2px rgba(10, 25, 47, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.immo-pillar-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(10, 25, 47, 0.08);
  border-color: #cbd5e1;
}

.immo-pillar-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--immo-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.immo-pillar-item h3 {
  font-size: 1.3rem !important;
  margin: 0 0 0.75rem 0 !important;
  color: var(--immo-dark) !important;
}

.immo-pillar-item p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- ANNONCES MINIATURES SÉLECTIONNÉES --- */
.immo-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.immo-prop-card {
  background: #ffffff;
  border-radius: var(--immo-radius);
  overflow: hidden;
  border: 1px solid var(--immo-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.immo-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(10, 25, 47, 0.08);
}

.immo-prop-card .img-box {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.immo-prop-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.immo-prop-card:hover .img-box img {
  transform: scale(1.05);
}

.immo-prop-card .content-box {
  padding: 1.25rem;
}

.immo-prop-card h4 {
  margin: 0 0 0.4rem 0 !important;
  font-size: 1.05rem !important;
}

.immo-prop-card h4 a {
  color: var(--immo-dark) !important;
  text-decoration: none !important;
}

.immo-prop-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* --- LES 4 HUBS SÉMANTIQUES (FIN DE PAGE SANS IMAGES IA DÉGUEULASSES) --- */
.immo-hubs-architectural {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.immo-hub-brick {
  display: block;
  background: linear-gradient(135deg, #0a192f 0%, #1e293b 100%);
  color: #ffffff !important;
  padding: 2.2rem 1.8rem;
  border-radius: var(--immo-radius);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.immo-hub-brick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--immo-gold);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.immo-hub-brick:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: 0 15px 30px rgba(10, 25, 47, 0.2);
}

.immo-hub-brick:hover::before {
  opacity: 1;
}

.immo-hub-brick .hub-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--immo-gold);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.immo-hub-brick h3 {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  margin: 0 0 0.5rem 0 !important;
}

.immo-hub-brick p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}


/* ==========================================================================
   HEADER & MENU - MINIMALISTE HAUT DE GAMME
   ========================================================================== */

/* Alignement & hauteur du header */
#masthead .ast-primary-header-bar {
  min-height: 80px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  box-shadow: 0 4px 20px -2px rgba(10, 25, 47, 0.03) !important;
}

/* Typographie des liens */
.main-header-menu .menu-item > .menu-link {
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  letter-spacing: 0.02em !important;
  padding: 0 18px !important;
  transition: color 0.2s ease !important;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .menu-item.current-menu-item > .menu-link {
  color: #c5a880 !important; /* Doré méditerranéen */
}

/* Flèche de sous-menu discrète */
.ast-header-navigation-arrow,
.main-header-menu .icon-arrow svg {
  width: 9px !important;
  height: 9px !important;
  margin-left: 6px !important;
  opacity: 0.5 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.main-header-menu .menu-item:hover .icon-arrow svg {
  opacity: 1 !important;
  fill: #c5a880 !important;
}

/* Sous-menu dropdown moderne */
.main-header-menu .sub-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px -5px rgba(10, 25, 47, 0.08) !important;
  padding: 8px !important;
  top: 100% !important;
}

.main-header-menu .sub-menu .menu-item > .menu-link {
  font-size: 0.88rem !important;
  color: #475569 !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.main-header-menu .sub-menu .menu-item > .menu-link:hover {
  background-color: #f8fafc !important;
  color: #0a192f !important;
  transform: translateX(3px);
}

/* Bouton Contact UNIQUEMENT au premier niveau de navigation */
.main-header-menu > .menu-item:last-child > .menu-link,
.ast-header-button-1 .ast-custom-button-link {
  background: #0a192f !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  transition: all 0.25s ease !important;
}

.main-header-menu > .menu-item:last-child > .menu-link:hover,
.ast-header-button-1 .ast-custom-button-link:hover {
  background: #c5a880 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3) !important;
}

/* Réinitialisation stricte pour les sous-menus (sécurité absolue) */
.main-header-menu .sub-menu .menu-item > .menu-link {
  background: transparent !important;
  color: #475569 !important;
  padding: 10px 16px !important;
  text-transform: none !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}

.main-header-menu .sub-menu .menu-item > .menu-link:hover {
  background-color: #f8fafc !important;
  color: #0a192f !important;
}