/* Points de contact, rappel et encarts (chantier 3, CRM 2422, 12/2026). Rendu des maquettes v2 validees par Gerard le 02/12/2026.
   Couleurs du theme : or #d5c399, gris #5b6670, creme #f5f0e6. Le bandeau de cookies est mesure par js/points-contact.js :
   --nd-bas-cookies (hauteur qu'il occupe en bas de l'ecran) et --nd-bas-cookies-droite (meme valeur s'il recouvre le cote droit). */

/* ---------- Boutons en bas a droite (ordinateur) ---------- */

.nd-contact-boutons {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--nd-bas-cookies-droite, 0px));
  z-index: 1025; /* sous le header fixe (1030) et le menu mobile, au-dessus de la fleche (1020) */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.nd-contact-boutons > * {
  pointer-events: auto;
}

.nd-contact-bouton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 26px 0 22px;
  border: 1px solid #d5c399;
  border-radius: 28px;
  background: #d5c399;
  color: #5b6670;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nd-contact-bouton i {
  font-size: 20px;
  line-height: 1;
}

.nd-contact-bouton:hover,
.nd-contact-bouton:focus-visible {
  background: #d4c399;
  color: #000;
}

.nd-contact-bouton-rappel {
  background: #fff;
}

.nd-contact-bouton-rappel:hover,
.nd-contact-bouton-rappel:focus-visible {
  background: #f5f0e6;
}

.nd-contact-bouton[hidden],
.nd-contact-pastille {
  display: none;
}

/* La fleche de retour en haut passe au-dessus des deux boutons (un seul sur /demande-de-devis/). */
body.nd-contact .top-button {
  right: 27px;
  bottom: calc(160px + var(--nd-bas-cookies-droite, 0px));
}

body.nd-contact-devis .top-button {
  bottom: calc(92px + var(--nd-bas-cookies-droite, 0px));
}

/* ---------- Pastille et choix (telephone et tablette) ---------- */

.nd-contact-voile {
  position: fixed;
  inset: 0;
  z-index: 1026;
  background: rgba(0, 0, 0, .45);
}

.nd-contact-feuille {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--nd-bas-cookies, 0px);
  z-index: 1027;
  max-height: calc(100vh - var(--nd-bas-cookies, 0px));
  overflow-y: auto;
  padding-bottom: 12px;
  background: #fff;
  color: #000;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .15);
}

.nd-contact-voile[hidden],
.nd-contact-feuille[hidden] {
  display: none;
}

html.nd-contact-ouverte {
  overflow: hidden;
}

.nd-contact-feuille-titre {
  margin: 0;
  padding: 20px 56px 16px 20px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.1rem;
  font-weight: 500;
}

