/* Page /nuances, calquée sur « Shop by shade » de Luxy Hair. Fond blanc, une crème pour les cartouches, titres en casse de
   phrase avec un mot d'accent en italique (le geste de Luxy), boutons et liens du calque (.cq-btn, .cq-lien). */

.nu { --clair: #F5EFE6; background: #FFFDFA; padding-bottom: clamp(56px, 6vw, 96px); }
html[data-vue="nuances"] body { background: #FFFDFA; }
.nu h1, .nu h2 { font-weight: 400; color: var(--encre); letter-spacing: -.01em; }
.nu h1 em, .nu h2 em { font-style: italic; }
.nu-titre { margin: 0; text-align: center; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; }
.nu-chapo { margin: 12px auto 0; max-width: 34em; text-align: center; font-size: 15.5px; color: var(--voile); }
.nu-section { padding: clamp(64px, 7vw, 112px) var(--bord) 0; }
.nu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }

/* Ouverture : cartouche de texte à gauche, portrait à droite, comme le « Meet our new shades » de Luxy */
.nu-ouverture { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: min(calc(100svh - 140px), 760px); padding-top: var(--entete); }
.nu-ouverture__texte { position: relative; z-index: 2; margin-left: var(--bord); margin-right: -12%; padding: clamp(32px, 3.6vw, 56px); background: var(--clair); }
.nu-ouverture__texte h1 { margin: 0; font-size: clamp(38px, 3.9vw, 58px); line-height: 1.05; }
.nu-ouverture__texte p { margin: 18px 0 0; max-width: 28em; font-size: 16px; line-height: 1.6; color: var(--encre); }
.nu-ouverture__photo { margin: 0; align-self: stretch; overflow: hidden; background: var(--puits); }
.nu-ouverture__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* Présentation : portrait à gauche, texte à droite */
.nu-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding: clamp(64px, 7vw, 112px) var(--bord) 0; }
.nu-intro__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--puits); }
.nu-intro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.nu-intro__texte { display: grid; justify-items: start; gap: 20px; max-width: 460px; }
.nu-intro__texte h2 { margin: 0; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; }
.nu-intro__texte p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--voile); }

/* Le nuancier : six tuiles de matière (bande horizontale comme chez Luxy) */
.nu-tuiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.nu-tuile { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 6px; }
.nu-tuile__photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--puits); margin-bottom: 8px; }
.nu-tuile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--sortie), transform 1.2s var(--sortie); }
.nu-tuile__portee { opacity: 0; }
.nu-tuile:hover .nu-tuile__portee { opacity: 1; }
.nu-tuile h3 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--encre); }
.nu-tuile p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--voile); }
.nu-tuile .nu-tuile__prix { font-weight: 500; color: var(--cerise); }
.nu-tuile__bouton { margin-top: 10px; min-height: 48px; padding: 0 12px; font-size: 12px; }

/* Trois étapes : onglets à gauche, portrait à droite */
.nu-etapes { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding: clamp(64px, 7vw, 112px) var(--bord) 0; }
.nu-etapes__texte { display: grid; justify-items: start; gap: 26px; max-width: 520px; justify-self: center; }
.nu-etapes__texte h2 { margin: 0; text-align: center; justify-self: center; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; }
.nu-etapes__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--puits); }
.nu-etapes__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.choix-etapes { width: 100%; }
.choix-etapes__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--filet); }
.choix-etapes__liste button { min-height: 44px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--voile); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.choix-etapes__liste button[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--encre); }
.choix-etapes__liste button:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.choix-etapes__panneau { padding-top: 20px; }
.choix-etapes__panneau h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; color: var(--encre); }
.choix-etapes__panneau p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--voile); }

/* Le bandeau « Tu hésites ? » : la photo pleine largeur, le texte posé dessus à gauche */
.nu-bandeau { position: relative; margin-top: clamp(64px, 7vw, 112px); min-height: clamp(420px, 42vw, 620px); display: grid; align-items: center; overflow: hidden; }
.nu-bandeau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.nu-bandeau::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 253, 250, .94) 0%, rgba(255, 253, 250, .8) 34%, rgba(255, 253, 250, 0) 62%); }
.nu-bandeau__texte { position: relative; z-index: 1; display: grid; justify-items: start; gap: 18px; max-width: 460px; margin-left: var(--bord); }
.nu-bandeau__texte h2 { margin: 0; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; }
.nu-bandeau__texte p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--encre); }

/* Les familles : quatre grandes tuiles */
.nu-familles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.nu-famille { display: grid; gap: 6px; color: var(--encre); }
.nu-famille__photo { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--puits); margin-bottom: 8px; }
.nu-famille__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--sortie); }
.nu-famille:hover .nu-famille__photo img { transform: scale(1.04); }
.nu-famille strong { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.nu-famille span:last-child { font-size: 13.5px; color: var(--voile); }

/* Côte à côte : le tableau existant, à la largeur du contenu */
.nu #cote-a-cote .tableau { margin-top: clamp(28px, 3vw, 44px); }

/* La barre d'aide, comme « Unsure what products are right for you? » */
.nu-aide { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin: clamp(64px, 7vw, 112px) var(--bord) 0; padding: 26px 24px; background: var(--clair); }
.nu-aide p { margin: 0; font-size: 18px; color: var(--encre); }
.nu-aide div { display: flex; flex-wrap: wrap; gap: 10px; }
.nu-pastille { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--encre); border-radius: 999px; font-size: 13px; color: var(--encre); background: #FFFDFA; }
.nu-pastille:hover { background: var(--encre); color: var(--porcelaine); }
.nu-pastille { white-space: nowrap; }
.nu-pastille svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 1100px) {
  .nu-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nu-familles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nu-ouverture { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .nu-ouverture__photo { order: -1; height: clamp(320px, 50svh, 440px); }
  .nu-ouverture__texte { margin: -48px var(--marge) 0; padding: 26px 22px; }
  .nu-ouverture__texte h1 { font-size: 34px; }
  .nu-intro, .nu-etapes { grid-template-columns: minmax(0, 1fr); padding-inline: var(--marge); }
  .nu-etapes__photo { order: -1; }
  .nu-section { padding-inline: var(--marge); }
  .nu-tuiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--marge) * -1); padding: 0 var(--marge) 4px; scroll-padding-inline: var(--marge); scrollbar-width: none; }
  .nu-tuiles::-webkit-scrollbar { display: none; }
  .nu-tuile { flex: 0 0 62%; scroll-snap-align: start; }
  .nu-bandeau { min-height: 0; display: block; }
  .nu-bandeau > img { position: static; height: 300px; }
  .nu-bandeau::after { display: none; }
  .nu-bandeau__texte { margin: 0; padding: 26px var(--marge) 0; max-width: none; }
  .nu-aide { margin-inline: var(--marge); }
}
@media (prefers-reduced-motion: reduce) { .nu-tuile__photo img, .nu-famille__photo img { transition: none; } }
