:root {
  --brand: #FAB143;
  --brand-dark: #e09a2e;
  --topbar-height: 38px;
}

@media (max-width: 767px) {
  :root {
    --topbar-height: 34px;
  }
}

.highlight { color: var(--brand) !important; }
.btn { background-color: var(--brand) !important; color: #1a1a1a !important; }
.btn:hover { background-color: var(--brand-dark) !important; }
.link-arrow:hover { color: var(--brand) !important; }
.number { color: var(--brand) !important; }
.checklist_item .icon-check { color: var(--brand) !important; }
.divider--line::after { background: var(--brand) !important; }
.hot-spot { background: var(--brand) !important; }
.speech-bubble { border-color: var(--brand) !important; }
.card .square.highlight { color: var(--brand) !important; }
.quote-icon path { fill: var(--brand) !important; }
.contact-form_btn.btn { background: var(--brand) !important; }

.hero_tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 640px;
}

/* Top bar + nav sticky ensemble */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
}

.topbar {
  position: relative;
  z-index: 2;
  background: #111;
  border-bottom: 2px solid var(--brand);
}

.site-header .header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 1 !important;
  will-change: auto !important;
  transform: none !important;
  background-color: #001f3f;
}

.site-header .header.headroom--pinned,
.site-header .header.headroom--unpinned {
  transform: none !important;
}

/* Le header fixed du template ajoutait du padding — inutile avec sticky in-flow */
.hero {
  padding-top: 48px !important;
}

header.page.primary-bg {
  padding-top: 48px !important;
}

.topbar_inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 38px;
}

.topbar_nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar_nav-item {
  display: flex;
}

.topbar_nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, background 0.2s ease;
}

.topbar_nav-link:hover,
.topbar_nav-link.is-active {
  color: var(--brand);
}

.topbar_nav-item:last-child .topbar_nav-link {
  background: var(--brand);
  color: #1a1a1a;
  font-weight: 600;
}

.topbar_nav-item:last-child .topbar_nav-link:hover {
  background: var(--brand-dark);
  color: #1a1a1a;
}

@media (max-width: 767px) {
  .topbar_inner {
    justify-content: center;
    min-height: 34px;
  }

  .topbar_nav {
    gap: 0;
    width: 100%;
    justify-content: space-between;
  }

  .topbar_nav-link {
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* Logo */
.header .brand_logo {
  width: auto !important;
  height: 96px !important;
  max-height: none;
  max-width: 300px;
  object-fit: contain;
}

.footer .brand_logo {
  width: auto !important;
  height: 72px !important;
  max-width: 240px;
  object-fit: contain;
}

.header .brand {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .header .brand_logo {
    height: 68px !important;
    max-width: 200px;
  }
}

.header .brand_name,
.footer .brand_name {
  display: none;
}

/* Footer — 4 colonnes sur une ligne (desktop) */
@media (min-width: 1024px) {
  .footer_main {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    flex-flow: unset !important;
    justify-content: unset !important;
    align-items: start;
    padding-bottom: 0;
  }

  .footer_main-block {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }

  .footer_main-block:first-of-type,
  .footer_main-block:last-of-type {
    max-width: none !important;
  }

  .footer_main-block:nth-of-type(3) {
    order: unset !important;
  }

  .footer_main-block_subtitle {
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
  }

  .footer_main-block .group-wrapper a {
    word-break: break-word;
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer_main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    flex-flow: unset !important;
  }

  .footer_main-block {
    width: auto !important;
    max-width: none !important;
  }
}

/* Filtres réalisations */
.trades-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.trades-filter_btn {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s ease;
}

.trades-filter_btn:hover,
.trades-filter_btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a1a1a;
}

.projects_list-item[data-trade] {
  transition: opacity 0.3s ease;
}

.projects_list-item.hidden {
  display: none;
}

/* Grille produits / boutique */
.products-shop_intro {
  margin-bottom: 24px;
}

.products_card-sku {
  font-size: 12px;
  opacity: 0.75;
}

.products-filters {
  margin-bottom: 32px;
}

.product-modal_meta {
  font-size: 13px;
  color: var(--brand);
  margin: 0;
}

.api-status-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  padding: 10px 16px;
  background: #b45309;
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body:has(.api-status-banner) .site-header {
  margin-top: 40px;
}

.products-shop_intro {
  margin-bottom: 40px;
}

.products_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.products_item {
  margin: 0;
}

.products_card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.products_card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.products_card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.products_card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products_card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.products_card-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.products_card-title {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
}

.products_card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 4px;
}

.products-loading,
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  opacity: 0.8;
}

/* Modal produit */
body.modal-open {
  overflow: hidden;
}

