/* =========================================================
   NIKO TOITURE — Formulaire de devis en panneau latéral
   Couleurs reprises du site : rouge #EA1826 / orange #F7A209
   ========================================================= */

:root{
  --nt-red: #EA1826;
  --nt-red-dark: #c31220;
  --nt-orange: #F7A209;
  --nt-dark: #131313;
  --nt-grey: #7A7A7A;
}

/* ---------- Bouton(s) déclencheurs ---------- */
.nt-devis-trigger{
  cursor: pointer;
}

/* ---------- Overlay ---------- */
.nt-devis-overlay{
  position: fixed;
  inset: 0;
  background: rgba(19,19,19,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  z-index: 99998;
}
.nt-devis-overlay.is-open{
  opacity: 1;
  visibility: visible;
}

/* ---------- Panneau (drawer) ---------- */
.nt-devis-panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 440px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,.25);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", Arial, sans-serif;
}
.nt-devis-panel.is-open{
  transform: translateX(0);
}

.nt-devis-header{
  background: var(--nt-red);
  color: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.nt-devis-header h3{
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.nt-devis-header p{
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.nt-devis-close{
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease;
}
.nt-devis-close:hover{
  background: rgba(255,255,255,.3);
}

.nt-devis-body{
  padding: 22px 24px 30px;
  overflow-y: auto;
  flex: 1;
}

.nt-devis-field{
  margin-bottom: 16px;
}
.nt-devis-field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-dark);
  margin-bottom: 6px;
}
.nt-devis-field label .req{
  color: var(--nt-red);
}
.nt-devis-field input[type="text"],
.nt-devis-field input[type="tel"],
.nt-devis-field input[type="email"],
.nt-devis-field select,
.nt-devis-field textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--nt-dark);
  background: #fafafa;
  transition: border-color .2s ease, background .2s ease;
}
.nt-devis-field input:focus,
.nt-devis-field select:focus,
.nt-devis-field textarea:focus{
  outline: none;
  border-color: var(--nt-red);
  background: #fff;
}
.nt-devis-field textarea{
  resize: vertical;
  min-height: 90px;
}
.nt-devis-row{
  display: flex;
  gap: 12px;
}
.nt-devis-row .nt-devis-field{
  flex: 1;
}

.nt-devis-consent{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--nt-grey);
  margin-bottom: 18px;
}
.nt-devis-consent input{
  margin-top: 3px;
}

/* Piège anti-spam invisible (honeypot) */
.nt-devis-hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nt-devis-submit{
  width: 100%;
  border: none;
  background: var(--nt-red);
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.nt-devis-submit:hover{
  background: var(--nt-red-dark);
}
.nt-devis-submit:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.nt-devis-msg{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  display: none;
}
.nt-devis-msg.is-success{
  display: block;
  background: #e8f7ea;
  color: #1e7b32;
  border: 1px solid #bfe8c6;
}
.nt-devis-msg.is-error{
  display: block;
  background: #fdeceb;
  color: var(--nt-red-dark);
  border: 1px solid #f6c3c0;
}

/* ---------- Écran de confirmation (succès) ---------- */
.nt-devis-success{
  text-align: center;
  padding: 30px 10px 10px;
}
.nt-devis-success-icon{
  width: 62px;
  height: 62px;
  line-height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f7ea;
  color: #1e7b32;
  font-size: 30px;
  font-weight: 700;
}
.nt-devis-success h4{
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--nt-dark);
}
.nt-devis-success-box{
  background: #e8f7ea;
  color: #1e7b32;
  border: 1px solid #bfe8c6;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 22px;
  text-align: left;
}
.nt-devis-success p{
  background: #e8f7ea;
  color: #1e7b32;
  border: 1px solid #bfe8c6;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 22px;
}
.nt-devis-submit-alt{
  background: #fff;
  color: var(--nt-dark);
  border: 1px solid #dcdcdc;
}
.nt-devis-submit-alt:hover{
  background: #f5f5f5;
}

@media (max-width: 480px){
  .nt-devis-panel{
    width: 100%;
    max-width: 100%;
  }
  .nt-devis-row{
    flex-direction: column;
    gap: 0;
  }
}
