/* 1. Définition des variables */
:root {
  /* colors */
  --back-logo: #17243E;
  --back-logo-lighter: #00497E;
  --form-text-color: #002540;
  --white: #FFFFFF;
  --back-color: #EDD7C3;
  --nav-button-color: #785D32;
  --nav-button-back: #FFFFFF;
  --nav-item-color: #FAF5F0;
  --light-grey: #9B9B9B;
  /* everythings related to font */
  --font-title: "Noto Serif JP", serif;
  --font-text: "Syne", sans-serif;
  --font-other: "Manrope", sans-serif;

}


/*
fin=test=
*/

/*
=form=
*/

.inline-field {
  display: flex;
  flex: 1;
  flex-direction: row;
  padding: 2px;
}

.column-field {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card {
  width: 60%;
  position: relative;
  z-index: 1500;
  margin-top: -50px;
  min-width: fit-content;
  border: none;
}

.search-bar {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;

  p {
    color: var(--light-grey);
    font-family: var(--font-text);
  }

  button {
    padding: 1em 2em;
    margin-right: 2em;
    margin-left: 2em;
  }
}

.card-container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  background-color: var(--nav-item-color);

  .nav {
    justify-content: space-around;
    flex-wrap: nowrap;
  }

  .nav-link {
    color: var(--nav-item-color);
  }

  .nav-link.active {
    color: var(--nav-button-color);
  }

  .card-text {
    margin-bottom: 0.5rem;
  }

}

.card-header {
  background-color: var(--form-text-color);
}

.card-font-style {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--form-text-color);

  label {
    font-size: 18px;
  }

  a {
    text-transform: uppercase;
    padding: 2em 3em;
    max-width: 100%;
  }
}

/*
fin=form
*/

/* =section-swipper qui passe "en dessous" de la navbar= */

.hero-slider {
  z-index: 1050;
}

/* fin=section-swipper qui passe "en dessous" de la navbar= */

.second-page-bloc {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 10em;
  background-color: var(--nav-item-color);
}

.feature-section {
  margin-top: 4em;
}

.feature-row {
  min-height: 180px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  border-top: 1px solid #dee2e6;
  margin: 0;

}

.feature-row:last-child {
  border-bottom: 1px solid #dee2e6;
}

/* Titres (Estimez, Vendez, etc) */
.feature-title {
  font-size: 3rem;
  font-weight: 500;
  margin: 0;
  color: var(--dark-blue);
}

