/*
 * Mode chasseur - polish LOGUETOWN.
 * Scope: .lt26-chasseur
 */

.lt26-chasseur.chasseur-page {
  --hc-bg: #050a1a;
  --hc-bg-2: #0a1424;
  --hc-panel: rgba(8, 18, 36, 0.88);
  --hc-panel-2: rgba(12, 24, 43, 0.94);
  --hc-text: #e8e0d0;
  --hc-soft: rgba(232, 224, 208, 0.70);
  --hc-muted: rgba(232, 224, 208, 0.50);
  --hc-gold: #d4a017;
  --hc-gold-2: #f0c842;
  --hc-line: rgba(212, 160, 23, 0.18);
  --hc-line-strong: rgba(212, 160, 23, 0.38);
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 10%, rgba(212, 160, 23, 0.10), transparent 30rem),
    radial-gradient(circle at 86% 24%, rgba(192, 57, 43, 0.07), transparent 28rem),
    linear-gradient(180deg, var(--hc-bg) 0%, var(--hc-bg-2) 50%, var(--hc-bg) 100%);
  color: var(--hc-text);
  font-family: Rajdhani, system-ui, sans-serif;
}

[data-theme="light"] .lt26-chasseur.chasseur-page {
  --hc-bg: #f5efe3;
  --hc-bg-2: #fffaf0;
  --hc-panel: rgba(255, 250, 240, 0.92);
  --hc-panel-2: rgba(255, 255, 255, 0.92);
  --hc-text: #17202a;
  --hc-soft: rgba(23, 32, 42, 0.72);
  --hc-muted: rgba(23, 32, 42, 0.52);
  --hc-gold: #a86f12;
  --hc-gold-2: #d99a18;
  --hc-line: rgba(138, 90, 15, 0.22);
  --hc-line-strong: rgba(138, 90, 15, 0.36);
  background:
    radial-gradient(circle at 18% 10%, rgba(168, 111, 18, 0.12), transparent 30rem),
    radial-gradient(circle at 86% 24%, rgba(192, 57, 43, 0.04), transparent 28rem),
    linear-gradient(180deg, var(--hc-bg) 0%, var(--hc-bg-2) 50%, var(--hc-bg) 100%);
}

.lt26-chasseur .lt-hero {
  min-height: auto;
  padding: calc(var(--gl-nav-h, 76px) + 4rem) 1.5rem 3.4rem;
  text-align: center;
  background:
    linear-gradient(rgba(212, 160, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
}

[data-theme="light"] .lt26-chasseur .lt-hero {
  background:
    linear-gradient(rgba(138, 90, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 90, 15, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
}

.lt26-chasseur .lt-hero-inner {
  width: min(880px, 100%);
  margin-inline: auto;
}

.lt26-chasseur .lt-hero h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(135deg, #fff8e1 0%, var(--hc-gold-2) 30%, var(--hc-gold) 58%, #fff8e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0;
  filter: drop-shadow(0 0 28px rgba(212, 160, 23, 0.32));
}

[data-theme="light"] .lt26-chasseur .lt-hero h1 {
  background: linear-gradient(135deg, #27313c 0%, #a86f12 48%, #17202a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 14px 28px rgba(168, 111, 18, 0.12));
}

.lt26-chasseur .lt-lead {
  max-width: 680px;
  margin: 1.15rem auto 0;
  color: var(--hc-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.lt26-chasseur .lt-section {
  padding: 0 1.5rem 5rem;
  background: transparent;
}

.lt26-chasseur .lt-container--narrow {
  max-width: 980px;
}

.lt26-chasseur .chasseur-alert-strip,
.lt26-chasseur .lt-card,
.lt26-chasseur .estimation-table-wrapper {
  background:
    linear-gradient(rgba(212, 160, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.025) 1px, transparent 1px),
    var(--hc-panel);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .lt26-chasseur .chasseur-alert-strip,
[data-theme="light"] .lt26-chasseur .lt-card,
[data-theme="light"] .lt26-chasseur .estimation-table-wrapper {
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.08);
}

.lt26-chasseur .chasseur-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: -1.4rem 0 1.1rem;
  padding: 0.9rem 1rem;
  color: var(--hc-muted);
  font-size: 0.95rem;
}

.lt26-chasseur .chasseur-alert-strip span,
.lt26-chasseur .chasseur-alert-strip a {
  color: var(--hc-gold);
  font-weight: 700;
}

.lt26-chasseur .chasseur-alert-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--hc-line-strong);
  text-decoration: none;
  font-family: Cinzel, serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
}

/* ==========================================================================
 * Carte "Tips" — icône en médaillon + bordure dorée subtile
 * ========================================================================== */
.lt26-chasseur .lt-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 4.4rem;
  overflow: hidden;
}

.lt26-chasseur .lt-card::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(212, 160, 23, 0.22), rgba(212, 160, 23, 0.05));
  border: 1px solid var(--hc-line-strong);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-4 12.7V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.3A7 7 0 0 0 12 2zm-2 19h4v1a2 2 0 1 1-4 0z' fill='%23000'/></svg>") center / 60% no-repeat,
          linear-gradient(#000, #000);
          mask: linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
}

.lt26-chasseur .lt-card::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a017' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M12 2a7 7 0 0 0-4.5 12.4c.9.7 1.5 1.7 1.5 2.8V18h6v-.8c0-1.1.6-2.1 1.5-2.8A7 7 0 0 0 12 2z'/></svg>");
  background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
}

[data-theme="light"] .lt26-chasseur .lt-card::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(135deg, rgba(168, 111, 18, 0.18), rgba(168, 111, 18, 0.04));
}

