/*
 * Styles par défaut des balises (liens, formulaires) : rangés dans la couche « base » de Tailwind, déclarée par
 * tailwind.css chargé avant ce fichier, pour que les classes écrites sur l'élément (underline, mb-3, rounded-full,
 * px-5…) passent devant. Hors couche, « a { text-decoration: none } » effaçait tous les « underline ».
 */
@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    background: #f5f1e8;
    color: #11100d;
  }

  a {
    text-decoration: none;
  }

  a:hover {
    text-decoration: none;
  }

  .form-label,
  label {
    color: #3f3a31;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
  }

  .form-control,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  input[type="file"],
  select,
  textarea {
    background: #fffdf8;
    border: 1px solid #d8cdb9;
    border-radius: 0.9rem;
    color: #11100d;
    display: block;
    padding: 0.85rem 1rem;
    width: 100%;
  }

  .form-control:focus,
  .form-select:focus,
  input:focus,
  select:focus,
  textarea:focus {
    border-color: #596a4f;
    box-shadow: 0 0 0 4px rgba(89, 106, 79, 0.14);
    outline: none;
  }
}

/*
 * Classes héritées de Bootstrap (29/10/2026) : ce fichier n'est rangé dans aucune couche (@layer), il passe donc
 * avant tous les utilitaires Tailwind. Il ne doit définir aucune classe qui porte le nom d'un utilitaire Tailwind
 * (border, rounded, mt-3, p-4, text-center, bg-white…) : elle écraserait les variantes (sm:, hover:) et les
 * couleurs associées, par exemple « border border-ink » restait beige. Exception : .col-*, voir plus bas.
 */

.row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* Tailwind a aussi des col-12, col-6… (grid-column: 12) ; ici, ces classes ne servent qu'avec .row. */
.col-12 { grid-column: span 12 / span 12; }
.col-8 { grid-column: span 8 / span 8; }
.col-6 { grid-column: span 6 / span 6; }
.col-4 { grid-column: span 4 / span 4; }
.col-3 { grid-column: span 3 / span 3; }

@media (min-width: 768px) {
  .col-md-6 { grid-column: span 6 / span 6; }
  .col-md-4 { grid-column: span 4 / span 4; }
  .col-md-3 { grid-column: span 3 / span 3; }
  .offset-md-3 { grid-column-start: 4; }
  .d-md-block { display: block; }
}

