/* ============================================================
   MALAMI.CA — Custom CSS pour WordPress/Astra + Elementor
   Reproduit fidèlement le design original
   Polices: Cinzel, Montserrat, Roboto (Google Fonts)
   ============================================================ */

/* === IMPORT GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* === VARIABLES COULEURS (identiques au site original) === */
:root {
  --color-primary: #23282d;       /* Noir foncé principal */
  --color-blue: #76A6FC;          /* Bleu accent */
  --color-red: #fc3116;           /* Rouge CTA */
  --color-gold: #ffb900;          /* Doré/jaune accent */
  --color-dark: #3d3d3d;          /* Gris foncé texte */
  --color-light: #F6f6f6;         /* Fond clair */
  --color-border: #DBDBDB;        /* Bordures */
  --color-white: #ffffff;
  --font-title: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-alt: 'Roboto', sans-serif;
}

/* === RESET & BASE === */
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* === BARRE D'ANNONCE === */
.malami-announcement-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  position: relative;
  z-index: 999;
}
.malami-announcement-bar a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 700;
}
.malami-announcement-bar a:hover { text-decoration: underline; }

/* === HEADER === */
.ast-header-custom-accessible-focus .ast-primary-header-bar,
.site-header {
  background: transparent !important;
  transition: background 0.3s ease;
}
.ast-scroll-classes .ast-primary-header-bar,
.header-scrolled {
  background: rgba(35, 40, 45, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.site-logo img { max-height: 60px; }

/* Menu liens */
.ast-nav-link, .ast-nav-menu > li > a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff !important;
}
.ast-nav-link:hover { color: var(--color-gold) !important; }

/* Bouton CTA dans menu */
.menu-btn-cta a, .ast-nav-menu li.menu-cta a {
  background: var(--color-red) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
}
.menu-btn-cta a:hover { background: #d42b0f !important; }

/* === HERO SECTION === */
.malami-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.malami-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.malami-hero .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.malami-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.malami-hero .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Slider indicators */
.malami-hero .slick-dots li button { background: rgba(255,255,255,0.5); }
.malami-hero .slick-dots li.slick-active button { background: var(--color-gold); }

/* === BOUTONS === */
.btn-primary, .elementor-button.btn-primary {
  background: var(--color-red);
  color: #fff;
  padding: 14px 35px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #d42b0f; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(252,49,22,0.4); }

.btn-secondary, .elementor-button.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 13px 35px;
  border-radius: 3px;
  border: 2px solid #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: #fff; color: var(--color-primary); }

/* === SECTION STATS / COMPTEURS === */
.malami-stats {
  background: var(--color-primary);
  color: #fff;
  padding: 60px 0;
}
.malami-stats .stat-item { text-align: center; padding: 20px; }
.malami-stats .stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.malami-stats .stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Elementor counter override */
.elementor-counter .elementor-counter-number-wrapper {
  font-family: var(--font-title) !important;
  color: var(--color-gold) !important;
}

/* === SECTION SERVICES/APPROCHE === */
.malami-services { padding: 80px 0; background: #fff; }
.malami-services .section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-primary);
}
.service-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  transition: all 0.3s ease;
  background: #fff;
}
.service-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.service-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 15px; }
.service-card h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* === SECTION ABOUT === */
.malami-about { padding: 80px 0; background: var(--color-light); }
.about-photo img {
  border-radius: 5px;
  box-shadow: 20px 20px 0 var(--color-gold);
  max-width: 100%;
}
.about-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-text p { font-size: 15px; line-height: 1.8; color: #555; margin-bottom: 15px; }

/* === SECTION PROPRIÉTÉS === */
.malami-properties { padding: 80px 0; }
.property-card {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.property-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.15); transform: translateY(-5px); }
.property-card img { width: 100%; height: 220px; object-fit: cover; }
.property-info { padding: 20px; }
.property-price { font-size: 1.5rem; font-weight: 700; color: var(--color-red); }
.property-address { font-size: 14px; color: #777; margin-top: 5px; }

/* === SECTION RÉGIONS === */
.malami-regions { padding: 80px 0; background: #fff; }
.region-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
}
.region-card img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s ease; }
.region-card:hover img { transform: scale(1.05); }
.region-card .region-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 25px;
}
.region-card h3 { color: #fff; font-size: 1.5rem; margin: 0; }

/* === TÉMOIGNAGES === */
.malami-testimonials { padding: 80px 0; background: var(--color-light); }
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  border-left: 4px solid var(--color-gold);
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  margin: 10px;
}
.testimonial-stars { color: var(--color-gold); font-size: 18px; margin-bottom: 15px; }
.testimonial-text { font-style: italic; font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 15px; }
.testimonial-author { font-weight: 700; font-size: 14px; color: var(--color-primary); }

/* === FORMULAIRES CF7 === */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(255,185,0,0.1);
}
.wpcf7-form textarea { min-height: 130px; resize: vertical; }
.wpcf7-submit {
  background: var(--color-red) !important;
  color: #fff !important;
  padding: 14px 40px !important;
  border: none !important;
  border-radius: 3px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 100%;
}
.wpcf7-submit:hover { background: #d42b0f !important; transform: translateY(-2px) !important; }

/* CF7 grid layout */
.cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cf7-field { display: flex; flex-direction: column; }
.cf7-field-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .cf7-grid { grid-template-columns: 1fr; } }

/* === FOOTER === */
.site-footer, .ast-footer-area {
  background: var(--color-primary) !important;
  color: rgba(255,255,255,0.8);
}
.footer-logo img { max-height: 80px; filter: brightness(10); margin-bottom: 20px; }
.footer-contact p { font-size: 14px; margin: 5px 0; }
.footer-contact a { color: var(--color-gold); text-decoration: none; }
.footer-social a {
  display: inline-flex;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
}
.footer-social a:hover { background: var(--color-gold); color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* === WHATSAPP BUTTON FLOTTANT === */
.malami-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}
.malami-whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
.malami-whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse-whatsapp {
  0% { box-shadow: 0 5px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 5px 30px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 5px 20px rgba(37,211,102,0.4); }
}

/* === POPUP EXIT INTENT === */
.malami-exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.malami-exit-popup.active { display: flex; }
.popup-inner {
  background: #fff;
  max-width: 560px;
  width: 90%;
  padding: 50px 40px;
  border-radius: 5px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.popup-inner h2 { font-family: var(--font-title); font-size: 1.8rem; margin-bottom: 15px; }
.popup-inner p { color: #666; margin-bottom: 25px; }
.popup-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  background: none;
  border: none;
  line-height: 1;
}
.popup-close:hover { color: var(--color-primary); }

/* === SECTION HERO ANIMÉE === */
.elementor-widget-animated-headline .animated-headline-text-wrapper {
  font-family: var(--font-title) !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .malami-hero h1 { font-size: 1.8rem; }
  .malami-hero .hero-subtitle { font-size: 1rem; }
  .malami-stats .stat-number { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .malami-whatsapp-btn { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .popup-inner { padding: 30px 20px; }
  .about-photo img { box-shadow: 10px 10px 0 var(--color-gold); margin-bottom: 30px; }
}

/* === ASTRA OVERRIDES === */
.ast-container { max-width: 1200px !important; }
.entry-content { max-width: none; }

/* Masquer les éléments Astra par défaut non désirés */
.ast-breadcrumbs-wrapper { display: none; }
