/* Accueil : conserver les éléments graphiques GeCo et clarifier les parcours. */
.home-projets .hero { min-height: 620px; padding: 70px 0 90px; }
.home-projets .hero-container { width: 100%; }
.home-projets .project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-projets .project-actions .btn { min-width: 120px; text-align: center; }
.home-projets .home-section-action { text-align: center; margin-top: 28px; }
.home-projets .home-service-links { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 24px 0; }
.home-projets .home-service-links a { color: var(--bleu); font-weight: 600; text-underline-offset: 5px; }
.home-projets #gestion { scroll-margin-top: 110px; }
.home-projets .intro-block h3 { margin-bottom: 16px; }
.home-projets .home-listings, .home-projets .home-reviews { background: var(--beige); }
.home-projets a:focus-visible { outline: 3px solid var(--bleu); outline-offset: 5px; }
@media (max-width: 768px) {
  .home-projets .hero { min-height: 600px; padding: 48px 0 90px; }
  .home-projets .project-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-projets .project-actions .btn { min-width: 0; padding: 14px 12px; }
  .home-projets .home-service-links { flex-direction: column; }
}

/* Présentation GeCo : introduction et quatre points forts. */
.home-projets .home-about { padding: 88px 0; background: #fff; scroll-margin-top: 110px; }
.home-projets .about-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr); gap: 40px; align-items: start; }
.home-projets .about-introduction h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.16; color: var(--bleu); margin: 14px 0 24px; letter-spacing: -.02em; }
.home-projets .about-introduction p, .home-projets .about-value p { font-size: 1rem; line-height: 1.7; margin: 0 0 20px; color: var(--bleu); }
.home-projets .about-introduction .btn { margin-top: 8px; white-space: normal; text-align: center; }
.home-projets .about-introduction .btn i { margin-left: 8px; }
.home-projets .about-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-projets .about-value { background: var(--beige); border-radius: 18px; padding: 28px; }
.home-projets .about-value-icon { display: inline-flex; width: 88px; height: 88px; align-items: center; justify-content: center; margin-bottom: 16px; }
.home-projets .about-value-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-projets .about-value h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 16px; color: var(--bleu); }
.home-projets .about-value p:last-child { margin-bottom: 0; }
.home-projets .about-value-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.home-projets .about-value-links a { color: var(--bleu); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1050px) { .home-projets .about-layout { grid-template-columns: 1fr; } .home-projets .about-introduction { max-width: 720px; } }
@media (max-width: 600px) { .home-projets .home-about { padding: 52px 0; } .home-projets .about-values { grid-template-columns: 1fr; } .home-projets .about-value { padding: 24px; } }