[data-theme="light"] .lt26-chasseur .lt-card::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a86f12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M12 2a7 7 0 0 0-4.5 12.4c.9.7 1.5 1.7 1.5 2.8V18h6v-.8c0-1.1.6-2.1 1.5-2.8A7 7 0 0 0 12 2z'/></svg>");
}

.lt26-chasseur .lt-card h3 {
  margin: 0 0 0.6rem;
  color: var(--hc-text);
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.lt26-chasseur .lt-bullet-list {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--hc-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lt26-chasseur .lt-bullet-list li {
  margin-bottom: 0.35rem;
}

.lt26-chasseur .lt-bullet-list li::marker {
  color: var(--hc-gold);
}

/* ==========================================================================
 * Form layout — la table HTML reste mais on la rend en cartes empilées
 * pour un visuel moderne (le serveur ne change pas).
 * ========================================================================== */
.lt26-chasseur .estimation-table-wrapper {
  overflow: visible;
  padding: 0.5rem 0;
}

.lt26-chasseur .estimation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--hc-text);
}

.lt26-chasseur .estimation-table tbody,
.lt26-chasseur .estimation-table tr,
.lt26-chasseur .estimation-table td,
.lt26-chasseur .estimation-table th {
  display: block;
  width: 100%;
}

.lt26-chasseur .estimation-table tr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border: 0;
  border-bottom: 1px solid var(--hc-line);
}

@media (min-width: 760px) {
  .lt26-chasseur .estimation-table tr {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.1rem 2rem;
  }
}

.lt26-chasseur .estimation-table tr:last-child {
  border-bottom: 0;
}

.lt26-chasseur .estimation-table td,
.lt26-chasseur .estimation-table th {
  padding: 0;
  vertical-align: top;
}

/* ----- Section titles : ligne dorée fine + chiffre romain optionnel ----- */
.lt26-chasseur .estimation-table tr:has(.table-section-title) {
  grid-template-columns: 1fr;
  padding: 2.4rem 2rem 0.6rem;
  border-bottom: 0;
}

.lt26-chasseur .estimation-table tr + tr:has(.table-section-title) {
  margin-top: 0.4rem;
  border-top: 1px solid var(--hc-line);
}

.lt26-chasseur .table-section-title {
  position: relative;
  background: transparent;
  color: var(--hc-gold);
  font-family: Cinzel, serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0 0 0.55rem !important;
}

