/* Vitrine des supports NFC : une mosaïque de visuels en ouverture, puis les familles de produits et leurs prix. */

.nfc-ouverture {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  background: #14120f;
  color: #f4f0e6;
  overflow: hidden;
}

.nfc-mosaique {
  position: absolute;
  inset: -12% -8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  transform: rotate(-9deg);
  opacity: 0.55;
  pointer-events: none;
}

.nfc-mosaique img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8);
}

.nfc-ouverture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20, 18, 15, 0.97) 0%, rgba(20, 18, 15, 0.9) 42%, rgba(20, 18, 15, 0.55) 70%, rgba(20, 18, 15, 0.35) 100%);
}

.nfc-ouverture-cadre {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .nfc-ouverture-cadre {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  }
}

.nfc-ouverture-texte {
  position: relative;
  max-width: 640px;
  text-align: left;
}

.nfc-ouverture-photo {
  margin: 0;
  position: relative;
  transform: rotate(2deg);
}

.nfc-ouverture-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(244, 240, 230, 0.12);
}

.nfc-surtitre {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4a35a;
}

.nfc-ouverture h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f4f0e6;
}

.nfc-prix {
  margin: 0 auto 28px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.85);
}

.nfc-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.nfc-ouverture .nfc-boutons {
  justify-content: flex-start;
}

.nfc-ouverture .bouton {
  background: #c4a35a;
  color: #14120f;
  border-color: #c4a35a;
}

.nfc-ouverture .nfc-bouton-clair {
  background: transparent;
  color: #f4f0e6;
  border: 1px solid rgba(244, 240, 230, 0.5);
}

.nfc-ouverture .nfc-bouton-clair:hover {
  background: rgba(244, 240, 230, 0.1);
}

.nfc-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--texte-discret);
}

.nfc-ouverture .nfc-note {
  color: rgba(244, 240, 230, 0.65);
}

.nfc-section {
  padding: 72px 20px;
}

.nfc-section-claire {
  background: var(--fond-2);
}

.nfc-cadre {
  max-width: 1120px;
  margin: 0 auto;
}

.nfc-cadre-etroit {
  max-width: 760px;
}

.nfc-section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nfc-chapeau {
  max-width: 70ch;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--texte-discret);
}

.nfc-familles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.nfc-famille {
  display: block;
  padding: 18px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--fond-2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nfc-famille:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre);
}

.nfc-famille {
  display: flex;
  flex-direction: column;
}

.nfc-famille img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--fond);
}

.nfc-famille .nfc-famille-photo {
  height: 150px;
  max-height: none;
  object-fit: cover;
}

.nfc-famille b {
  display: block;
  min-height: 2.6em;
  font-size: 17px;
  line-height: 1.3;
}

.nfc-famille span {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: #8a6c2c;
}

.nfc-famille p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texte-discret);
}

.nfc-comment {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .nfc-comment {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.nfc-comment-photo {
  margin: 0;
}

.nfc-comment-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
}

.nfc-trois {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.nfc-trois b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.nfc-trois p {
  margin: 0;
  line-height: 1.55;
  color: var(--texte-discret);
}

.nfc-deux {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .nfc-deux {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.nfc-deux .nfc-boutons {
  justify-content: flex-start;
}

.nfc-tarifs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.nfc-tarifs td {
  padding: 12px 0;
  border-bottom: 1px solid var(--filet);
  vertical-align: top;
}

.nfc-tarifs td span {
  font-size: 14px;
  color: var(--texte-discret);
}

.nfc-tarif {
  text-align: right;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nfc-tarif small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--texte-discret);
}

.nfc-galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nfc-galerie figure {
  margin: 0;
}

.nfc-galerie img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
}

.nfc-galerie figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--texte-discret);
}

.nfc-galerie-photos {
  margin-bottom: 18px;
}

.nfc-galerie-photos img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.nfc-galerie-photos figure:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

.nfc-galerie-photos figure:first-child:nth-last-child(odd) img {
  aspect-ratio: 16 / 9;
}

/* Un rendu du créateur de visuel, à côté des photos : centré dans un cadre de la même hauteur. */
.nfc-galerie-photos .nfc-rendu div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, #f6f3ec, #e7e2d5);
}

.nfc-galerie-photos .nfc-rendu img,
.nfc-galerie-photos figure.nfc-rendu:first-child:nth-last-child(odd) img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 212px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.22));
}

.nfc-galerie-photos figure.nfc-rendu:first-child:nth-last-child(odd) div {
  height: 320px;
}

.nfc-galerie-photos figure.nfc-rendu:first-child:nth-last-child(odd) img {
  max-height: 272px;
}

.nfc-galerie-modeles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nfc-galerie-modeles figcaption {
  font-size: 12px;
}

.nfc-questions details {
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
}

.nfc-questions summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
}

.nfc-questions p {
  margin: 10px 0 0;
  line-height: 1.55;
  color: var(--texte-discret);
}

@media (max-width: 640px) {
  .nfc-ouverture {
    min-height: 0;
    padding: 56px 16px;
  }

  .nfc-mosaique {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .nfc-section {
    padding: 48px 16px;
  }

  .nfc-galerie {
    grid-template-columns: 1fr;
  }

  .nfc-galerie-modeles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nfc-ouverture-photo {
    transform: none;
  }

  .nfc-ouverture::before {
    background: rgba(20, 18, 15, 0.88);
  }
}
