/* modules/chequenotice/assets/css/notice.css — page publique « Le Chèque de Ville » (FRONT-CONTRACT §48.1), chargée APRÈS
   site.css. Une colonne de 46rem au plus, téléphone d'abord ; couleurs du site (rose, violet ; vert en décor seulement) ;
   toutes les classes commencent par « nc- ». La couleur ne porte jamais seule une réponse : signe + mot. */

.nc-page {
  --nc-orange: #f08a24;
  --nc-orange-doux: #fdf0e1;
  --nc-orange-encre: #8a4a06;
  --nc-ombre: 0 0 0 1px rgba(42, 24, 46, .05), 0 1px 2px rgba(42, 24, 46, .06), 0 3px 8px -2px rgba(42, 24, 46, .08);
  color: var(--encre);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.nc-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nc-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nc-colonne {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: var(--gouttiere, 16px);
  padding-right: var(--gouttiere, 16px);
}

.nc-picto {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── 1. Le haut : la question, la phrase, LE bouton, la photo ─────────────────── */
.nc-haut {
  padding: 28px 0 26px;
  text-align: center;
  background: linear-gradient(var(--bande), var(--fond));
}

.nc-surtitre {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--rose-doux);
  color: var(--rose-fonce);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site .nc-titre {
  margin: 0 0 10px;
  font-family: var(--police-texte);
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.nc-phrase {
  max-width: 30rem;
  margin: 0 auto 20px;
  color: var(--encre-douce);
}

.site .nc-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 26rem;
  min-height: 52px;
  padding: .75rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .07em;
}

.nc-fleche,
.nc-loupe {
  flex: none;
  width: 22px;
  height: 22px;
}

.nc-photo {
  position: relative;
  max-width: 26rem;
  margin: 26px auto 0;
}

.nc-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px -12px rgba(42, 24, 46, .45), var(--nc-ombre);
}

.nc-repere,
.nc-pastille {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--violet);
  color: #ffffff;
  font-size: .8rem;
  font-weight: 700;
}

.nc-repere {
  position: absolute;
  margin: -13px 0 0 -13px;
  box-shadow: 0 0 0 2.5px #ffffff;
}

.nc-repere--1 {
  left: 79.5%;
  top: 45%;
}

.nc-repere--2 {
  left: 72.5%;
  top: 94.5%;
}

.nc-reperes {
  display: grid;
  gap: 8px;
  max-width: 26rem;
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.nc-reperes li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nc-pastille {
  flex: none;
  width: 28px;
  height: 28px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.nc-section {
  padding: 30px 0;
}

.nc-section + .nc-section {
  border-top: 1px solid var(--trait);
}

.site .nc-h2 {
  margin: 0 0 18px;
  font-family: var(--police-texte);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.site .nc-h3 {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── 2. Comment ça marche : étapes numérotées ─────────────────────────────── */
.nc-etapes__liste {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nc-etape {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--fond);
  box-shadow: var(--nc-ombre);
}

.nc-etape__picto {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 15px;
  border-radius: 50%;
  background: var(--violet-doux);
  color: var(--violet-fonce);
}

.nc-etape__numero {
  position: absolute;
  top: -4px;
  left: -4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose);
  color: #ffffff;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--fond);
}

.nc-etape__texte p {
  margin: 2px 0 0;
  color: var(--encre-douce);
  font-size: .98rem;
}

/* ── 3. Bon à savoir : question → réponse → détail ─────────────────────────── */
.nc-cartes {
  display: grid;
  gap: 12px;
}

.nc-carte {
  display: grid;
  align-content: start;                                              /* carte plus haute que son contenu : rien ne s'étire */
  gap: 10px;
  min-width: 0;
  padding: 16px 16px 18px;
  border: 2px solid var(--trait);
  border-radius: 16px;
  background: var(--fond);
}

.nc-carte p {
  margin: 0;
}

.nc-reponse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.nc-reponse__signe {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
}

.nc-detail {
  color: var(--encre-douce);
  font-size: .98rem;
}

.nc-carte--oui {
  border-color: #dfe9a8;
  background: linear-gradient(var(--vert-doux), var(--fond) 70%);
}

.nc-carte--oui .nc-reponse {
  background: #e3ee9e;
  color: var(--vert-encre);
}

.nc-carte--oui .nc-reponse__signe {
  background: var(--vert);
  color: #2f3700;
}

.nc-carte--non {
  border-color: #f7c3da;
  background: linear-gradient(var(--rose-doux), var(--fond) 70%);
}

.nc-carte--non .nc-reponse {
  background: #fbd2e4;
  color: var(--rose-fonce);
}

.nc-carte--non .nc-reponse__signe {
  background: var(--rose);
  color: #ffffff;
}

.nc-carte--info {
  border-color: #dcc6e8;
  background: linear-gradient(var(--violet-doux), var(--fond) 70%);
}

.nc-carte--info .nc-reponse {
  background: #e6d3f0;
  color: var(--violet-fonce);
}

.nc-carte--info .nc-reponse__signe {
  background: var(--violet);
  color: #ffffff;
}

.nc-carte--attention {
  border-color: #f6d3ab;
  background: linear-gradient(var(--nc-orange-doux), var(--fond) 70%);
}

.nc-carte--attention .nc-reponse {
  background: #fbe0bf;
  color: var(--nc-orange-encre);
}

.nc-carte--attention .nc-reponse__signe {
  background: var(--nc-orange);
  color: #ffffff;
}

.nc-exemple {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px dashed #f0a9c9;
  border-radius: 12px;
  background: var(--fond);
  font-size: .92rem;
}

.nc-exemple__calcul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--encre-douce);
  font-weight: 700;
}

.nc-mini {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 26px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 700;
}

.nc-mini--cheque {
  background: var(--rose);
  color: #ffffff;
}

.nc-mini--autre {
  border: 1.5px solid var(--encre-douce);
  color: var(--encre);
}

.nc-exemple__note {
  color: var(--encre-douce);
  font-size: .86rem;
}

/* ── 4. Vos questions ─────────────────────────────────────────────────────── */
.nc-questions__liste {
  display: grid;
  gap: 10px;
}

.nc-question {
  border-radius: 14px;
  background: var(--bande);
}

.nc-question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nc-question summary::-webkit-details-marker {
  display: none;
}

.nc-chevron {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--violet);
  transition: transform .2s;
}

.nc-question[open] .nc-chevron {
  transform: rotate(180deg);
}

.nc-question p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--encre-douce);
}

/* ── 5. Le bas ────────────────────────────────────────────────────────────── */
.nc-bas {
  text-align: center;
}

.nc-contact {
  margin: 22px 0 0;
  color: var(--encre-douce);
}

.nc-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;                                                  /* cible de 44 px, même prise dans la phrase */
}

.nc-verifier-ligne {
  margin: 10px 0 0;
}

.nc-verifier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--violet-fonce);
  font-size: .95rem;
}

.nc-verifier .nc-loupe {
  width: 18px;
  height: 18px;
}

@media (min-width: 640px) {
  .nc-etapes__liste {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));      /* 1 à 3 étapes : colonnes égales */
  }

  .nc-etapes__liste--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));                 /* 4 étapes : 2 × 2, jamais 3 + 1 */
  }

  .nc-etape {
    grid-template-columns: 1fr;
    align-content: start;                                            /* pictogramme et titre à la même hauteur partout */
    justify-items: center;
    text-align: center;
  }

  .nc-cartes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .nc-etapes__liste--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nc-chevron {
    transition: none;
  }
}
