/**
 * Naturabox — page « J'ai une Naturabox » (module eticket, contrôleur havenaturabox ;
 * gabarit modules/eticket/views/templates/front/havenaturabox/index.tpl du thème).
 */
.nb-have {
  margin-bottom: 3rem;
}

/* ---------- Bandeau ---------- */
.nb-have__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  margin: .5rem 0 2rem;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background-color: var(--nb-green-dark);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.nb-have__hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(25, 45, 23, .82) 0%, rgba(25, 45, 23, .55) 45%, rgba(25, 45, 23, .05) 80%);
}

.nb-have__hero-inner {
  max-width: 620px;
  padding: 2.5rem;
}

.nb-have .nb-have__eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  font-family: var(--nb-font-body);
  line-height: 1.4;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nb-green-dark);
  background: var(--nb-yellow);
}

.nb-have .nb-have__hero-title {
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.nb-have__hero-title span {
  color: #c8e6d2;
}

.nb-have__hero-text {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

@media (max-width: 767.98px) {
  .nb-have__hero {
    min-height: 300px;
    border-radius: 18px;
  }

  .nb-have__hero::before {
    background: linear-gradient(0deg, rgba(25, 45, 23, .88) 0%, rgba(25, 45, 23, .55) 60%, rgba(25, 45, 23, .15) 100%);
  }

  .nb-have__hero-inner {
    padding: 1.5rem 1.25rem;
  }

  .nb-have__hero-text {
    font-size: .9375rem;
  }
}

/* ---------- Visiteur : deux choix ---------- */
.nb-have__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .nb-have__choices {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

.nb-have__choice {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  overflow: hidden;
  border: 1px solid var(--nb-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px -28px rgba(25, 45, 23, .35);
  transition: box-shadow .25s ease, transform .25s ease;
}

.nb-have__choice:hover {
  box-shadow: 0 18px 40px -22px rgba(25, 45, 23, .4);
  transform: translateY(-3px);
}

.nb-have__choice-media {
  background: var(--nb-soft);
}

.nb-have__choice-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nb-have__choice-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
}

.nb-have__choice-title {
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nb-title);
}

.nb-have__choice-body p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--nb-text);
}

.nb-have__choice-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.nb-have__steps {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nbstep;
  font-size: .9375rem;
  color: var(--nb-text);
}

.nb-have__steps li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  counter-increment: nbstep;
}

.nb-have__steps li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
  content: counter(nbstep);
  color: #fff;
  background: var(--nb-primary);
}

@media (max-width: 991.98px) and (min-width: 768px), (max-width: 420px) {
  .nb-have__choice {
    grid-template-columns: minmax(0, 1fr);
  }

  .nb-have__choice-media img {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

/* ---------- Client connecté : formulaire + aide ---------- */
.nb-have__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .nb-have__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

.nb-have__card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--nb-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px -28px rgba(25, 45, 23, .35);
}

@media (max-width: 575.98px) {
  .nb-have__card {
    padding: 1.25rem;
  }
}

.nb-have__form-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nb-have__form-ic {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--nb-green-dark);
  background: linear-gradient(135deg, #fbe7a8, var(--nb-yellow));
}

.nb-have__card-title {
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--nb-title);
}

.nb-have__scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: 999px;
}

/* code coffret (plus large) + code PIN (plus spécifique que la grille commune de forms.css, chargée après) */
.nb-have__form .nb-form__grid.nb-have__codes {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.nb-have__form .form-control {
  min-height: 56px;
  font-size: 1.125rem;
  letter-spacing: .06em;
}

.nb-have__form .nb-have__code {
  text-transform: uppercase;
}

.nb-have__form .form-control::placeholder {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 575.98px) {
  .nb-have__form .nb-form__grid.nb-have__codes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* « Je suis le bénéficiaire » : interrupteur */
.nb-have__switch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--nb-ink);
  background: #f6f4ee;
  cursor: pointer;
}

.nb-have__switch input {
  position: absolute;
  opacity: 0;
}

.nb-have__switch-ui {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin-top: .05rem;
  border-radius: 999px;
  background: #cfd5d1;
  transition: background .15s ease;
}

.nb-have__switch-ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}

.nb-have__switch input:checked + .nb-have__switch-ui {
  background: var(--nb-primary);
}

.nb-have__switch input:checked + .nb-have__switch-ui::after {
  transform: translateX(18px);
}

.nb-have__switch input:focus-visible + .nb-have__switch-ui {
  box-shadow: 0 0 0 4px rgba(73, 156, 111, .2);
}

.nb-have__switch small {
  display: block;
  margin-top: .15rem;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--nb-muted);
}

.nb-have__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.nb-have__side {
  display: grid;
  gap: 1rem;
}

.nb-have__help {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
}

.nb-have__help-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--nb-primary);
  background: #eef5f0;
}

.nb-have__help-title {
  margin: 0 0 .25rem;
  font-weight: 700;
  color: var(--nb-ink);
}

.nb-have__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--nb-primary);
  text-decoration: none;
}

.nb-have__link:hover {
  text-decoration: underline;
}

.nb-have__link .material-icons {
  font-size: 18px;
}

.nb-have__modal {
  border-radius: 20px;
}

/* ---------- Coffret reconnu ---------- */
.nb-have__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--nb-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px -28px rgba(25, 45, 23, .35);
}

@media (min-width: 768px) {
  .nb-have__result {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 2rem;
    padding: 2rem;
  }
}

.nb-have__result-media img {
  border-radius: 16px;
}

.nb-have__kicker {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0 0 .5rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nb-green-dark);
  background: #eef5f0;
}

.nb-have__kicker .material-icons {
  font-size: 18px;
  color: var(--nb-primary);
}

.nb-have__result-title {
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 800;
  color: var(--nb-title);
}

.nb-have__expire {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: .5rem 0 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--nb-muted);
}

.nb-have__expire .material-icons {
  font-size: 19px;
}

.nb-have__notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--nb-primary);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--nb-text);
  background: #f3f8f5;
}

.nb-have__notice p:last-child {
  margin-bottom: 0;
}

.nb-have__notice a:not(.btn) {
  font-weight: 600;
  color: var(--nb-primary);
}

.nb-have__result-body > .btn {
  margin-bottom: 1rem;
}

.nb-have__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nb-line);
}
