/* 
  BIKNOUCH BUILDING Website Styles
  Palette de couleurs inspirée de Marrakech
*/

/* ===== VARIABLES ===== */
:root {
  /* Couleurs */
  --primary: #C2410C; /* Terre cuite */
  --primary-dark: #9A3412;
  --primary-light: #FB923C;
  --secondary: #FBBF24; /* Accent doré */
  --secondary-dark: #D97706;
  --secondary-light: #FDE68A;
  --dark: #292524;
  --light: #FFFBEB; /* Beige sable clair */
  --muted: #78716C;
  --bg-light: #F5F5F4;
  --border-color: #E7E5E4;
  
  /* Typographie */
  --body-font: 'Poppins', sans-serif;
  --heading-font: 'Poppins', sans-serif;
  
  /* Espacement */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Rayons de bordure */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & STYLES DE BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

/* ===== CLASSES UTILITAIRES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-padding {
  padding: var(--spacing-lg) 0;
}

.section-padding-sm {
  padding: var(--spacing-md) 0;
}

.text-center {
  text-align: center;
}

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

.section-title {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-full {
  width: 100%;
  display: block;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  height: 40px;
  margin-right: var(--spacing-xs);
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: var(--spacing-md);
}

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.mobile-menu ul {
  margin-bottom: var(--spacing-md);
}

.mobile-menu li {
  margin-bottom: var(--spacing-sm);
}

.mobile-menu a {
  display: block;
  padding: var(--spacing-xs) 0;
  font-weight: 500;
}

/* ===== SECTION HERO ===== */
.hero {
  height: 80vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-image.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ===== EN-TÊTE DE PAGE ===== */
.page-header {
  background-color: var(--primary);
  color: white;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--spacing-xs);
}

/* ===== SECTION À PROPOS ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.features {
  margin: var(--spacing-md) 0;
}

.feature {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(194, 65, 12, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-sm);
  color: var(--primary);
  font-size: 1.25rem;
}

/* ===== SECTION PROPRIÉTÉS ===== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.property-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.property-image {
  position: relative;
  height: 200px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-price {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-weight: 600;
}

.property-content {
  padding: var(--spacing-md);
}

.property-location {
  display: flex;
  align-items: center;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.property-location i {
  margin-right: 5px;
  color: var(--primary);
}

.property-features {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== SECTION PROJETS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.project-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-image {
  position: relative;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background-color: var(--secondary);
  color: var(--dark);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-content {
  padding: var(--spacing-md);
}

.project-location {
  display: flex;
  align-items: center;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.project-location i {
  margin-right: 5px;
  color: var(--primary);
}

.project-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
  font-size: 0.9rem;
}

/* ===== SECTION CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-details {
  margin: var(--spacing-md) 0;
}

.contact-item {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(194, 65, 12, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-sm);
  color: var(--primary);
  font-size: 1.25rem;
}

.map-container {
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.contact-form-container {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 1rem;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== FILTRES ===== */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: flex-end;
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.filter-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 1rem;
  background-color: white;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
}

.filter-tab {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: var(--spacing-lg);
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--dark);
  transition: all 0.3s ease;
}

.pagination a.next {
  width: auto;
  padding: 0 15px;
}

.pagination a.next i {
  margin-left: 5px;
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== PAGE À PROPOS ===== */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.mission-box,
.vision-box,
.values-box {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(194, 65, 12, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  color: var(--primary);
  font-size: 1.5rem;
}

.values-box ul {
  text-align: left;
  margin-top: var(--spacing-sm);
}

.values-box li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.values-box li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* ===== SECTION ÉQUIPE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.team-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-image {
  height: 250px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  padding: var(--spacing-md);
  text-align: center;
}

.team-position {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.team-bio {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== TÉMOIGNAGES ===== */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
}

.quote-icon {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-md);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--spacing-sm);
}

.testimonial-author h4 {
  margin-bottom: 0;
}

.testimonial-author p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.testimonial-prev,
.testimonial-next {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--primary);
  cursor: pointer;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary);
}

/* ===== PIED DE PAGE ===== */
.footer {
  background-color: var(--dark);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
}

.footer h3 {
  margin-bottom: var(--spacing-md);
  color: white;
  font-size: 1.25rem;
}

.footer-links ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
  margin-right: var(--spacing-xs);
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===== STYLES RESPONSIFS ===== */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu.active {
    display: block;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: var(--spacing-md) 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .filter-form {
    flex-direction: column;
  }
  
  .filter-form .btn {
    width: 100%;
  }
}