/* ============================================
   ALMIGO - Gestion Immobilière & Syndic
   Style principal - Version statique cPanel
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* Variables couleurs */
:root {
  --bleu-fonce: #0d2b4e;
  --bleu-moyen: #1a4a7a;
  --turquoise: #1ab5c8;
  --turquoise-clair: #2dd4e8;
  --blanc: #ffffff;
  --gris-clair: #f5f7fa;
  --gris-texte: #6b7280;
  --ombre: 0 4px 20px rgba(13,43,78,0.12);
  --ombre-forte: 0 8px 40px rgba(13,43,78,0.2);
  --transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: #333; background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: var(--blanc);
  box-shadow: var(--ombre);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.navbar-logo img {
  height: 55px; width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.navbar.scrolled .navbar-logo img {
  filter: none;
}
.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }
.navbar-menu a {
  padding: 0.5rem 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.navbar.scrolled .navbar-menu a { color: var(--bleu-fonce); }
.navbar-menu a:hover { color: var(--turquoise); background: rgba(26,181,200,0.1); }
.navbar-menu .dropdown { position: relative; }
.navbar-menu .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--blanc); border-radius: 10px;
  box-shadow: var(--ombre-forte); min-width: 240px;
  padding: 0.5rem 0; z-index: 100;
}
.navbar-menu .dropdown:hover .dropdown-menu { display: block; }
.navbar-menu .dropdown-menu a {
  display: block; padding: 0.6rem 1.2rem;
  color: var(--bleu-fonce); font-size: 0.82rem;
  border-radius: 0;
}
.navbar-menu .dropdown-menu a:hover { background: var(--gris-clair); color: var(--turquoise); }
.navbar-cta {
  background: var(--turquoise); color: var(--blanc) !important;
  padding: 0.55rem 1.2rem !important; border-radius: 25px !important;
  font-weight: 700 !important;
}
.navbar-cta:hover { background: var(--turquoise-clair) !important; transform: translateY(-1px); }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.navbar-toggle span { width: 25px; height: 2px; background: white; transition: var(--transition); display: block; }
.navbar.scrolled .navbar-toggle span { background: var(--bleu-fonce); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-moyen) 60%, #1a6b8a 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-building.jpg');
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,78,0.85) 0%, rgba(26,74,122,0.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  padding-top: 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,181,200,0.2); border: 1px solid rgba(26,181,200,0.4);
  color: var(--turquoise-clair); padding: 0.4rem 1rem;
  border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: 1px;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800; color: var(--blanc);
  line-height: 1.15; margin-bottom: 1.5rem;
  max-width: 700px;
}
.hero h1 span { color: var(--turquoise); }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  max-width: 580px; margin-bottom: 2.5rem; line-height: 1.8;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  transition: var(--transition); cursor: pointer;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--turquoise); color: var(--blanc); }
.btn-primary:hover { background: var(--turquoise-clair); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,181,200,0.4); }
.btn-whatsapp { background: #25D366; color: var(--blanc); }
.btn-whatsapp:hover { background: #20ba5a; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--blanc); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.75rem; z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll span { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============ SECTIONS COMMUNES ============ */
section { padding: 5rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; background: rgba(26,181,200,0.12);
  color: var(--turquoise); padding: 0.3rem 1rem;
  border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--bleu-fonce);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-title span { color: var(--turquoise); }
.section-subtitle { color: var(--gris-texte); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--turquoise), var(--bleu-moyen));
  border-radius: 2px; margin: 1rem auto 0;
}

/* ============ SERVICES ============ */
.services-section { background: var(--gris-clair); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--blanc); border-radius: 16px;
  overflow: hidden; box-shadow: var(--ombre);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--ombre-forte); }