.d-none { display: none; }
.fw-semibold { font-weight: 700; }
.fw-bold { font-weight: 800; }
.small { font-size: 0.875rem; }
.lead { color: #5a5349; font-size: 1.125rem; line-height: 1.7; }
.border-top { border-top: 1px solid #ddd4c4; }
.border-bottom { border-bottom: 1px solid #ddd4c4; }
.text-success { color: #596a4f; }

.contact-form__trap {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 0;
}

.help-block,
.form-text,
.text-muted {
  color: #6f685c;
  font-size: 0.875rem;
}

.btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.2rem;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #11100d;
  color: #fffdf8;
}

.btn-light {
  background: #fffdf8;
  border: 1px solid #d8cdb9;
  color: #11100d;
}

.btn-link {
  color: #596a4f;
  font-weight: 800;
  padding-inline: 0.5rem;
}

.alert {
  border-radius: 0;
  font-weight: 700;
  padding: 1rem;
  text-align: center;
}

.alert-success {
  background: #e6eddf;
  color: #263421;
}

.alert-info,
.alert-danger {
  background: #f1dfd6;
  color: #5d2f20;
}

.ljp-address-suggestions {
  background: #fffdf8;
  border: 1px solid #d8cdb9;
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(17, 16, 13, 0.14);
  margin-top: 0.5rem;
  overflow: hidden;
}

.ljp-address-suggestion {
  cursor: pointer;
  display: block;
  font-weight: 700;
  padding: 0.9rem 1rem;
  text-align: left;
  width: 100%;
}

.ljp-address-suggestion:hover,
.ljp-address-suggestion.is-active {
  background: #f5f1e8;
}

.ljp-search-suggestions {
  background: #fffdf8;
  border: 1px solid #d8cdb9;
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(17, 16, 13, 0.14);
  left: 0;
  margin-top: 0.5rem;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.ljp-search-suggestion {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  text-align: left;
  width: 100%;
}

.ljp-search-suggestion:hover,
.ljp-search-suggestion.is-active {
  background: #f5f1e8;
}

.ljp-search-suggestion__label {
  color: #11100d;
  font-weight: 800;
}

.ljp-search-suggestion__hint {
  color: #6f685c;
  font-size: 0.78rem;
  font-weight: 700;
}

.is-invalid {
  border-color: #a95f42 !important;
  box-shadow: 0 0 0 4px rgba(169, 95, 66, 0.14) !important;
}

.ljp-lead-step {
  display: none;
}

.ljp-lead-step.is-active {
  display: block;
}

[data-lead-form-target="indicator"].is-active {
  background: #fffdf8;
  border-color: #596a4f;
  color: #11100d;
}

[data-lead-form-target="indicator"].is-complete {
  background: #e6eddf;
  border-color: rgba(89, 106, 79, 0.32);
  color: #263421;
}

.is-invalid {
  border-color: #a95f42 !important;
  box-shadow: 0 0 0 4px rgba(169, 95, 66, 0.14) !important;
}

/* Choix coché du formulaire de demande : le script qui posait .is-selected a disparu avec l'ancien formulaire. */
.ljp-choice-label:has(input:checked) {
  background: #e6eddf;
  border-color: #596a4f;
  color: #11100d;
  box-shadow: 0 0 0 4px rgba(89, 106, 79, 0.12);
}

.ljp-photo-preview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 30rem;
}

.ljp-file-preview {
  min-width: 0;
  position: relative;
}

.ljp-photo-preview img {
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  width: 100%;
}

.ljp-file-preview__document {
  align-items: center;
  aspect-ratio: 1;
  background: #f5f1e8;
  border: 1px solid #d8cdb9;
  border-radius: 1rem;
  color: #596a4f;
  display: flex;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 100%;
}

.ljp-file-preview__placeholder {
  align-items: center;
  aspect-ratio: 1;
  background: #fffdf8;
  border: 1px dashed #d8cdb9;
  border-radius: 1rem;
  color: rgba(17, 16, 13, 0.28);
  display: flex;
  font-size: 0.85rem;
  font-weight: 900;
  justify-content: center;
  width: 100%;
}

.ljp-file-preview__caption {
  color: rgba(17, 16, 13, 0.72);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ljp-file-preview__remove {
  align-items: center;
  background: #11100d;
  border: 0;
  border-radius: 999px;
  color: #fffdf8;
  display: flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  width: 2rem;
  z-index: 2;
}

.ljp-file-preview__remove:hover {
  background: #a95f42;
}

/* Image des métiers (liste des métiers, pages/_categories_links) : retirée par erreur le 29/10/2026, remise le 30/10. */
.category-image {
  background-image: url(/images/sprite-categories.webp);
  background-repeat: no-repeat;
  display: block;
  height: 50px;
  width: 70px;
}

#category-image-architectes { background-position: center 0; }
#category-image-ascenseurs { background-position: center -450px; }
#category-image-petits-travaux { background-position: center -1350px; }
#category-image-bois { background-position: center -900px; }
#category-image-carrelage { background-position: center -1800px; }
#category-image-charpente { background-position: center -250px; }
#category-image-chauffage { background-position: center -50px; }
#category-image-cheminees { background-position: center -500px; }
#category-image-climatisation { background-position: center -950px; }
#category-image-cloisons { background-position: center -1400px; }
#category-image-coffres-forts { background-position: center -500px; }
#category-image-construction { background-position: center -1850px; }
#category-image-cuisines { background-position: center -100px; }
#category-image-demenagement { background-position: center -1000px; }
#category-image-depannage { background-position: center -50px; }
#category-image-demolition { background-position: center -1450px; }
#category-image-decoration { background-position: center -550px; }
#category-image-deratisation { background-position: center -1900px; }
#category-image-diagnostics { background-position: center 0; }
#category-image-electromenager { background-position: center -600px; }
#category-image-electricite { background-position: center -150px; }
#category-image-etancheite { background-position: center -1500px; }
#category-image-entretien { background-position: center -1050px; }
#category-image-fenetres { background-position: center -1950px; }
#category-image-incendie { background-position: center -200px; }
#category-image-isolation { background-position: center -650px; }
#category-image-jardin { background-position: center -1100px; }
#category-image-maconnerie { background-position: center -1550px; }
#category-image-moquette { background-position: center -2000px; }
#category-image-nuisibles { background-position: center -1900px; }
#category-image-papier-peint { background-position: center -250px; }
#category-image-parquet { background-position: center -700px; }
#category-image-peinture { background-position: center -1150px; }
#category-image-photovoltaique { background-position: center -1600px; }
#category-image-piscines { background-position: center -2050px; }
#category-image-menuiserie { background-position: center -300px; }
#category-image-placards { background-position: center -300px; }
#category-image-portes { background-position: center -1650px; }
#category-image-portails { background-position: center -1200px; }
#category-image-plomberie { background-position: center -750px; }
#category-image-ravalement { background-position: center -2100px; }
#category-image-renovation { background-position: center -350px; }
#category-image-sanitaire { background-position: center -1250px; }
#category-image-serrurerie { background-position: center -1700px; }
#category-image-surveillance { background-position: center -850px; }
#category-image-stores { background-position: center -400px; }
#category-image-vitrerie { background-position: center -1750px; }
#category-image-spa { background-position: center -2150px; }
#category-image-salle-de-bain { background-position: center -800px; }
#category-image-toiture { background-position: center -1300px; }
#category-image-volets { background-position: center -2200px; }
#category-image-travaux-difficiles-d-acces,
#category-image-metallerie { background-position: center -1350px; }