.lt26-chasseur .table-section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--hc-gold-2), transparent);
}

/* ----- Labels colonne gauche ----- */
.lt26-chasseur .table-label {
  width: auto;
  padding-top: 0.95rem;
  color: var(--hc-soft);
  font-family: Cinzel, serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lt26-chasseur .table-label label {
  cursor: pointer;
}

/* Point doré au lieu de l'astérisque pour les champs requis */
.lt26-chasseur .required {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 6px;
  background: var(--hc-gold);
  vertical-align: middle;
  font-size: 0;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

/* ==========================================================================
 * INPUTS / SELECT / TEXTAREA — focus animé, fond plus dense
 * ========================================================================== */
.lt26-chasseur .form-input,
.lt26-chasseur .form-select,
.lt26-chasseur .form-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: rgba(5, 10, 26, 0.48);
  color: var(--hc-text);
  font-family: Rajdhani, system-ui, sans-serif;
  font-size: 1.02rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    transform 0.1s ease;
}

.lt26-chasseur .form-input::placeholder,
.lt26-chasseur .form-textarea::placeholder {
  color: var(--hc-muted);
  font-style: italic;
}

.lt26-chasseur .form-input:hover,
.lt26-chasseur .form-select:hover,
.lt26-chasseur .form-textarea:hover {
  border-color: var(--hc-line-strong);
  background: rgba(5, 10, 26, 0.56);
}

.lt26-chasseur .form-input:focus,
.lt26-chasseur .form-select:focus,
.lt26-chasseur .form-textarea:focus {
  border-color: var(--hc-gold);
  box-shadow:
    0 0 0 4px rgba(212, 160, 23, 0.14),
    0 6px 22px -8px rgba(212, 160, 23, 0.28);
  background: rgba(5, 10, 26, 0.7);
}

[data-theme="light"] .lt26-chasseur .form-input,
[data-theme="light"] .lt26-chasseur .form-select,
[data-theme="light"] .lt26-chasseur .form-textarea {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .lt26-chasseur .form-input:hover,
[data-theme="light"] .lt26-chasseur .form-select:hover,
[data-theme="light"] .lt26-chasseur .form-textarea:hover {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .lt26-chasseur .form-input:focus,
[data-theme="light"] .lt26-chasseur .form-select:focus,
[data-theme="light"] .lt26-chasseur .form-textarea:focus {
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(168, 111, 18, 0.16),
    0 6px 22px -8px rgba(168, 111, 18, 0.28);
}

.lt26-chasseur .form-textarea {
  min-height: 140px;
  line-height: 1.55;
  resize: vertical;
}

/* Custom select chevron */
.lt26-chasseur .form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a017' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  cursor: pointer;
}

[data-theme="light"] .lt26-chasseur .form-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a86f12' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
}

/* ==========================================================================
 * FILE UPLOAD — façon "dropzone" élégante
 * ========================================================================== */
.lt26-chasseur input[type="file"].form-input {
  padding: 0;
  height: auto;
  min-height: 56px;
  background: rgba(5, 10, 26, 0.36);
  border: 1px dashed var(--hc-line-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--hc-soft);
  font-size: 0.9rem;
}

.lt26-chasseur input[type="file"].form-input::file-selector-button,
.lt26-chasseur input[type="file"].form-input::-webkit-file-upload-button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hc-gold-2), var(--hc-gold));
  color: #050a1a;
  font-family: Cinzel, serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.2rem;
  margin: 0.4rem 1rem 0.4rem 0.4rem;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.lt26-chasseur input[type="file"].form-input::file-selector-button:hover {
  filter: brightness(1.08);
}

.lt26-chasseur input[type="file"].form-input:hover {
  border-color: var(--hc-gold);
  background: rgba(212, 160, 23, 0.04);
}

[data-theme="light"] .lt26-chasseur input[type="file"].form-input {
  background: rgba(255, 252, 246, 0.6);
  border-color: rgba(168, 111, 18, 0.32);
  color: var(--hc-soft);
}