.nd-contact-fermer {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.nd-contact-choix {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  color: #000;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nd-contact-choix:last-child {
  border-bottom: 0;
}

.nd-contact-choix:hover,
.nd-contact-choix:focus-visible {
  background: #f5f0e6;
  color: #000;
}

.nd-contact-choix i {
  flex: 0 0 22px;
  margin-top: 3px;
  color: #5b6670;
  font-size: 18px;
  text-align: center;
}

.nd-contact-choix > span {
  display: block;
}

.nd-contact-choix strong {
  display: block;
  color: #5b6670;
  font-size: .9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nd-contact-choix strong + span {
  display: block;
  margin-top: 2px;
  color: #5b6670;
  font-size: .875rem;
}

@media (max-width: 991.98px) {
  .nd-contact-boutons {
    right: 16px;
    bottom: calc(16px + var(--nd-bas-cookies-droite, 0px));
  }

  .nd-contact-bouton,
  .nd-contact-bouton[hidden] {
    display: none !important;
  }

  .nd-contact-pastille {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid #d5c399;
    border-radius: 50%;
    background: #d5c399;
    color: #5b6670;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    cursor: pointer;
  }

  .nd-contact-pastille i {
    font-size: 22px;
    line-height: 1;
  }

  /* Pas de fleche de retour en haut sur telephone et tablette (decision du 02/12/2026). */
  body.nd-contact .top-button {
    display: none !important;
  }

  /* Menu mobile ouvert : son panneau s'arrete au-dessus du bandeau de cookies, qui le recouvrait a la premiere visite. */
  html body #mega-menu-wrap-main-menu .mega-menu-toggle + #mega-menu-main-menu {
    bottom: var(--nd-bas-cookies, 0px);
  }
}

@media (min-width: 992px) {
  .nd-contact-voile,
  .nd-contact-feuille {
    display: none !important;
  }
}

/* ---------- Fenetre de rappel ---------- */

html.nd-rappel-ouverte {
  overflow: hidden;
}

.nd-rappel {
  width: calc(100% - 32px);
  max-width: 540px;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: #fff;
  color: #000;
}

.nd-rappel::backdrop {
  background: rgba(0, 0, 0, .55);
}

.nd-rappel-contenu {
  position: relative;
  padding: 30px;
}

.nd-rappel-titre {
  margin: 0 40px 10px 0;
  font-size: 1.5rem;
}

.nd-rappel-fermer {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.nd-rappel-intro {
  margin: 0 0 20px !important;
  color: #5b6670;
}

.nd-rappel-form p {
  margin: 0 0 15px;
}

.nd-rappel-form label,
.nd-rappel-creneaux legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.nd-rappel-form .form-control {
  border-radius: 0;
}

.nd-rappel-form abbr {
  text-decoration: none;
  border: 0;
}

.nd-rappel-creneaux {
  min-width: 0;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}

.nd-rappel-creneaux legend {
  float: none;
  width: auto;
  padding: 0;
  font-size: 1rem;
}

.nd-rappel-jour {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.nd-rappel-jour-nom {
  font-size: .95rem;
}

.nd-rappel-court {
  display: none;
}

.nd-rappel-puce {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 !important;
  padding: 6px 10px;
  border: 1px solid #ced4da;
  background: #fff;
  font-size: .9rem;
  font-weight: 400 !important;
  text-align: center;
  cursor: pointer;
}

.nd-rappel-puce input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nd-rappel-puce small {
  display: block;
  color: #5b6670;
  font-size: .78rem;
  font-weight: 400;
}

.nd-rappel-puce:has(input:checked) {
  border-color: #5b6670;
  background: #f5f0e6;
  font-weight: 500 !important;
}

.nd-rappel-puce:has(input:focus-visible) {
  outline: 2px solid #5b6670;
  outline-offset: 2px;
}

.nd-rappel-puce:has(input:disabled) {
  border-style: dashed;
  color: #adb5bd;
  cursor: not-allowed;
}

.nd-rappel-puce:has(input:disabled) small {
  color: #adb5bd;
}

.nd-rappel-asap {
  margin-bottom: 10px !important;
}

.nd-rappel-rgpd {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.nd-rappel-rgpd input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.nd-rappel-rgpd label {
  color: #5b6670;
  font-size: .8rem;
  font-weight: 400;
}

.nd-rappel-erreur,
.nd-rappel-message-champ {
  color: #b00020;
}

.nd-rappel-message-champ {
  display: block;
  margin-top: 4px;
  font-size: .9rem;
}

.nd-rappel-invalide .form-control,
.nd-rappel-invalide input[type="checkbox"] {
  border-color: #b00020;
  outline-color: #b00020;
}

.nd-rappel-envoi {
  margin: 0 !important;
}

.nd-rappel-envoi button {
  width: 100%;
  min-height: 50px;
  padding: 10px 24px;
  border: 1px solid #d5c399;
  border-radius: 0;
  background: #d5c399;
  color: #5b6670;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.nd-rappel-envoi button:hover {
  background: #d4c399;
  color: #000;
}

.nd-rappel-envoi button[disabled] {
  opacity: .6;
  cursor: wait;
}

.nd-rappel-merci {
  padding: 10px 0;
  font-size: 1.1rem;
}

.nd-rappel-merci:focus {
  outline: none;
}

@media (max-width: 991.98px) {
  .nd-rappel-contenu {
    padding: 22px 18px;
  }

  .nd-rappel-titre {
    font-size: 1.3rem;
  }

  .nd-rappel-intro {
    margin-bottom: 14px !important;
  }

  .nd-rappel-form p {
    margin-bottom: 12px;
  }

  .nd-rappel-jour {
    grid-template-columns: 78px 1fr 1fr;
    gap: 6px;
  }

  .nd-rappel-jour-nom {
    font-size: .9rem;
    line-height: 1.2;
  }

  .nd-rappel-long {
    display: none;
  }

  .nd-rappel-court {
    display: inline;
  }
}

/* ---------- Bandeau des categories, encart et appel de fin des articles ---------- */

.nd-contact-titre {
  margin: 0 0 6px !important;
  color: #000;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.nd-contact-bandeau p,
.nd-contact-encart p,
.nd-contact-fin p {
  margin: 0;
  color: #5b6670;
}

.nd-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.nd-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 24px;
  border: 1px solid #d5c399;
  border-radius: 0;
  background: #d5c399;
  color: #5b6670;
  font: inherit;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.nd-contact-btn:hover,
.nd-contact-btn:focus-visible {
  background: #d4c399;
  color: #000;
}

.nd-contact-btn-ligne {
  border-color: #5b6670;
  background: transparent;
}

.nd-contact-btn-ligne:hover,
.nd-contact-btn-ligne:focus-visible {
  border-color: #5b6670;
  background: #5b6670;
  color: #fff;
}

.nd-contact-tel {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  color: #5b6670;
  line-height: 1.3;
  text-decoration: none !important;
}

.nd-contact-tel strong {
  color: #000;
  font-size: 1.05rem;
  font-weight: 500;
}

.nd-contact-tel small {
  font-size: .8rem;
}

.nd-contact-bandeau-col {
  margin-top: 8px;
  margin-bottom: 32px;
}

.nd-contact-bandeau {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  background: #f5f0e6;
}

.nd-contact-bandeau-texte {
  flex: 1 1 auto;
}

.nd-contact-bandeau .nd-contact-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.nd-contact-encart {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
  padding: 22px 24px;
  background: #f5f0e6;
}

.nd-contact-encart-image {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.nd-contact-encart .nd-contact-actions {
  margin-top: 14px;
}

.nd-contact-fin {
  margin: 40px 0;
  padding: 32px;
  background: #5b6670;
  color: #fff;
}

.nd-contact-fin .nd-contact-titre {
  color: #fff;
}

.nd-contact-fin p {
  max-width: 720px;
  color: #e9ecef;
}

.nd-contact-fin .nd-contact-actions {
  margin-top: 20px;
}

.nd-contact-fin .nd-contact-btn-ligne {
  border-color: #fff;
  color: #fff;
}

.nd-contact-fin .nd-contact-btn-ligne:hover,
.nd-contact-fin .nd-contact-btn-ligne:focus-visible {
  background: #fff;
  color: #5b6670;
}

.nd-contact-fin .nd-contact-tel,
.nd-contact-fin .nd-contact-tel strong {
  color: #fff;
}

.nd-contact-fin .nd-contact-tel small {
  color: #e9ecef;
}

@media (max-width: 1199.98px) {
  .nd-contact-bandeau {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

@media (max-width: 991.98px) {
  .nd-contact-bandeau {
    padding: 24px 20px;
  }

  .nd-contact-actions,
  .nd-contact-bandeau .nd-contact-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .nd-contact-actions .nd-contact-tel {
    align-items: center;
    margin-top: 4px;
  }

  .nd-contact-btn {
    white-space: normal;
  }

  .nd-contact-encart {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .nd-contact-encart-image {
    display: none;
  }

  .nd-contact-fin {
    padding: 24px 20px;
  }
}