.service-card-img {
  width: 100%; height: 200px;
  object-fit: cover; transition: var(--transition);
}
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-img-wrap { overflow: hidden; }
.service-card-body { padding: 1.5rem; }
.service-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--turquoise), var(--bleu-moyen));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card-icon svg { width: 24px; height: 24px; fill: white; }
.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--bleu-fonce); margin-bottom: 0.5rem;
}
.service-card p { color: var(--gris-texte); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }
.service-link {
  color: var(--turquoise); font-weight: 700; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 5px;
  transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* ============ ENGAGEMENTS ============ */
.engagements-section { background: var(--bleu-fonce); }
.engagements-section .section-title { color: var(--blanc); }
.engagements-section .section-subtitle { color: rgba(255,255,255,0.7); }
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.engagement-item { text-align: center; padding: 2rem 1rem; }
.engagement-icon {
  width: 70px; height: 70px;
  background: rgba(26,181,200,0.15); border: 2px solid rgba(26,181,200,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.engagement-icon svg { width: 32px; height: 32px; stroke: var(--turquoise); fill: none; stroke-width: 2; }
.engagement-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--blanc); margin-bottom: 0.5rem;
}
.engagement-item p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

/* ============ POURQUOI ALMIGO ============ */
.why-section { background: var(--blanc); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-img { border-radius: 20px; overflow: hidden; box-shadow: var(--ombre-forte); }
.why-img img { width: 100%; height: 450px; object-fit: cover; }
.why-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
  width: 36px; height: 36px; min-width: 36px;
  background: linear-gradient(135deg, var(--turquoise), var(--bleu-moyen));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.why-check svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 3; }
.why-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--bleu-fonce); margin-bottom: 0.25rem;
}
.why-item p { color: var(--gris-texte); font-size: 0.85rem; }

/* ============ TEMOIGNAGES ============ */
.testimonials-section { background: var(--gris-clair); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--blanc); border-radius: 16px;
  padding: 2rem; box-shadow: var(--ombre);
  position: relative;
}
.testimonial-card::before {
  content: '"'; font-size: 5rem; line-height: 1;
  color: var(--turquoise); opacity: 0.15;
  position: absolute; top: 0.5rem; left: 1.5rem;
  font-family: Georgia, serif;
}
.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text { color: #555; font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--bleu-moyen));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--bleu-fonce); }
.author-role { font-size: 0.78rem; color: var(--gris-texte); }

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-moyen));
  text-align: center; padding: 5rem 2rem;
}
.cta-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--blanc); margin-bottom: 1rem;
}
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1rem; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ============ FOOTER ============ */
footer {
  background: #071a30; color: rgba(255,255,255,0.75);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-logo img { height: 50px; margin-bottom: 1rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-btn:hover { background: var(--turquoise); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; fill: white; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--blanc); margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--turquoise);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--turquoise); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 18px; height: 18px; stroke: var(--turquoise); fill: none; stroke-width: 2; min-width: 18px; margin-top: 2px; }
.footer-contact-item span { font-size: 0.85rem; line-height: 1.5; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--turquoise); }

/* ============ WHATSAPP FLOTTANT ============ */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.7); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
@keyframes pulse-wa {
  0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.5)}
  50%{box-shadow:0 4px 30px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.1)}
}

/* ============ PAGE INTÉRIEURE ============ */
.page-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-moyen));
  text-align: center;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; color: var(--blanc); margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex; justify-content: center; gap: 0.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--turquoise); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ============ FORMULAIRE ============ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--bleu-fonce); margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb; border-radius: 10px;
  font-family: 'Open Sans', sans-serif; font-size: 0.9rem;
  color: #333; background: var(--blanc);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(26,181,200,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  background: #d1fae5; border: 1px solid #6ee7b7;
  color: #065f46; padding: 1rem; border-radius: 10px;
  text-align: center; display: none; margin-top: 1rem;
}

/* ============ CARTE ============ */
.map-container { border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
.map-container iframe { width: 100%; height: 400px; border: none; display: block; }

/* ============ GALERIE ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--ombre); position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,43,78,0.85), transparent);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: white; font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; }

/* ============ BLOG ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--blanc); border-radius: 16px;
  overflow: hidden; box-shadow: var(--ombre);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block; background: rgba(26,181,200,0.12);
  color: var(--turquoise); padding: 0.2rem 0.75rem;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.blog-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--bleu-fonce); margin-bottom: 0.5rem; line-height: 1.4;
}
.blog-card p { color: var(--gris-texte); font-size: 0.85rem; margin-bottom: 1rem; }
.blog-meta { font-size: 0.78rem; color: #9ca3af; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-img { order: -1; }
  .why-img img { height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-menu { display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background: var(--bleu-fonce); flex-direction: column; padding: 2rem; gap: 0.5rem; overflow-y: auto; }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { color: white !important; font-size: 1rem; padding: 0.75rem 1rem; }
  .navbar-menu .dropdown-menu { display: none !important; position: static; box-shadow: none; background: rgba(255,255,255,0.05); margin-left: 1rem; }
  .navbar-toggle { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 3rem 1.25rem; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .engagements-grid { grid-template-columns: 1fr 1fr; }
}