/* Finitions de l’accueil : rythme, liens utiles et lisibilité. */
.home-projets .home-about { padding: 64px 0 40px; }
.home-projets .team-section { padding: 48px 0 56px; }
.home-projets .team-section .section-header { margin-bottom: 36px; }
.home-projets .partners-section { padding: 52px 0; }
.home-projets .home-listings, .home-projets .home-reviews { padding: 44px 0; }
.home-projets .home-contact-button { color: var(--bleu); background: transparent; border: 2px solid var(--bleu); }
.home-projets .home-contact-button:hover { color: white; background: var(--bleu); }
.home-projets .partner-logo { width: 220px; height: 128px; padding: 22px; display: flex; align-items: center; justify-content: center; }
.home-projets .partner-logo img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.home-projets .home-advice { padding: 52px 0; background: #fff; }
.home-projets .home-advice .section-header { margin-bottom: 24px; }
.home-projets .home-advice-links { list-style: none; padding: 0; margin: 0 auto; max-width: 850px; }
.home-projets .home-advice-links li { border-bottom: 1px solid var(--beige); }
.home-projets .home-advice-links a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--bleu); font-weight: 600; text-decoration: none; }
.home-projets .home-advice-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-projets .section-title, .home-projets .hero-title, .home-projets .title-line, .home-projets .title-line-sub { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.home-projets .section-tag, .home-projets .team-role { color: #a94235; }
.home-projets button.dropdown-toggle { font-family: inherit; background: transparent; border: 0; cursor: pointer; }
.home-projets button.nav-toggle { background: transparent; border: 0; padding: 8px; cursor: pointer; }
.home-projets :is(a,button):focus-visible { outline: 3px solid var(--bleu); outline-offset: 4px; }
.home-projets .nav-item.has-dropdown:not(.open) .dropdown-menu { opacity: 0; visibility: hidden; pointer-events: none; }
.home-projets .nav-item.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
@media(max-width:768px) {
 .home-projets .nav-menu:not(.active) { visibility: hidden; }
 .home-projets .nav-menu.active { visibility: visible; }
 .home-projets .nav-item.has-dropdown.open .dropdown-menu { transform: none; }
 .home-projets .home-about, .home-projets .team-section, .home-projets .partners-section, .home-projets .home-advice { padding-top: 40px; padding-bottom: 40px; }
 .home-projets .partner-logo { width: min(220px,100%); }
}
@media(prefers-reduced-motion:reduce) {
 .home-projets *, .home-projets *::before, .home-projets *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* Raccord du gecko avec la première section et rythme plus compact. */
.home-projets .hero {
  min-height: 560px;
  padding: 52px 0 68px;
}
.home-projets .project-actions {
  gap: 10px;
  margin-top: 24px;
}
.home-projets .home-listings {
  background: #fff;
  margin-top: -1px;
  padding: 32px 0 36px;
  position: relative;
  z-index: 3;
  box-shadow: 0 -2px 0 #fff;
}
.home-projets .home-listings .container {
  gap: 36px;
  align-items: center;
}
.home-projets .home-listings .section-header {
  margin-bottom: 0;
  padding-bottom: 0;
}
.home-projets .home-listings .section-description {
  margin-top: 12px;
}
.home-projets .home-listings .home-section-action {
  margin-top: 0;
}
.home-projets .home-about {
  padding: 48px 0 34px;
}
.home-projets .team-section {
  padding: 40px 0 46px;
}
.home-projets .team-section .section-header {
  margin-bottom: 28px;
}
.home-projets .partners-section {
  padding: 40px 0;
}
.home-projets .home-reviews {
  padding: 36px 0 40px;
}
.home-projets .home-advice {
  padding: 40px 0;
}

@media (max-width: 768px) {
  .home-projets .hero {
    min-height: 540px;
    padding: 36px 0 52px;
  }
  .home-projets .project-actions {
    margin-top: 20px;
  }
  .home-projets .home-listings {
    padding: 28px 0 32px;
  }
  .home-projets .home-listings .container {
    gap: 22px;
  }
  .home-projets .home-about,
  .home-projets .team-section,
  .home-projets .partners-section,
  .home-projets .home-reviews,
  .home-projets .home-advice {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}


/* Partenaires : grille sobre et monochrome. */
.home-projets .partners-section .section-header {
  margin-bottom: 28px;
}
.home-projets .partners-section .section-description {
  max-width: 620px;
  margin: 10px auto 0;
}
.home-projets .partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(960px, 100%);
  max-width: none;
  margin: 0 auto;
}
.home-projets .partner-logo {
  width: auto;
  height: 116px;
  min-height: 0;
  padding: 24px 30px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  background: linear-gradient(145deg, #173d66 0%, #102f52 100%);
  box-shadow: 0 12px 28px rgba(18, 50, 83, .12);
}
.home-projets .partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .96;
}
.home-projets .partner-logo--light-surface img {
  filter: grayscale(1) invert(1) contrast(1.7);
  mix-blend-mode: screen;
}
@media (max-width: 760px) {
  .home-projets .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .home-projets .partner-logo {
    width: auto;
    height: 104px;
    padding: 20px 24px;
  }
  .home-projets .partner-logo img {
    max-height: 52px;
  }
}
@media (max-width: 480px) {
  .home-projets .partners-grid {
    grid-template-columns: 1fr;
  }
  .home-projets .partner-logo {
    height: 96px;
  }
}


/* Accueil : aperçu dynamique des annonces */
.home-listings {
  padding-top: clamp(52px, 7vw, 86px);
  padding-bottom: clamp(52px, 7vw, 82px);
  overflow: hidden;
}

.home-listings .section-description {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.home-listings-teaser {
  margin-top: 30px;
  position: relative;
}

/* Repère visuel pendant le chargement du module Locations (retiré dès que le cadre est chargé). */
.home-listings-teaser::before {
  content: "Chargement des annonces…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(255,255,255,.35) 20%, rgba(255,255,255,.75) 40%, rgba(255,255,255,.35) 60%) 0 0 / 200% 100%, rgba(255,255,255,.45);
  color: #02364E;
  font-weight: 600;
  font-size: .95rem;
  animation: listingsPlaceholder 1.4s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.home-listings-teaser iframe { position: relative; z-index: 1; }
.home-listings-teaser.is-loaded::before { display: none; }
@keyframes listingsPlaceholder { to { background-position: -200% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .home-listings-teaser::before { animation: none; } }

.home-listings-teaser iframe {
  display: block;
  width: 100%;
  height: 388px;
  border: 0;
  background: transparent;
}

.home-listings .home-section-action {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .home-listings-teaser iframe {
    height: 750px;
  }
}

@media (max-width: 560px) {
  .home-listings {
    padding-right: 0;
    padding-left: 0;
  }

  .home-listings > .container {
    width: 100%;
  }

  .home-listings .section-header,
  .home-listings .home-section-action {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-listings-teaser {
    margin-top: 24px;
    padding-left: 20px;
  }

  .home-listings-teaser iframe {
    height: 422px;
  }
}


/* Avis Google : preuve sociale lisible, fidèle à la DA GeCo. */
.home-projets .home-reviews {
  background: var(--beige);
}
.home-projets .home-reviews > .container {
  display: block;
}
.home-projets .reviews-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
  text-align: left;
}
.home-projets .reviews-heading .section-description {
  max-width: 680px;
  margin: 10px 0 0;
}
.home-projets .google-rating {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 14px;
  align-items: center;
  min-width: 190px;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(145deg, #173d66 0%, #102f52 100%);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(18, 50, 83, .14);
  text-decoration: none;
}
.home-projets .google-rating-brand {
  grid-column: 1 / -1;
  font-size: .88rem;
  font-weight: 600;
  opacity: .9;
}
.home-projets .google-rating strong {
  font-size: 1.65rem;
  line-height: 1;
}
.home-projets .google-rating strong span {
  font-size: .9rem;
  font-weight: 500;
}
.home-projets .google-stars {
  color: #f4b400;
  font-size: .8rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.home-projets .google-rating small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
}
.home-projets .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-projets .review-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(18, 50, 83, .08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(18, 50, 83, .07);
}
.home-projets .review-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.home-projets .review-stars {
  color: #e7a21a;
  font-size: .94rem;
  letter-spacing: 2px;
}
.home-projets .review-source {
  color: #5f6d7a;
  font-size: .78rem;
}
.home-projets .review-card blockquote {
  margin: 22px 0;
  color: var(--bleu);
  font-size: 1rem;
  line-height: 1.65;
  font-style: normal;
}
.home-projets .review-card footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  color: var(--bleu);
}
.home-projets .review-card footer strong {
  font-size: .92rem;
}
.home-projets .review-card footer span {
  color: #6b7680;
  font-size: .78rem;
}
.home-projets .reviews-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}
.home-projets .reviews-link {
  color: var(--bleu);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 900px) {
  .home-projets .reviews-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .home-projets .google-rating {
    width: fit-content;
  }
  .home-projets .reviews-grid {
    grid-template-columns: 1fr;
  }
  .home-projets .review-card {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .home-projets .reviews-heading {
    gap: 22px;
  }
  .home-projets .google-rating {
    width: 100%;
    min-width: 0;
  }
  .home-projets .reviews-actions {
    flex-direction: column;
    gap: 16px;
  }
}


/* Ajustements mobiles et partenaires — septembre 2026 */
@media (max-width: 768px) {
  .home-projets .hero {
    background-size: 95% auto;
    background-position: right bottom;
    background-color: var(--orange);
  }
}

.home-projets .partner-logo--natural {
  background: #fff;
  border: 1px solid rgba(18, 50, 83, .14);
  box-shadow: 0 10px 24px rgba(18, 50, 83, .10);
}

.home-projets .partner-logo--natural img {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
  max-height: 74px;
  border-radius: 7px;
}

@media (max-width: 760px) {
  .home-projets .partner-logo--natural img {
    max-height: 64px;
  }
}