[data-theme="light"] .lt26-chasseur input[type="file"].form-input:hover {
  background: rgba(168, 111, 18, 0.04);
  border-color: var(--hc-gold);
}

/* ==========================================================================
 * HELP TEXT — icône "i" en médaillon + texte italique
 * ========================================================================== */
.lt26-chasseur .help-text {
  position: relative;
  margin-top: 0.55rem;
  padding-left: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--hc-muted);
  font-style: italic;
}

.lt26-chasseur .help-text::before {
  content: "i";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.16);
  color: var(--hc-gold);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.lt26-chasseur .form-hint,
.lt26-chasseur .inline-flex-label {
  color: var(--hc-soft);
  font-size: 0.9rem;
}

.lt26-chasseur .inline-flex-label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lt26-chasseur .inline-flex-label:hover {
  border-color: var(--hc-line-strong);
  background: rgba(212, 160, 23, 0.08);
}

.lt26-chasseur .inline-flex-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--hc-gold);
  transform: scale(1.1);
}

.lt26-chasseur .inline-flex-label a,
.lt26-chasseur .form-hint a {
  color: var(--hc-gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--hc-line-strong);
}

.lt26-chasseur .inline-flex-label a:hover,
.lt26-chasseur .form-hint a:hover {
  border-bottom-color: var(--hc-gold);
}

/* ==========================================================================
 * SUBMIT — bouton or avec shine traversant au hover
 * ========================================================================== */
.lt26-chasseur .table-submit-row {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.lt26-chasseur .submit-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lt26-chasseur .btn-cancel,
.lt26-chasseur .btn-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--hc-line-strong);
  color: var(--hc-gold);
  background: transparent;
  font-family: Cinzel, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
}

.lt26-chasseur .btn-cancel:hover {
  background: rgba(212, 160, 23, 0.08);
  transform: translateY(-1px);
}

.lt26-chasseur .btn-submit {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hc-gold-2), #b8860b);
  color: #050a1a;
  box-shadow: 0 14px 34px rgba(212, 160, 23, 0.22);
  padding: 1rem 2rem;
}

[data-theme="light"] .lt26-chasseur .btn-submit {
  box-shadow: 0 14px 34px rgba(168, 111, 18, 0.22);
}

.lt26-chasseur .btn-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.lt26-chasseur .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(212, 160, 23, 0.34);
}

.lt26-chasseur .btn-submit:hover::after {
  transform: translateX(110%);
}

.lt26-chasseur .btn-submit:active,
.lt26-chasseur .btn-cancel:active {
  transform: translateY(0);
}

/* ==========================================================================
 * MOBILE — empilement total + bouton plein écran
 * ========================================================================== */
@media (max-width: 760px) {
  .lt26-chasseur .lt-hero {
    padding: calc(var(--gl-nav-h, 64px) + 3rem) 1rem 3rem;
  }

  .lt26-chasseur .lt-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.9rem);
  }

  .lt26-chasseur .lt-section {
    padding-inline: 1rem;
  }

  .lt26-chasseur .lt-card {
    padding: 1.4rem 1.4rem 1.4rem 4rem;
  }

  .lt26-chasseur .estimation-table tr {
    grid-template-columns: 1fr;
    padding: 0.85rem 1.2rem;
  }

  .lt26-chasseur .estimation-table tr:has(.table-section-title) {
    padding: 1.8rem 1.2rem 0.4rem;
  }

  .lt26-chasseur .table-label {
    padding-top: 0;
    padding-bottom: 0.2rem;
  }

  .lt26-chasseur .submit-section {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .lt26-chasseur .btn-cancel,
  .lt26-chasseur .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
 * ACCESSIBILITÉ — couper les transitions sur prefers-reduced-motion
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .lt26-chasseur .form-input,
  .lt26-chasseur .form-select,
  .lt26-chasseur .form-textarea,
  .lt26-chasseur .btn-cancel,
  .lt26-chasseur .btn-submit,
  .lt26-chasseur .inline-flex-label {
    transition: none !important;
  }
  .lt26-chasseur .btn-submit::after { display: none; }
}