/* Description (Masquée par défaut, visible au hover ou si active) */
.feature-description {
  font-size: 0.85rem;
  color: #777;
  max-width: 300px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

/* Zone "En savoir plus" à droite */
.cta-box {
  background-color: var(--cream-hover);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* État Actif (comme sur votre image pour "Estimez") et Hover */
.feature-row:hover,
.feature-row.active {
  background-color: var(--cream-bg);
}

.feature-row:hover .feature-description,
.feature-row.active .feature-description {
  opacity: 1;
  transform: translateX(0);
}

.feature-row:hover .cta-box,
.feature-row.active .cta-box {
  opacity: 1;
}

/* Correction pour Bootstrap gutters */
.row.g-0 {
  width: 100%;
}

.font-title {
  color: var(--nav-button-color);
  font-family: var(--font-title);
  font-size: 60px;
}

.font-subtitle {
  color: var(--light-grey);
  font-family: var(--font-text);
  font-size: 24px;
}

/* ===fin===menuRow=== */

/* =homeCards= */
property-card {
  border: none;
  background: transparent;
  max-width: 400px;
  margin: auto;
}

.image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Badge Orange en haut à gauche */
.badge-sale {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #f07651;
  /* Orange corail */
  color: white;
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 4px;
}

.card-body-custom {
  padding: 25px 0;
}

.category {
  color: #9d8665;
  /* Marron doré */
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.property-title {
  color: #1a5276;
  /* Bleu pétrole foncé */
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.location {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #888;
  font-size: 0.95rem;
}

.price {
  color: #2c3e50;
  font-weight: 800;
  font-size: 1.2rem;
}

.btn-blue {
  background-color: var(--back-logo-lighter);
  color: var(--nav-item-color) !important;
  padding: 1em 2em;
  text-transform: uppercase;
  font-size: 12px;
  font-family: var(--font-other);
  text-decoration: none;
  margin: 3em 0em;

  :hoover {
    color: var(--white) !important;
  }
}

.encart-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--back-logo-lighter);
  color: var(--back-color);
  padding: 10em 8em;
  transform: translateY(50%);
  margin-top: -20%;

  .font-subtitle,
  .font-title {
    color: var(--back-color);
    margin-bottom: 0.25em;
  }

  .btn-primary {
    background-color: var(--form-text-color);
    border: none;
    padding: 1em 3em;
    margin: 2em;
    color: var(--nav-item-color);
    font-family: var(--font-other);
    font-size: 14px;
    text-transform: uppercase;
  }
}

/* fin=HomeCards */

/* debut-third-page */

.third-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.encartBisContainer {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  margin: 2em;
  margin-bottom: 6em;
  /* tricks pour avoir le bandeau bleu en quinconce */
  margin-top: 24em;
  padding-left: 2em;
  padding-right: 2em;
  height: 80px;
  border-radius: 3px;

  p {
    margin-bottom: 0px;
    margin-right: 2em;
  }
}

.text-encart {

  h2,
  h3 {
    color: var(--back-color)
  }

  p {
    margin-right: 5em;
  }

  img {
    transform: scale(0.5);
  }


}

.third-page {
  background-color: var(--back-logo);
  padding-top: 5em;
  padding-bottom: 5em;
}

.desc-card-container {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 2em;
  margin-bottom: 8em;

}

.desc-card {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  padding: 2em;
  padding-top: 3em;
  padding-bottom: 3em;
  text-align: center;

  flex-wrap: wrap;
  flex-direction: row;

  img,
  h3 {
    color: var(--nav-button-color);
  }

  img {
    padding-bottom: 2em;

  }

  p {
    color: var(--light-grey);
    padding-top: 1em;
    padding-bottom: 1em;
  }
}

/* =testimonial-start */

.testimonial-section {
  background-color: var(--back-logo);
  padding: 2em 4em;

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--white);
  }

  /* En-tête */
  .section-header {
    text-align: center;
    margin-bottom: 50px;
  }

  .section-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
  }

  .section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.6;
  }

  /* Mise en page principale */
  .content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }

  /* Sidebar Google */
  .google-rating {
    flex: 0 0 200px;
    text-align: center;
    padding-top: 20px;
  }

  .google-logo {
    width: 100px;
    margin-bottom: 10px;
  }

  .stars {
    color: var(--star-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .review-count {
    color: var(--text-light);
    font-size: 0.9rem;
  }

  /* Cartes */
  /* Responsive */
  @media (width <=1200px) {
    .content-wrapper {
      flex-direction: column;
      align-items: center;
    }

    .cards-container {
      flex-direction: column;
      min-width: 0;
      max-width: 60% !important;
    }

    .card {
      margin-top: 2em !important;
    }
  }


  .cards-container {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
    max-width: 25%;
    padding-top: 2em;
    padding-right: 2em;

  }

  .card {
    background-color: var(--nav-item-color);
    padding: 25px;
    border-radius: 4px;
    flex: 1;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    background-color: var(--nav-item-color);
  }

  .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
  }

  .user-info {
    display: flex;
    flex-direction: column;
  }

  .name {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #2c3e50;
  }

  .date {
    font-size: 0.75rem;
    color: var(--text-light);
  }

  .card-stars {
    color: var(--star-color);
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
  }

  .read-more {
    color: #1a2a40;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 600;
  }
}

/* fin=testimonial */
/* fin-third-page */







/* debut=responsive-fix= */
@media (max-width: 992px) {
  .font-title {
    text-align: center
  }

  .encart-container {
    padding: 2em 4em;
  }

  .text-encart {
    p {
      margin-right: 0em;
      width: 50%;
    }

    img {
      width: 0;
    }
  }

  .desc-card {
    min-width: 20em;
    margin-bottom: 1em;
  }

  .testimonial-section {
    .card {
      margin-top: 2em !important;

    }
  }

  #text-encart-text {
    width: 100% !important;
  }

  .encartBisContainer {
    width: fit-content;
  }
}

/* fin=responsive-fix= */

/* second swipper - home selection */
.swipper-home {

  height: 80%;
  width: 80%;

  .property-card {
    padding: 4em;
  }


  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination-bullets {
    display: flex;
    color: var(--nav-button-color);
  }
}

/* splashscreen style */

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  /* Couleur de fond de ton choix */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Pour être sûr qu'il soit au-dessus de tout */
  transition: opacity 0.5s ease;
  /* Petit effet de fondu pour la sortie */
}

/* On reprend l'animation Pulse de tout à l'heure */
.logo-anime {
  width: 150px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}