.product-modal[hidden] {
  display: none !important;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.product-modal_dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.product-modal_close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-modal_close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.product-modal_media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.product-modal_body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-modal_category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.product-modal_title {
  font-size: 24px;
  margin: 0;
  color: #1a1a1a;
}

.product-modal_description {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  flex: 1;
}

.product-modal_price {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
}

.product-modal_interest-btn {
  align-self: flex-start;
  margin-top: 8px;
}

.revet-interest-btn {
  margin-top: 16px;
}

/* Chat WhatsApp-style */
.revet-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  font-family: inherit;
}

.revet-chat_toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.revet-chat_toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.revet-chat.is-open .revet-chat_toggle {
  display: none;
}

.revet-chat_panel {
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #ece5dd;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.revet-chat_panel[hidden] {
  display: none !important;
}

.revet-chat_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #075e54;
  color: #fff;
}

.revet-chat_header-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.revet-chat_header-status {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.revet-chat_close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.revet-chat_messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(rgba(236, 229, 221, 0.94), rgba(236, 229, 221, 0.94)),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23d9d2cb' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}

.revet-chat_msg {
  display: flex;
  max-width: 88%;
}

.revet-chat_msg--bot {
  align-self: flex-start;
}

.revet-chat_msg--user {
  align-self: flex-end;
}

.revet-chat_bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.revet-chat_msg--bot .revet-chat_bubble {
  background: #fff;
  color: #111;
  border-top-left-radius: 4px;
}

.revet-chat_msg--user .revet-chat_bubble {
  background: #dcf8c6;
  color: #111;
  border-top-right-radius: 4px;
}

.revet-chat_input {
  padding: 10px;
  background: #f0f0f0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.revet-chat_form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.revet-chat_field {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: #fff;
  font-size: 14px;
  color: #111;
}

.revet-chat_send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #075e54;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.revet-chat_picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
}

.revet-chat_search {
  border-radius: 12px !important;
}

.revet-chat_options {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 160px;
}

.revet-chat_option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.revet-chat_option:hover {
  background: #f7f7f7;
}

.revet-chat_option-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #075e54;
  font-weight: 600;
}

.revet-chat_option-label {
  font-size: 14px;
  color: #111;
}

@media (max-width: 767px) {
  .revet-chat {
    right: 12px;
    bottom: 12px;
  }

  .revet-chat_panel {
    width: calc(100vw - 24px);
    height: min(70vh, 520px);
  }
}

.product-modal_order {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.product-modal_order .field,
.product-modal_order textarea {
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}

.product-modal_order .field::placeholder,
.product-modal_order textarea::placeholder {
  color: #888;
}

.product-modal_order label {
  color: #333;
}

.product-modal_order[hidden] {
  display: none !important;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.order-status,
.form-status {
  font-size: 14px;
  margin-top: 8px;
}

.order-status--success,
.form-status--success {
  color: #2e7d4f;
}

.order-status--error,
.form-status--error {
  color: #c0392b;
}

.order-status--pending,
.form-status--pending {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .product-modal_dialog {
    grid-template-columns: 1fr;
  }
}

/* Formulaire devis */
.devis-form .field,
.devis-form select,
.devis-form textarea {
  width: 100%;
}

.devis-form_row {
  width: 100%;
  margin-bottom: 16px;
}

.devis-form_row--half {
  width: calc(50% - 8px);
}

@media (max-width: 767px) {
  .devis-form_row--half {
    width: 100%;
  }
}

.devis-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.devis-form select {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
}

/* Navigation métiers (sous le bandeau) */
.metiers-nav {
  background: var(--primary, #344f6b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
}

.metiers-nav_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.metiers-nav_item {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.metiers-nav_item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.metiers-nav_item.is-active {
  color: #fff;
  border-bottom-color: var(--brand, #fab143);
  background: rgba(250, 177, 67, 0.1);
}

@media (max-width: 767px) {
  .metiers-nav_list {
    flex-direction: column;
  }

  .metiers-nav_item {
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
  }

  .metiers-nav_item.is-active {
    border-left-color: var(--brand, #fab143);
    border-bottom-color: transparent;
  }
}

/* Métiers tags */
.metier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 30px;
}

.metier-tags_item {
  padding: 6px 14px;
  background: rgba(250, 177, 67, 0.15);
  border: 1px solid var(--brand);
  border-radius: 3px;
  font-size: 13px;
}

/* Partenaires — logos uniquement */
.partners-section {
  padding: 48px 0 64px;
}

.partners-section .container {
  max-width: 1100px;
}

/* Partenaires — gallery grid 6 colonnes */
.partners_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .partners_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners_grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.partners_item {
  margin: 0;
  padding: 0;
  background: none;
  text-align: center;
}

.partners_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.partners_logo:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.partners_logo img {
  width: 100%;
  height: 100%;
  max-height: 72px;
  object-fit: contain;
}

.partners_empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
