/*
  Projet     : artisan-carreleur-angers.fr
  Métier     : carreleur (Archétype B — Projet/devis)
  Palette    : --bs-primary  #2b2f36  (anthracite, sobre et moderne)
               --bs-secondary #b87333  (cuivre, accent artisanal chaleureux)
  Typo       : Manrope (--bs-body-font-family)
  Rayons     : 0.5rem (--bs-border-radius)
  Navbar     : expand-lg + offcanvas mobile
  Hero       : split 50/50 col-lg-6
  Prestations: grille de card cliquables (icônes bi)
  Avis       : grille de card avec étoiles bi-star-fill
  FAQ        : accordion
  Contact    : card .bg-white dans section .bg-body-tertiary
  ----------------------------------------------------------------
  Règles : aucune classe custom. CSS variables Bootstrap + overrides
  de sélecteurs Bootstrap existants uniquement.
*/

:root {
  /* Palette */
  --bs-primary: #2b2f36;
  --bs-primary-rgb: 43, 47, 54;
  --bs-secondary: #b87333;
  --bs-secondary-rgb: 184, 115, 51;
  --bs-link-color: #2b2f36;
  --bs-link-color-rgb: 43, 47, 54;
  --bs-link-hover-color: #1d2025;
  --bs-link-hover-color-rgb: 29, 32, 37;

  /* Typo */
  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: #1f2933;

  /* Rayons & profondeur */
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.3rem;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-xl: 1rem;
}

/* ===== Overrides sur sélecteurs Bootstrap existants ===== */

/* Boutons primary : couleurs explicites pour mieux maîtriser le contraste */
.btn-primary {
  --bs-btn-bg: #2b2f36;
  --bs-btn-border-color: #2b2f36;
  --bs-btn-hover-bg: #1d2025;
  --bs-btn-hover-border-color: #1d2025;
  --bs-btn-active-bg: #1d2025;
  --bs-btn-active-border-color: #1d2025;
  --bs-btn-disabled-bg: #2b2f36;
  --bs-btn-disabled-border-color: #2b2f36;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-outline-primary {
  --bs-btn-color: #2b2f36;
  --bs-btn-border-color: #2b2f36;
  --bs-btn-hover-bg: #2b2f36;
  --bs-btn-hover-border-color: #2b2f36;
  --bs-btn-active-bg: #2b2f36;
  --bs-btn-active-border-color: #2b2f36;
  font-weight: 600;
}

/* Badge / accent secondaire terracotta */
.text-secondary-accent,
.btn-secondary {
  --bs-btn-bg: #b87333;
  --bs-btn-border-color: #b87333;
  --bs-btn-hover-bg: #9c5f28;
  --bs-btn-hover-border-color: #9c5f28;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

/* Headings : poids 700 pour signature visuelle, plus marqué que defaults BS */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1d2025;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Navbar : épaisseur visuelle + brand impactant */
.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #2b2f36;
  letter-spacing: -0.01em;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #1d2025;
}

.navbar .nav-link {
  font-weight: 500;
}

/* Cards : ombre subtile pour profondeur, hover plus marqué */
.card {
  border: 1px solid rgba(43, 47, 54, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover,
a.card:focus {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(43, 47, 54, 0.12) !important;
  border-color: rgba(43, 47, 54, 0.18);
}

/* Accordion : couleur primary + fond clair quand ouvert */
.accordion-button:not(.collapsed) {
  background-color: rgba(43, 47, 54, 0.08);
  color: #1d2025;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(43, 47, 54, 0.15);
}

/* List-group : éléments légèrement plus aérés */
.list-group-flush .list-group-item {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Tables : header en primary léger */
.table > thead {
  background-color: rgba(43, 47, 54, 0.06);
  color: #1d2025;
}

.table > :not(caption) > * > * {
  padding: 0.85rem 0.85rem;
}

/* Form controls : focus en primary */
.form-control:focus,
.form-select:focus {
  border-color: rgba(43, 47, 54, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(43, 47, 54, 0.15);
}

/* Footer : link-light plus lisible sur fond dark */
footer.bg-dark a.link-light {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

footer.bg-dark a.link-light:hover {
  opacity: 1;
  color: #ffffff !important;
}

/* Breadcrumb : couleur primary sur les liens */
.breadcrumb-item a {
  color: #2b2f36;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Lead paragraphs : poids et taille équilibrés */
.lead {
  font-weight: 500;
  font-size: 1.15rem;
  color: #3a3f47;
}

/* Sections .bg-body-tertiary : teinte légèrement plus chaude que le défaut */
.bg-body-tertiary {
  --bs-tertiary-bg: #f5f4f2;
}
