/* =========================================================
   ASSURANOO - CSS SPECIFIQUE PAGE ACCUEIL
   Fichier : /assets/css/home.css
   ========================================================= */

/* Wrapper accueil */
.assuranoo-shell {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .assuranoo-shell {
    width: min(100% - 20px, 1320px);
  }
}

/* Texte masqué accessible / SEO */
.seo-hidden-link-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   HERO HOME
   ========================================================= */

.hero-card {
  border: 1px solid #dbe5ee;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.home-re-hero {
  position: relative;
  min-height: 460px;
  background: url("/assets/img/hero-home.webp") center/cover no-repeat;
}

.home-re-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.20) 72%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #ffffff;
  max-width: 720px;
  text-align: left;
}

.hero-badge,
.hero-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.hero-verified-stars {
  color: #ffc107;
  letter-spacing: 0.04em;
}

.display-home {
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.60),
    0 8px 24px rgba(0, 0, 0, 0.45);
  max-width: 720px;
}

.jumbotron .home-hero-title,
.home-hero-title,
.home-re-hero .home-hero-title {
  font-size: clamp(1.45rem, 3vw, 2.35rem) !important;
  font-weight: 900;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
}

.hero-main-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  white-space: nowrap;
}

.rocket {
  margin-right: 2px;
  font-size: 0.92em;
}

.home-hero-title .marker {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding-bottom: 0.10em;
}

.home-hero-title .marker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.02em;
  width: 100%;
  height: 0.26em;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255, 193, 7, 0.32) 0%,
    rgba(255, 193, 7, 0.70) 35%,
    rgba(255, 193, 7, 0.98) 100%
  );
  clip-path: polygon(
    0% 85%,
    6% 76%,
    18% 63%,
    35% 50%,
    100% 45%,
    100% 100%,
    0% 100%
  );
}

.home-hero-sub {
  font-size: 1em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.lead-copy {
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin-bottom: 0;
}

/* Texte dynamique */
.typewrite {
  color: #ffc107;
  font-weight: 700;
  margin-left: 0.18em;
  white-space: nowrap;
}

.typewrite > .wrap {
  border-right: 0.09em solid #ffc107;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% {
    border-color: transparent;
  }

  50% {
    border-color: #ffc107;
  }
}

/* =========================================================
   BULLE DEVIS HERO
   ========================================================= */

.nova-bubble {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 350px;
  z-index: 2;
}

.nova-bubble-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 1.25rem !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 1.25rem !important;
}

.nova-bubble-card .fw-bold {
  font-size: 0.95rem;
  margin-bottom: 0.35rem !important;
}

.nova-bubble-card .small {
  font-size: 0.78rem;
  line-height: 1.25;
  margin-bottom: 0.65rem !important;
}

.home-bubble-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem !important;
}

.home-bubble-products .jumbotron-emoji-btn {
  width: 100%;
  height: 52px !important;
  min-height: 52px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem !important;
  padding: 0.35rem !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0.75rem !important;
  border: 1px solid #dbe5ee !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.10) !important;
}

.home-bubble-products .jumbotron-emoji-btn:hover,
.home-bubble-products .jumbotron-emoji-btn:focus {
  border-color: #4682b4 !important;
  color: #4682b4 !important;
  background: #f8fbff !important;
  text-decoration: none !important;
}

.home-bubble-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  display: inline-block !important;
  object-fit: contain !important;
  vertical-align: middle;
  filter: invert(48%) sepia(18%) saturate(1112%) hue-rotate(166deg) brightness(88%) contrast(88%) !important;
}

.home-bubble-dropdowns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.home-bubble-dropdowns .dropdown,
.home-bubble-dropdowns .btn {
  width: 100%;
}

.home-bubble-dropdowns .btn,
.btn-assuranoo {
  min-height: 36px !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.82rem !important;
  border-radius: 0.6rem !important;
  background: #4682b4 !important;
  border-color: #4682b4 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.home-bubble-dropdowns .dropdown-menu {
  font-size: 0.9rem;
}

.btn-assuranoo:hover {
  background: #155576 !important;
  border-color: #155576 !important;
  color: #ffffff !important;
}

.btn-assuranoo-outline {
  border: 1px solid #dbe5ee;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
}

.btn-assuranoo-outline:hover {
  border-color: #1e6f9f;
  color: #1e6f9f;
  background: #ffffff;
}

/* Animation bulle uniquement desktop */
@media (min-width: 992px) {
  .hero-card.home-re-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
    align-items: start !important;
    gap: clamp(1.25rem, 3vw, 3rem) !important;
    min-height: clamp(390px, 38vw, 500px) !important;
    padding: clamp(1.5rem, 3vw, 3rem) !important;
  }

  .home-re-hero .hero-copy {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 !important;
    padding-top: 0.5rem !important;
    max-width: 720px !important;
    align-self: start !important;
  }

  .home-re-hero .nova-bubble {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 !important;
    justify-self: end !important;
    align-self: start !important;
    transform: none !important;
  }

  .home-re-hero .nova-attention {
    animation: none !important;
    transform: none !important;
  }

  .home-re-hero .nova-bubble-card {
    animation: novaBubbleCardFloatLower 3.2s ease-in-out infinite !important;
    transform-origin: center center;
  }

  @keyframes novaBubbleCardFloatLower {
    0%, 100% {
      transform: translateY(62px);
    }

    50% {
      transform: translateY(50px);
    }
  }
}

/* =========================================================
   RESPONSIVE HERO
   ========================================================= */

