/*
 * 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;
}

.ljp-choice-label.is-selected {
  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;
}