@media (max-width: 991.98px) {
  .hero-card.home-re-hero {
    display: block !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  .hero-copy {
    max-width: 100%;
    padding: 2rem;
  }

  .display-home,
  .lead-copy {
    max-width: 100%;
  }

  .nova-bubble {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin: 1rem 2rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .home-re-hero {
    min-height: auto !important;
    background-position: center !important;
  }

  .home-re-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.50) 100%
    ) !important;
  }

  .hero-copy,
  .home-re-hero .hero-copy {
    padding: 1.25rem !important;
    text-align: left !important;
  }

  .jumbotron .home-hero-title,
  .home-hero-title,
  .home-re-hero .home-hero-title {
    font-size: clamp(1.35rem, 5.4vw, 1.8rem) !important;
    line-height: 1.08 !important;
  }

  .lead-copy {
    font-size: 0.95rem !important;
  }

  .home-re-hero .nova-bubble {
    display: none !important;
  }

  .home-bubble-dropdowns {
    display: none !important;
  }

  .typewrite {
    display: inline;
  }
}

@media (max-width: 390px) {
  .jumbotron .home-hero-title,
  .home-hero-title,
  .home-re-hero .home-hero-title {
    font-size: clamp(1.2rem, 4.8vw, 1.45rem) !important;
  }

  .hero-main-line,
  .home-hero-sub {
    white-space: nowrap;
  }
}

/* =========================================================
   PARTENAIRES HOME
   ========================================================= */

.home-partners-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.home-partners-box {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: linear-gradient(to left bottom, #e5f3ff, hsl(0, 0%, 96%));
  box-shadow: none !important;
}

.home-partners-box::before,
.home-partners-box::after {
  content: none !important;
  display: none !important;
}

.home-partners-title {
  color: #4682b4;
  letter-spacing: 0.02em;
}

.home-partner-card {
  border: 0 !important;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0.25rem 0.9rem rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-partner-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 0.55rem 1.25rem rgba(0, 0, 0, 0.08);
}

.home-partner-logo-wrap {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: transparent !important;
  overflow: hidden;
}

.home-partner-logo {
  max-width: 165px;
  max-height: 75px;
  object-fit: contain;
  filter: saturate(0.95);
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.home-partner-name {
  font-size: 0.9rem;
  color: #6c757d;
  min-height: 38px;
}

.home-partner-badge {
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(70, 130, 180, 0.10);
  color: #4682b4;
  padding: 0.25rem 0.65rem;
  display: inline-block;
  font-weight: 600;
}

.home-partners-link {
  color: #4682b4;
  font-weight: 600;
  text-decoration: none;
}

.home-partners-link:hover {
  color: #2f5f86;
  text-decoration: underline;
}

.btn-assuranoo-blue {
  color: #4682b4;
  border-color: #4682b4;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.5);
}

.btn-assuranoo-blue:hover {
  color: #ffffff;
  background-color: #4682b4;
  border-color: #4682b4;
}

@media (max-width: 575.98px) {
  .home-partner-logo-wrap {
    height: 90px;
    padding: 0.75rem;
  }

  .home-partner-logo {
    max-width: 135px;
    max-height: 65px;
  }

  .home-partner-name {
    font-size: 0.8rem;
  }
}

/* Modal partenaires au-dessus du filtre gris */
#homePartnersModal {
  z-index: 20000 !important;
}

.modal-backdrop {
  z-index: 19990 !important;
}

#homePartnersModal .modal-dialog,
#homePartnersModal .modal-content {
  position: relative;
  z-index: 20001 !important;
}

/* =========================================================
   ACTIVITE RECENTE / DEVIS 24H
   ========================================================= */

.today-quotes-section {
  margin-bottom: 3rem;
}

.today-quotes-box {
  border-radius: 16px;
  background: linear-gradient(to left bottom, #e5f3ff, hsl(0, 0%, 96%));
  border: 0;
  box-shadow: none;
}

.today-quotes-label {
  color: #4682b4;
  letter-spacing: 0.02em;
}

.today-quotes-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f5f8b !important;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.today-quotes-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding-top: 0.5rem;
}

.today-quotes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
}

.today-quotes-table thead th {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

.today-quotes-table tbody tr {
  transition: transform 0.15s ease, background 0.15s ease;
}

.today-quotes-table tbody tr:nth-child(odd) td {
  background: rgba(70, 130, 180, 0.10) !important;
}

.today-quotes-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.72) !important;
}

.today-quotes-table tbody tr:hover td {
  background: rgba(70, 130, 180, 0.16) !important;
}

.today-quotes-table td {
  vertical-align: middle;
  padding: 0.9rem 0.85rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.today-quotes-table td:first-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

.today-quotes-table td:last-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

.today-quotes-icon {
  width: 46px;
  color: #4682b4;
  text-align: center;
  white-space: nowrap;
  font-size: 1.35rem;
  line-height: 1;
  vertical-align: middle;
}

.today-quotes-product {
  width: 170px;
  color: #495057;
  font-weight: 700;
}

.today-quotes-name {
  width: 75px;
  color: #6c757d;
  font-weight: 600;
}

.today-quotes-detail {
  color: #495057;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-quotes-city {
  width: 190px;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-quotes-city .assur-icon {
  color: #4682b4;
  margin-right: 0.3rem;
}

.today-quotes-city .assur-icon svg {
  stroke: currentColor;
  fill: none;
}

.today-quotes-time {
  width: 82px;
  text-align: right;
  color: #343a40 !important;
}

.today-quotes-time span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4682b4;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .today-quotes-table {
    min-width: 820px;
  }

  .today-quotes-table td {
    font-size: 0.84rem;
    padding: 0.75rem 0.65rem;
  }

  .today-quotes-detail {
    max-width: 260px;
  }
}