/* =========================================================
   KolorLab — Page-specific styles
   ========================================================= */

/* ===== Pages légales (mentions légales / confidentialité) ===== */
.legal-page { padding-top: clamp(120px, 16vh, 180px); }
.legal-page .eyebrow { margin-bottom: 14px; }
.legal-page > .wrap > h1 { margin-bottom: 12px; }
.legal-page .lead { max-width: 640px; margin-bottom: 40px; }
.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 40px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 20px; margin: 6px 0 16px; }
.legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.legal a { border-bottom: 1px solid var(--ink-soft); }

/* liens légaux dans le pied de page */
.foot-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-legal a { border-bottom: 1px solid transparent; }
.foot-legal a:hover { border-color: var(--ink-soft); }

/* ===== HERO (home / blog / palette / contact) ===== */
.hero {
  padding-top: clamp(110px, 16vh, 200px);
  padding-bottom: clamp(90px, 12vh, 160px);
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ===== HERO cursor trail (home only) ===== */
.trail-pill {
  position: absolute;
  pointer-events: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: trail-pop 220ms cubic-bezier(.2,.7,.2,1) forwards;
  z-index: 0;
}

@keyframes trail-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== HERO grille de pastilles révélées au survol (accueil, desktop) ===== */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  pointer-events: none;   /* purement visuel : le survol est calculé en JS */
}
.hero-cell { display: flex; align-items: center; justify-content: center; }
.hero-dot {
  width: clamp(26px, 3.4vw, 52px);
  height: clamp(26px, 3.4vw, 52px);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.2);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hero-cell.on .hero-dot {
  opacity: 1;
  transform: scale(1);
  transition: opacity .16s ease, transform .26s cubic-bezier(.34, 1.4, .6, 1);
}

.hero .h1 {
  margin-bottom: 40px
}
/* wizard : H1 plus compact pour limiter l'espace vide */
.wiz .wiz-h1 {
  font-size: clamp(40px, 7.4vw, 100px);
  line-height: .98;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.hero-actions .btn {
  padding: 20px 38px;
  font-size: 15px
}

/* ===== HOME video block ===== */
.video-block {
  position: relative;
  background: var(--black);
  border-radius: 6px;
  aspect-ratio: 16/8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-block .video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Une fois lancée : on masque les liens d'angle */
.video-block.playing .corner-links {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Curseur personnalisé « Play » sur la vidéo */
.video-block .video-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: var(--orange);
  
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.video-block .video-cursor .tri {
  width: 0;
  height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* Desktop : on cache le curseur natif, le curseur custom suit la souris.
   Au survol, le cercle apparaît en grandissant (de scale .4 → 1). */
.video-block.video-fine { cursor: none; }
.video-block.video-fine .video-cursor {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
}
.video-block.video-fine.cur-on .video-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lecture en cours : curseur natif rétabli (contrôles), curseur custom masqué */
.video-block.playing { cursor: auto; }
.video-block.playing .video-cursor {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(.4) !important;
}

.video-block .corner-links {
  position: absolute;
  top: 24px;
  right: 30px;
  display: flex;
  gap: 26px;
  color: #fff;
  font-size: 13px;
  opacity: .85;
  z-index: 2;
  transition: opacity .3s ease, visibility .3s ease;
}

.video-block .corner-links a {
  border-bottom: 1px solid transparent
}

.video-block .corner-links a:hover {
  border-color: #fff
}

.lab-band {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: clamp(40px, 7vw, 90px) var(--pad);
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.lab-band p {
  max-width: 560px;
  margin: 22px 0 30px;
  color: var(--ink-soft);
  font-size: 15px
}

/* Aperçu statique du salon (illustration de la démo Concept) */
.lab-salon {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.lab-salon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1700 / 1162;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.lab-salon:hover img { transform: scale(1.03); }
.lab-dot {
  position: absolute;
  width: clamp(16px, 2.1vw, 26px);
  height: clamp(16px, 2.1vw, 26px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

@media (max-width: 860px) {
  .lab-band { grid-template-columns: 1fr; gap: 30px; }
}

/* ===== HOME trend cards ===== */
.trend-card .ph {
  background: #dadad8;
  border-radius: 18px;
  aspect-ratio: 16/11
}

.trend-card .card-meta {
  margin-top: 18px
}

.trend-card h4 {
  font-size: 19px
}

/* ===== CONCEPT ===== */
.concept-intro {
  align-items: stretch;
}

.concept-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.concept-head .eyebrow {
  margin-bottom: 22px;
}

.concept-intro .h1 {
  margin-bottom: 26px;
}

.concept-hero .lead {
  max-width: 480px;
}

.concept-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.concept-tags span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Visuel couleur (accordéon, écho du nuancier KolorLab) */
.concept-visual {
  display: flex;
  gap: 10px;
  height: clamp(300px, 40vw, 500px);
  width: 100%;
}

.concept-visual span {
  flex: 1;
  border-radius: 16px;
  transition: flex .5s cubic-bezier(.2, .7, .2, 1);
}

/* Missions en cartes numérotées */
.concept-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
}

.concept-card {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 42px);
}

.concept-card .num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 14px;
}

.concept-card h3 {
  margin-bottom: 12px;
}

.concept-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ===== CONCEPT — salon recolorable (drag & drop, chroma key HSL) ===== */
.salon-section {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
}

.salon {
  position: relative;
  width: 100%;
  min-width: 0;          /* la barre de palette (flex) ne doit pas élargir l'image hors écran */
  line-height: 0;
  touch-action: pan-y;
  user-select: none;
}

.salon-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  
}

.salon-text .eyebrow {
  margin-bottom: 16px;
}

.salon-text h2 {
  margin-bottom: 18px;
}

.salon-text p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 440px;
}

.salon-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.salon-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.salon-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  transition: transform .2s cubic-bezier(.34, 1.45, .6, 1);
}

.salon-dot:hover {
  transform: scale(1.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.salon-dot:active { cursor: grabbing; }

.salon-ghost {
  position: fixed;
  z-index: 9999;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .92);
  
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .92;
}

.salon-reset {
  margin-top: 8px;
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease;
}

.salon-reset:hover { border-color: var(--ink); }

/* ===== MOBILE — barre de palette sous l'image (choisir une couleur, puis taper un objet) ===== */
.salon-palette { display: none; }   /* desktop : masquée (on garde les pastilles glissables) */
.salon-swatch {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(0, 0, 0, .06);
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s cubic-bezier(.34, 1.45, .6, 1), box-shadow .15s ease, border-color .15s ease;
}
.salon-swatch:active { transform: scale(.94); }
.salon-swatch[aria-pressed="true"] {
  border-color: var(--ink);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2), inset 0 0 0 2px #fff;
}
/* bouton Réinitialiser placé SOUS la rangée de couleurs (créé en JS sur mobile) */
.salon-reset-m {
  display: none;
  margin: 14px auto 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
}
.salon-reset-m:active { background: var(--bg-soft); }

/* textes d'aide selon l'appareil (mobile : consignes de tap, desktop : glisser-déposer) */
.salon-only-mobile { display: none; }

/* Affichée sur tactile OU écran étroit (mêmes conditions que le gate JS `MOBILE`) */
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .salon-chips { display: none; }   /* plus de dots sur l'image → image dégagée */
  .salon-palette {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 4px 2px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .salon-palette::-webkit-scrollbar { display: none; }
  .salon-swatch { scroll-snap-align: center; }
  .salon-reset-m { display: block; }
  /* consigne : titre + instructions AVANT l'image pour comprendre quoi faire */
  .salon-text { order: -1; }
  .salon-only-desktop { display: none; }
  .salon-only-mobile { display: block; }
  .salon-text .salon-reset { display: none; }   /* reset déplacé sous les couleurs */
}

@media (hover: hover) and (pointer: fine) {
  .concept-visual:hover span { flex: .7; }
  .concept-visual span:hover { flex: 2.4; }
}

@media (max-width: 860px) {
  .concept-hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .concept-visual { display: none; }
  .concept-cols { grid-template-columns: 1fr; }
  .salon-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  /* les 2 CTA côte à côte */
  .concept-cta { flex-wrap: nowrap; gap: 10px; }
  .concept-cta .btn { flex: 1; padding: 13px 12px; font-size: 12px; white-space: normal; text-align: center; }
}

.mat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
  margin-top: 38px
}

.concept-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap
}

.center {
  text-align: center
}

/* Titre de palette « découpé » sur le paysage du nuancier (background-clip: text) */
.nua-mask {
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== NUANCIERS list ===== */
.nuancier-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 22px;
  padding: 38px 44px;
  margin-bottom: 24px
}

.nuancier-row .swatch {
  aspect-ratio: 5/2.6;
  max-width: 330px;
  border-radius: 14px
}

.nuancier-row .meta .date {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px
}

.nuancier-row .meta h3 {
  text-align: center
}

.nuancier-row .acts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch
}

.nuancier-cta {
  text-align: center;
  padding: 80px 0 0
}

.nuancier-cta .h2 {
  color: var(--orange);
  margin-bottom: 18px
}

.nuancier-cta p {
  color: var(--ink-soft);
  margin-bottom: 28px
}

/* ===== 5 palettes secondaires — mêmes cartes que l'accueil, centrées, cliquables ===== */
.nua-more { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.nua-more-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.nua-more-head .eyebrow { margin-bottom: 12px; }
.nua-more-head .h2 { font-size: clamp(26px, 3.4vw, 40px); }
.nua-more-head p { margin-top: 12px; }
.nua-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  max-width: 1180px;
  margin: 0 auto;
}
/* la carte entière est cliquable (→ configurateur avec la palette pré-sélectionnée) */
.nua-card { cursor: pointer; color: inherit; text-decoration: none; transition: transform .25s ease; }
.nua-card:hover { transform: translateY(-4px); }
.nua-card .card-head h4 { font-size: 16px; }
.nua-card .view-eye { flex: none; }

/* ===== NUANCIERS — titre : un grand 5 sur deux lignes ===== */
.nua-title {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  letter-spacing: -.03em;
}

.nua-five {
  font-size: clamp(150px, 30vw, 320px);
  line-height: .78;
  font-weight: 800;
}

.nua-words {
  font-size: clamp(44px, 10vw, 138px);
  line-height: 1;
  font-weight: 800;
}

/* ===== NUANCIERS — une section par nuancier ===== */
.nua {
  padding-top: clamp(64px, 9vw, 130px);
}

.nua + .nua {
  border-top: 1px solid var(--line);
}

.nua-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* En alt, on inverse aussi les largeurs pour que la palette reste dans la
   colonne large (sinon les palettes n'ont pas toutes la même taille) */
.nua.alt .nua-grid { grid-template-columns: 1.18fr .82fr; }
.nua.alt .nua-text { order: 2; }

.nua-text .eyebrow { display: block; }

.nua-text h2 { margin: 16px 0 16px; }

.nua-text p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 420px;
}

.nua-acts {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* Palette interactive : les bandes couvrent le paysage ; l'œil lève le rideau
   (composant réutilisé de l'accueil) */
.nua-pal { position: relative; }

.nua-pal .swatch {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  
}

.nua-pal .swatch span::before {
  content: "";
  position: absolute;
  inset: 0 0 20% 0; /* les bandes ne couvrent que 80% : 20% de l'image visible en bas */
  background: var(--c);
  z-index: 0;
  transition: transform .55s cubic-bezier(.22, .8, .26, 1);
}

/* fermeture (base) — cascade droite → gauche */
.nua-pal .swatch span:nth-of-type(5)::before { transition-delay: 0s; }
.nua-pal .swatch span:nth-of-type(4)::before { transition-delay: .05s; }
.nua-pal .swatch span:nth-of-type(3)::before { transition-delay: .1s; }
.nua-pal .swatch span:nth-of-type(2)::before { transition-delay: .15s; }
.nua-pal .swatch span:nth-of-type(1)::before { transition-delay: .2s; }

/* ouverture (œil actif) */
.nua-pal.reveal-on .swatch > span::before { transform: translateY(-100%); }
.nua-pal.reveal-on .swatch > span:nth-of-type(5)::before { transition-delay: 0s; }
.nua-pal.reveal-on .swatch > span:nth-of-type(4)::before { transition-delay: .05s; }
.nua-pal.reveal-on .swatch > span:nth-of-type(3)::before { transition-delay: .1s; }
.nua-pal.reveal-on .swatch > span:nth-of-type(2)::before { transition-delay: .15s; }
.nua-pal.reveal-on .swatch > span:nth-of-type(1)::before { transition-delay: .2s; }

.nua-pal .view-eye {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  z-index: 3;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.nua-pal .view-eye:hover { transform: scale(1.07); }
.nua-pal .view-eye.active { background: var(--orange); color: #fff; }
.nua-pal .view-eye svg { width: 22px; height: 22px; }

/* Paysage révélé : pas d'expansion ni de code hex au survol des bandes */
.nua-pal.reveal-on .swatch:hover > span { flex: 1; }
.nua-pal.reveal-on .hex-info { opacity: 0 !important; }
/* le code hex remonte au-dessus de l'image : on décale le bas du panneau de
   30% de la HAUTEUR (bottom %), stable au survol contrairement à un padding %
   (qui dépend de la largeur et bougeait quand la bande s'élargissait) */
.nua-pal .hex-info { bottom: 23%; transform: none; }

/* Bento des supports — révélé par « Voir en application » */
.nua-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 230px);
  gap: 14px;
  /* fermé par défaut : transition douce hauteur + opacité */
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(.4, 0, .2, 1),
              opacity .4s ease,
              margin-top .45s cubic-bezier(.4, 0, .2, 1);
}

.nua-bento.show {
  max-height: 900px;
  margin-top: clamp(24px, 3.5vw, 44px);
  opacity: 1;
}

.nua-bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.nua-bento img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.nua-bento img:nth-child(2) { grid-column: span 2; }
.nua-bento img:nth-child(3) { grid-column: span 1; }
.nua-bento img:nth-child(4) { grid-column: span 1; }

.nua-bento.show img { animation: nua-pop .5s cubic-bezier(.2, .7, .2, 1) both; }
.nua-bento.show img:nth-child(1) { animation-delay: 0s; }
.nua-bento.show img:nth-child(2) { animation-delay: .06s; }
.nua-bento.show img:nth-child(3) { animation-delay: .12s; }
.nua-bento.show img:nth-child(4) { animation-delay: .18s; }

@keyframes nua-pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Supports recolorés avec la palette (canvas injectés par nua-supports.js) */
.nua-bento:has(.nua-sup) { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
.nua-bento.show:has(.nua-sup) { max-height: 1400px; }
.nua-sup {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-soft);
}
.nua-sup canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.nua-bento.show .nua-sup { animation: nua-pop .5s cubic-bezier(.2, .7, .2, 1) both; }
.nua-bento.show .nua-sup:nth-child(1) { animation-delay: 0s; }
.nua-bento.show .nua-sup:nth-child(2) { animation-delay: .07s; }
.nua-bento.show .nua-sup:nth-child(3) { animation-delay: .14s; }

@media (max-width: 860px) {
  /* toutes les nua-grid passent en VERTICAL (y compris .nua.alt, plus spécifique) →
     la palette prend toute la largeur dans chaque section */
  .nua-grid,
  .nua.alt .nua-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nua.alt .nua-text { order: 0; }
  .nua-bento { grid-auto-rows: clamp(120px, 32vw, 190px); }

  /* nouveaux nuanciers : carrousel horizontal tactile, une carte quasi pleine largeur */
  .nua-cards {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--pad));
    padding: 4px var(--pad) 12px;
    scrollbar-width: none;
  }
  .nua-cards::-webkit-scrollbar { display: none; }
  .nua-card { flex: 0 0 86%; scroll-snap-align: center; }
  .nua-card .card-head h4 { font-size: 18px; }
  .nua-more-head .h2 { font-size: clamp(22px, 6.5vw, 32px); }
}

@media (max-width: 560px) {
  .nua-bento { grid-template-columns: repeat(2, 1fr); }
  .nua-bento img:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ===== BLOG ===== */
.blog-filters {
  margin: 34px 0 10px
}

.featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  margin-top: 36px
}

.featured .swatch {
  aspect-ratio: 16/10;
  border-radius: 18px
}

.featured .card-meta {
  margin-top: 0
}

.featured h3 {
  margin: 8px 0 16px;
  font-size: clamp(22px, 2.6vw, 30px)
}

.featured p {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 430px;
  margin-bottom: 24px
}

.dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 34px
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  display: block
}

.dots i.on {
  background: var(--ink)
}

.blog-cat {
  margin-top: 80px;
  scroll-margin-top: 100px; /* l'ancre ne passe pas sous le header fixe */
}
.blog-cat[hidden] { display: none; }
#blogFeatured { scroll-margin-top: 100px; }

.blog-cat h2 {
  margin-bottom: 34px
}

/* ============ BLOG dynamique (liste + article) ============ */
.bp-empty { padding: 90px var(--pad); text-align: center; color: var(--ink-soft); font-size: 15px; }

/* — Article à la une — */
.bp-feat {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  margin-top: 44px;
  color: inherit;
}
.bp-feat-media {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-soft);
  
}
.bp-feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bp-feat:hover .bp-feat-media img { transform: scale(1.03); }
.bp-feat-body .card-meta { color: var(--orange); font-weight: 700; }
.bp-feat-body h3 { margin: 12px 0 16px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.bp-feat-body p { color: var(--ink-soft); font-size: 16px; max-width: 460px; margin-bottom: 22px; line-height: 1.6; }
.bp-feat:hover .bp-feat-body .link-u { color: var(--orange); border-color: var(--orange); }
@media (max-width: 760px) { .bp-feat { grid-template-columns: 1fr; gap: 22px; } }

/* liseré de palette sur les visuels nuanciers */
.bp-card-pal { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 5px; }
.bp-card-pal i { width: 17px; height: 17px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.bp-card-pal.big i { width: 22px; height: 22px; }

/* — Grille de cartes — */
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 30px; }
.bp-card { display: flex; flex-direction: column; color: inherit; transition: transform .28s ease; }
.bp-card[hidden], .bp-feat[hidden] { display: none; }
.bp-card:hover { transform: translateY(-5px); }
.bp-card-media {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-soft);
}
.bp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bp-card:hover .bp-card-media img { transform: scale(1.05); }
.bp-card-body { padding-top: 15px; }
.bp-card-body .card-meta { margin: 0 0 8px; }
.bp-card-body h4 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 8px; }
.bp-card-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 13px; }
.bp-card:hover .link-u { color: var(--orange); border-color: var(--orange); }

/* badge de catégorie sur la couverture */
.bp-card-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(10, 10, 10, .62); color: #fff; backdrop-filter: blur(4px);
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

/* flux unifié de tous les articles */
.blog-stream { margin-top: clamp(54px, 7vw, 92px); }
.bp-stream-eye { margin-bottom: 24px; }
.bp-grid.bp-stream { grid-template-columns: repeat(3, 1fr); gap: 40px 30px; }
.bp-stream-empty { padding: 40px 0; }
@media (max-width: 980px) { .bp-grid.bp-stream { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bp-grid.bp-stream { grid-template-columns: 1fr; } }

/* — Page d'article — */
.bp-post { padding-top: 44px; }
.bp-post-head, .bp-body, .bp-cta { max-width: 760px; margin-left: auto; margin-right: auto; }
.bp-back {
  display: inline-block; margin-bottom: 28px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft);
  transition: color .2s ease;
}
.bp-back:hover { color: var(--orange); }
.bp-post-head .eyebrow { margin-bottom: 14px; }
.bp-title { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 20px; }
.bp-lead { color: var(--ink); margin-bottom: 24px; }
.bp-swatch { height: clamp(72px, 8vw, 96px); max-width: 480px; margin-left: auto; margin-right: auto; border-radius: 14px;  }
.bp-swatch span { flex: 1; }
.bp-cover { max-width: 1080px; margin: 40px auto 0; }
.bp-cover img { width: 100%; border-radius: 22px; aspect-ratio: 16/9; object-fit: cover; }
.bp-body { margin-top: 46px; }
.bp-body p { font-size: 17px; line-height: 1.75; margin-bottom: 22px; color: var(--ink); }
.bp-cta { margin-top: 38px; text-align: center; }

/* — Mise en application (articles nuanciers) — */
.bp-apply { margin-top: 16px; }
.bp-apply .eyebrow { margin-bottom: 12px; }
.bp-apply .h2 { margin-bottom: 30px; font-size: clamp(26px, 3.2vw, 40px); }
.bp-apply-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bp-apply-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: var(--bg-soft); }
.bp-apply-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bp-apply-item:hover img { transform: scale(1.05); }
/* palette statique sous la mise en application (pas de pipette/agrandissement) */
.bp-apply-pal { display: flex; height: 56px; border-radius: 12px; overflow: hidden; margin-top: 24px;  }
.bp-apply-pal span { flex: 1; }
/* supports recolorés par la palette (canvas injectés par supports-recolor.js) */
.bp-supports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) {
  .bp-apply-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bp-supports { gap: 12px; }
}

/* Section palette : fond en « rideau » de bandes verticales + titre seul */
.bp-mosaic {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: clamp(64px, 10vw, 130px) 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bp-mosaic-grid {
  position: absolute;
  inset: 0;
  display: flex;
}
.bp-mosaic-grid span { flex: 1; display: block; }
.bp-mosaic-title {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
/* en masque sur le paysage : pas d'ombre blanche résiduelle, léger relief sous l'image */
.bp-mosaic-title.nua-mask {
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .3));
}
.bp-related { margin-top: 24px; }
.bp-related .h2 { margin-bottom: 30px; }

/* — Couverture "nuanciers" : palette (5 bandes de 20%) sur l'image, révélée au survol — */
.bp-card-cover .swatch { width: 100%; height: 100%; border-radius: inherit; }
.bp-card-cover .swatch > span { flex: 1; position: relative; z-index: 1; }
.bp-card-cover .swatch > span::before {
  content: ""; position: absolute; inset: 0; background: var(--c); z-index: 1;
  transition: transform .55s cubic-bezier(.22, .8, .26, 1);
}
.bp-card-cover .swatch > span:nth-of-type(5)::before { transition-delay: 0s; }
.bp-card-cover .swatch > span:nth-of-type(4)::before { transition-delay: .05s; }
.bp-card-cover .swatch > span:nth-of-type(3)::before { transition-delay: .1s; }
.bp-card-cover .swatch > span:nth-of-type(2)::before { transition-delay: .15s; }
.bp-card-cover .swatch > span:nth-of-type(1)::before { transition-delay: .2s; }
.bp-card-cover:hover .swatch > span::before { transform: translateY(-100%); }
.bp-card-cover:hover .swatch > span:nth-of-type(5)::before { transition-delay: 0s; }
.bp-card-cover:hover .swatch > span:nth-of-type(4)::before { transition-delay: .05s; }
.bp-card-cover:hover .swatch > span:nth-of-type(3)::before { transition-delay: .1s; }
.bp-card-cover:hover .swatch > span:nth-of-type(2)::before { transition-delay: .15s; }
.bp-card-cover:hover .swatch > span:nth-of-type(1)::before { transition-delay: .2s; }
/* couverture = lever de bandes uniquement (pas l'agrandissement/pipette des swatches hex) */
.bp-card-cover .swatch:hover > span,
.bp-card-cover .swatch > span:hover { flex: 1; }

/* — Accueil "Le journal" : 3 articles, plus grands — */
#homeActu { grid-template-columns: repeat(3, 1fr); gap: 36px; }
#homeActu .bp-card-media { aspect-ratio: 16/11; }
#homeActu .bp-card-body { padding-top: 18px; }
#homeActu .bp-card-body h4 { font-size: 22px; line-height: 1.25; }
#homeActu .bp-card-body .card-meta { font-size: 11px; }
@media (max-width: 860px) {
  #homeActu { grid-template-columns: 1fr; gap: 26px; }
}

.tile {
  aspect-ratio: 16/9;
  border-radius: 12px
}

.news-band {
  background: var(--black);
  color: #fff;
  border-radius: 6px;
  padding: clamp(36px, 6vw, 64px) var(--pad);
  margin-top: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap
}

.news-band h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05
}

.news-band p {
  color: #9a9a9a;
  font-size: 14px;
  margin-top: 12px
}

.news-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.news-form input {
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid #333;
  background: #161616;
  color: #fff;
  font-family: inherit;
  min-width: 240px
}

.news-form input::placeholder {
  color: #777
}

/* ===== PALETTE (configurateur) ===== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 50px 0 14px;
  flex-wrap: wrap
}

.steps {
  display: flex;
  align-items: center;
  gap: 30px
}

.step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px
}

.step.done {
  background: var(--ink);
  color: #fff
}

.step svg {
  width: 18px;
  height: 18px
}

.steps .eye {
  color: var(--ink)
}

.steps .arrow {
  color: var(--ink-mute)
}

/* H1 du wizard : la ligne active passe en orange selon l'étape */
.wiz-h1 .h1-line { color: var(--ink); transition: color .3s ease; }
.wiz-h1 .h1-line .dot { color: var(--orange); }
.wiz[data-step="1"] .wiz-h1 .h1-line[data-line="1"],
.wiz[data-step="2"] .wiz-h1 .h1-line[data-line="2"],
.wiz[data-step="3"] .wiz-h1 .h1-line[data-line="3"],
.wiz[data-step="4"] .wiz-h1 .h1-line[data-line="4"] { color: var(--orange); }

.step-head {
  margin-top: 30px
}

.step-head .eyebrow {
  margin-bottom: 10px
}

.step-head h2 {
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.04
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 26px
}

.dot {
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: .18s;
  border: none
}

.dot:hover {
  transform: scale(1.05)
}

.dot.sel::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex
}

.dot .chk {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center
}

.dot.sel .chk {
  display: flex
}

.dot .chk svg {
  width: 34%;
  height: 34%
}

.tray {
  background: var(--black);
  color: #fff;
  border-radius: 6px;
  margin-top: 40px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap
}

.tray .label {
  line-height: 1.2
}

.tray .label small {
  color: #9a9a9a;
  font-size: 12px;
  display: block
}

.tray .label b {
  font-size: 20px;
  font-weight: 700
}

.tray-slots {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  justify-content: center
}
/* colonnes latérales équilibrées → pastilles réellement centrées dans le tray */
.tray-info { flex: 1 1 0; }
.tray-acts { flex: 1 1 0; justify-content: flex-end; }

.slot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600
}

.tray-acts {
  display: flex;
  gap: 12px
}

.tray-acts button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff
}

.tray-acts .fav {
  background: var(--orange)
}

.tray-acts .clr {
  background: #2a2a2a
}

.fav-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px
}

.fav-nav {
  display: flex;
  gap: 10px
}

.fav-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: .2s
}

.fav-nav button:hover {
  border-color: var(--ink)
}

.fav-nav button.dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black)
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px
}

.fav-card .sw {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  aspect-ratio: 16/6
}

.fav-card .sw span {
  flex: 1
}

.fav-card .heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px
}

.fav-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 3px
}

.fav-card .saved {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px
}

.fav-actions {
  display: flex;
  gap: 8px
}

.mini-btn {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line)
}

.mini-btn.dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black)
}

/* ===== CONFIGURATEUR — intro (présentation des étapes) ===== */
.hero.is-collapsed { display: none !important; }
.wiz-intro .wrap { width: 100%; }
.intro-lead { max-width: 600px; margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.intro-steps {
  list-style: none; margin: 48px 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.intro-step {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px;
  background: var(--bg-soft);
}
.is-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 14px;
  margin-bottom: 16px;
}
.intro-step img { display: block; width: 34px; height: 34px; object-fit: contain; margin-bottom: 14px; }
.intro-step h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.intro-step p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.intro-cta { font-size: 15px; padding: 17px 34px; display: flex; width: fit-content; margin: 8px auto 0; }
.intro-cta span { display: inline-block; transition: transform .2s ease; }
.intro-cta:hover span { transform: translateX(4px); }

/* ===== CONFIGURATEUR — wizard 4 étapes ===== */
/* le hero ne force plus le plein écran → la hauteur suit le contenu
   (l'espace avant le footer s'adapte au nombre de favoris) */
.hero.wiz {
  min-height: 0;
  align-items: stretch;
  padding-top: clamp(80px, 11vh, 150px);
  padding-bottom: clamp(28px, 5vw, 56px);
  overflow: visible; /* nécessaire pour que le stepper sticky fonctionne */
}

/* le stepper se place entre le H1 et le contenu de l'étape, centré et fixe */
.wiz .stepper {
  position: sticky;
  top: 86px;
  z-index: 30;
  justify-content: center;
  margin: 64px 0 22px;
  padding: 14px 0;
  background: var(--bg);
  
}

.step { cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.step.current { border-color: var(--orange); color: var(--orange); }
.step.current.done { background: var(--orange); border-color: var(--orange); color: #fff; }

.wiz-nav { display: flex; gap: 12px; align-items: center; }
/* en mode couleur sur-mesure, le bouton « Créer » disparaît → « Retour » reste seul sous les étapes */
.wiz.picking #openPicker { display: none; }
/* l'attribut hidden doit primer sur display:inline-flex du .btn */
.btn[hidden] { display: none !important; }
/* Précédent et Suivant : même gabarit */
.wiz-nav .btn { min-width: 138px; padding: 14px 26px; font-size: 12px; }
/* « Suivant » dominant : orange, bien visible */
.wiz-nav #wizNext { background: var(--orange); border-color: var(--orange); color: #fff;  }
.wiz-nav #wizNext:hover { background: var(--orange-d); border-color: var(--orange-d); }
.wiz-nav .btn.is-order { background: var(--orange); border-color: var(--orange); }
.wiz-nav .btn.is-order:hover { background: var(--orange-d); }

.wiz-viewport {
  overflow: hidden;
  transition: height .45s cubic-bezier(.4, 0, .2, 1);
}
.wiz-track {
  display: flex;
  width: 400%;
  align-items: flex-start;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
/* min-width:0 → un step ne s'élargit pas à son contenu (sinon l'étape 3 en
   minmax(480px) imposerait 480px à toutes les étapes et ferait déborder sur mobile) */
.wiz-step { width: 25%; min-width: 0; padding: 4px 2px 88px; }

/* actions à droite des étapes, dans le stepper : créer + retour */
.stepper-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper .picker-cta-strong { margin: 0; }
.stepper-actions .picker-cta, .stepper-actions .pk-back { font-size: 13px; padding: 12px 24px; }
.wiz:not([data-step="1"]) .stepper-actions { display: none; }
/* le bouton retour n'apparaît qu'en mode couleur sur-mesure */
.stepper-actions .pk-back { display: none; }
.wiz.picking .stepper-actions .pk-back { display: inline-flex; }

/* Étape 1 : sous-slider (nuanciers ⇄ couleur sur-mesure), même animation que les étapes */
.step1-slider { position: relative; overflow: hidden; transition: height .5s cubic-bezier(.4, 0, .2, 1); }
.step1-pane { position: absolute; top: 0; left: 0; width: 100%; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.step1-main { transform: translateX(0); }
.step1-picker { transform: translateX(100%); }
.step1-slider.show-picker .step1-main { transform: translateX(-100%); }
.step1-slider.show-picker .step1-picker { transform: translateX(0); }

/* bouton retour dans le picker (pill outline, bien visible) */
.pk-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pk-back span { font-size: 16px; line-height: 1; }
.pk-back:hover { background: var(--ink); color: #fff; }

.wiz-flash {
  position: fixed;
  left: 50%;
  bottom: 104px; /* au-dessus de la barre « votre palette » */
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity .25s ease, transform .25s ease;
}
.wiz-flash.show { opacity: 1; transform: translate(-50%, 0); }

/* Étape 1 — palettes (façon nuancier) */
.pal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: clamp(28px, 4vw, 52px);
}
.pal-card { min-width: 0; }
/* hors étape 1, on coupe l'ombre des cartes (sinon elle déborde sur le bord
   gauche quand l'étape 1 glisse hors écran) */
.wiz:not([data-step="1"]) .pal-bars {  }
.pal-bars {
  display: flex;
  height: clamp(84px, 9vw, 104px);
  border-radius: 12px;
  overflow: hidden;
  
}
.pal-band {
  flex: 1;
  position: relative;
  cursor: pointer;
  border: 0;
  transition: flex .35s cubic-bezier(.2, .7, .2, 1);
}
.pal-band:hover { flex: 1.5; }
.pal-chk {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.pal-band.sel .pal-chk { display: flex; }
.pal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.pal-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pal-add {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: .2s;
}
.pal-add:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pal-add.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.pal-add.active:hover { background: var(--orange-d); border-color: var(--orange-d); }

/* Étape 1 — outils + picker */
.pal-tools { display: flex; gap: 10px; flex-wrap: wrap; }

/* CTA « couleur sur-mesure » mis en avant */
.picker-cta {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: filter .2s ease;
}
.picker-cta:hover { filter: brightness(1.07); }
/* variante mise en avant : pleine et un peu plus marquée pour attirer l'œil (sans ombre) */
.picker-cta-strong { font-weight: 800; }
.picker-cta-strong:hover { filter: brightness(1.07); }
.picker-cta-strong .dock-cta-ico {
  font-size: 1.15em;
  margin-right: 4px;
}

/* « créez la vôtre » : texte accent cliquable dans le titre */
.accent-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 92, 22, .4);
  transition: text-decoration-color .2s ease;
}
.accent-link:hover { text-decoration-color: var(--orange); }

.picker {
  display: flex;
  flex-direction: column;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, margin .3s ease;
}
.picker.open {
  max-height: 1500px;
  opacity: 1;
  margin: 6px 0 30px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 20px 22px;
}
.pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.pk-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.pk-close:hover { border-color: var(--ink); }
.pk-main { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.pk-body { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; flex: 1 1 360px; }
.pk-preview { display: flex; align-items: center; gap: 12px; }
.pk-prev-hex { font-size: 15px; font-weight: 800; letter-spacing: .04em; }

.pk-wheel {
  --dark: 0;
  width: clamp(170px, 22vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  cursor: crosshair;
  touch-action: none;
  
  background:
    radial-gradient(circle at center, #fff, rgba(255, 255, 255, 0) 70%),
    conic-gradient(from 90deg, red, #ff0, #0f0, #0ff, #00f, #f0f, red);
}
.pk-wheel::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #000; opacity: var(--dark); pointer-events: none;
}
.pk-thumb {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.pk-side { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 12px; }
.pk-prev { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); display: block; flex-shrink: 0; }
.pk-range {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; display: flex; flex-direction: column; gap: 8px;
}
.pk-range input { width: 100%; accent-color: var(--ink); }
.pk-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-fields label {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; display: flex; flex-direction: column; gap: 4px;
}
.pk-fields .pk-hex { flex: 1 1 90px; }
.pk-fields input {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 13px; width: 100%; background: #fff;
}
.pk-fields input[type=number] { width: 64px; }

/* sélecteur de format + valeur */
.pk-format { display: flex; gap: 8px; }
.pk-format select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 12px; font-weight: 700; background: #fff; cursor: pointer;
}
.pk-format input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 13px; background: #fff; letter-spacing: .02em;
}

/* outils image : import, pipette, palette extraite (colonne à droite de la roue) */
.pk-tools {
  flex: 1 1 280px;
  min-width: 260px;
  align-self: stretch;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.pk-import { display: inline-block; cursor: pointer; }
.pk-import input { display: none; }
.pk-import span {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 11px 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: .2s;
}
.pk-import:hover span { background: var(--ink); color: #fff; }

.pk-image {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}
.pk-gen { flex: 1; min-width: 150px; }
.pk-stage { position: relative; display: flex; flex-direction: column; gap: 8px; }
.pk-eyedrop {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  
  transform: translate(-50%, -135%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 5;
}
.pk-eyedrop.show { opacity: 1; }
.pk-stage canvas {
  width: clamp(280px, 32vw, 400px); max-width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--line); cursor: crosshair;
}
.pk-hint { font-size: 11px; color: var(--ink-soft); max-width: 400px; line-height: 1.4; }
.pk-gen { display: flex; flex-direction: column; gap: 12px; }
.pk-gen-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}
.pk-gen-sw { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-gen-chip {
  width: 40px; height: 40px; border-radius: 8px; border: 2px solid #fff;
   cursor: pointer; transition: transform .15s;
}
.pk-gen-chip:hover { transform: scale(1.1); }
.pk-gen-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* slot avec retrait */
.slot { position: relative; overflow: hidden; transition: transform .15s ease; }
.slot:hover { transform: scale(1.1); }
.slot .slot-x {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 13px; opacity: 0; transition: opacity .15s;
}
.slot:hover .slot-x { opacity: 1; }

.fav-empty { color: var(--ink-soft); font-size: 14px; }

/* Barre « votre palette » flottante en bas (étape 1) */
.tray-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 40;
  padding: 0 var(--pad);
  pointer-events: none;
}
.tray-bar[hidden] { display: none; }
.dock-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.dock-inner > * { pointer-events: auto; }
/* rangée du bas : tray (réduit) à gauche, navigation à droite */
.dock-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
}
.dock-row > * { pointer-events: auto; }
.dock-row .tray { flex: 1; }
.dock-row .wiz-nav { flex: none; }
/* bouton couleur sur-mesure, flottant au-dessus du tray */
.dock-cta {
  
  padding: 13px 26px;
  font-size: 13.5px;
}
.dock-cta .dock-cta-ico { font-size: 17px; margin-right: 4px; line-height: 1; }
/* hors étape 1 : seule la navigation reste (palette masquée) */
.tray-bar:not(.is-step1) .dock-cta,
.tray-bar:not(.is-step1) .tray { display: none; }
.tray-bar .tray {
  width: 100%;
  margin: 0;
  pointer-events: auto;
  border-radius: 16px;
  padding: 15px 22px;
  gap: 20px;
  
}
/* espace pour que la barre flottante ne masque pas le bas de l'étape 1 */
.wiz-step[data-step="1"] { padding-bottom: 120px; }
.tray-info { line-height: 1.2; }
.tray-eyebrow {
  display: block;
  color: #9a9a9a;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.tray-info b { font-size: 19px; font-weight: 700; }
.tray-acts .tray-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  transition: background .2s ease;
}
.tray-acts .tray-btn span { font-size: 14px; line-height: 1; }
/* « Sauvegarder » volontairement discret : le bouton dominant est « Suivant » */
.tray-acts .tray-btn.fav {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .32);
  color: rgba(255, 255, 255, .82);
}
.tray-acts .tray-btn.fav:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tray-acts .tray-btn.clr { background: #2a2a2a; }
.tray-acts .tray-btn.clr:hover { background: #3a3a3a; }

/* ============ Popup : sélection d'une couleur ============ */
.color-pop {
  position: fixed;
  left: 50%;
  top: 96px;
  transform: translate(-50%, -12px);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px 12px 12px;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.color-pop.show { opacity: 1; transform: translate(-50%, 0); }
.color-pop-sw { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); flex: none; }
.color-pop-txt { display: flex; flex-direction: column; line-height: 1.25; }
.color-pop-txt b { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.color-pop-txt small { font-size: 12px; color: #777; }
.color-pop.is-removed .color-pop-sw { opacity: .4; }

/* ============ Modale : nommer / renommer une palette ============ */
.modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .5); backdrop-filter: blur(2px); }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 30px 30px 26px;
  
  animation: modal-in .24s cubic-bezier(.34, 1.4, .6, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f2f2f2; color: #555; font-size: 14px;
}
.modal-x:hover { background: #e6e6e6; }
.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.modal-sub { font-size: 13.5px; color: #777; margin-top: 6px; line-height: 1.5; }
.modal-swatches { display: flex; gap: 7px; margin: 18px 0; }
.modal-swatches span { flex: 1; height: 34px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .06); }
.modal-input {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  transition: border-color .2s ease;
}
.modal-input:focus { outline: none; border-color: var(--orange); }
.modal-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ============ Modale : prochaines étapes (après envoi du formulaire) ============ */
.steps-modal { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; padding: 24px; }
.steps-modal[hidden] { display: none; }
.steps-card {
  position: relative;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 34px 36px 30px;
  
  animation: modal-in .26s cubic-bezier(.34, 1.4, .6, 1);
}
.steps-check {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1f9d55; color: #fff; font-size: 26px; font-weight: 700;
  margin-bottom: 16px;
}
.steps-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.steps-sub { font-size: 14px; color: #777; margin-top: 8px; line-height: 1.5; }
.next-steps { list-style: none; margin: 24px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.next-steps li { position: relative; display: flex; gap: 16px; padding: 14px 0; }
.next-steps li + li { border-top: 1px solid var(--line, #eee); }
.ns-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 14px;
}
.next-steps li div { display: flex; flex-direction: column; gap: 3px; }
.next-steps li b { font-size: 15px; font-weight: 700; }
.next-steps li div span { font-size: 13px; color: #777; line-height: 1.45; }
.steps-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* Étape 2 — supports */
/* marge intérieure : laisse la place au halo des pictos de bord (sinon coupé) */
.supports-root { padding: 0 0 40px; }
/* invitation à nous contacter si le support recherché n'est pas listé */
.sup-other {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 26px; margin-bottom: 60px;
}
.sup-other h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.sup-other p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; max-width: 540px; line-height: 1.5; }
.sup-other .btn { flex: none; }
/* marge latérale sur l'étape 2 : laisse de la place au halo de couleurs des
   cartes en bordure (sinon il est rogné par le viewport en overflow:hidden).
   step-head et supports restent alignés (mêmes enfants du step). */
.wiz-step[data-step="2"] { padding-left: 28px; padding-right: 28px; }
.sup-cat { margin-bottom: clamp(48px, 7vw, 88px); }
.sup-cat-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(34px, 4.6vw, 58px);
}
.sup-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 70px) clamp(36px, 6vw, 84px);
}
.sup-card { width: 118px; text-align: center; position: relative; }
.sup-card.picking { z-index: 5; } /* le halo passe au-dessus des voisins */

.sup-ico { position: relative; width: 92px; height: 84px; margin: 0 auto 18px; }
.sup-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform .15s ease;
}
.sup-pic:hover { transform: scale(1.07); }
.sup-pic img { max-width: 84px; max-height: 78px; }
.sup-label { font-size: 15px; font-weight: 500; }
/* coloris commandés affichés sous la carte (quand plusieurs) */
.sup-colors { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 8px; }
.sup-colors i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* badge de validation = couleur choisie */
.sup-check {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  border: 3px solid #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.sup-card.selected .sup-check { display: flex; }
.sup-check svg { width: 16px; height: 16px; }

/* halo de pastilles autour du picto */
.sup-halo { position: absolute; inset: 0; pointer-events: none; } /* laisse passer le clic vers le picto */
.sup-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform .15s ease;
  animation: sup-pop .26s cubic-bezier(.34, 1.45, .6, 1) backwards;
}
.sup-dot:hover { transform: translate(-50%, -50%) scale(1.22); }
.sup-dot.on { box-shadow: 0 0 0 2px var(--ink); }
.sup-dot-tick { font-size: 17px; font-weight: 800; line-height: 1; }
.sup-dot-x {
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.sup-dot-x:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@keyframes sup-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Étape 3 — visualisation */
.viz-root {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.viz-tile { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.viz-canvas {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; background: var(--bg-soft);
}
.viz-flat {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 4 / 3;
}
.viz-flat img { width: 40%; height: 40%; object-fit: contain; }
.viz-tile figcaption {
  display: flex; flex-direction: column; gap: 14px; padding: 16px 18px;
}
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.viz-name { font-size: 16px; font-weight: 700; }
.viz-imgs { display: flex; gap: 6px; }
.viz-img {
  width: 38px; height: 28px; border-radius: 6px; border: 2px solid var(--line);
  background-size: cover; background-position: center; cursor: pointer; transition: border-color .15s;
}
.viz-img:hover { border-color: var(--ink-soft); }
.viz-img.on { border-color: var(--orange); }
.viz-controls { display: flex; flex-direction: column; gap: 20px; }
.viz-sup { display: flex; flex-direction: column; gap: 10px; }
.viz-sup + .viz-sup { border-top: 1px solid var(--line); padding-top: 16px; }
.viz-sup-name { font-size: 14px; font-weight: 800; }
.viz-ord-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.viz-ord-label-2 { margin-top: 6px; }
.viz-ord-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.viz-zone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.viz-zlabel { font-size: 13px; font-weight: 600; min-width: 92px; }
.viz-zchips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.viz-zhint { font-size: 12px; color: var(--ink-soft); }
.viz-colors { display: flex; gap: 8px; }
.sum-zc { display: flex; gap: 6px; flex-wrap: wrap; }
.viz-chip {
  position: relative;
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
   cursor: pointer; transition: transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.viz-chip:hover { transform: scale(1.14); }
.viz-chip.on { outline: 2px solid var(--ink); outline-offset: 2px; }
/* coloris commandés : un peu plus grands, avec ✓ et croix de retrait */
.viz-ord-chip { width: 32px; height: 32px; }
.viz-chip-tick { font-size: 15px; font-weight: 800; line-height: 1; pointer-events: none; }
.viz-chip-x {
  position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
  
}
.viz-chip-x:hover { background: var(--ink); color: #fff; }
.viz-empty { color: var(--ink-soft); margin-top: 20px; }

/* Étape 4 — résumé */
.summary {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 28px;
  align-items: start;
}
.sum-block .eyebrow { margin-bottom: 16px; }
.sum-palette { display: flex; flex-direction: column; gap: 10px; }
.sum-c { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.sum-c i { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.sum-supports { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sum-s {
  display: flex; flex-direction: column; gap: 11px; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600;
}
.sum-s-head { display: flex; align-items: center; gap: 10px; }
.sum-s-head img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.sum-s-head span { flex: 1; }
.sum-zc i { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.sum-note { margin-top: 34px; max-width: 620px; }

@media (max-width: 760px) {
  .summary { grid-template-columns: 1fr; }
  .pk-side { min-width: 100%; }
  .pk-tools { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .pk-image { flex-direction: column; }
  .pk-stage canvas { width: 100%; max-width: 100%; }
}

/* ===================== Wizard « Votre palette » — MOBILE ===================== */
@media (max-width: 720px) {
  .hero.wiz { padding-top: 0; }   /* le stepper fixe gère son propre espace (padding du .wrap en JS) */

  /* Intro : étapes en 2×2, CTA pleine largeur */
  .intro-lead { font-size: 15px; margin-top: 16px; }
  .intro-steps { grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0 26px; }
  .intro-step { padding: 16px 14px; }
  .is-num { width: 26px; height: 26px; font-size: 13px; margin-bottom: 12px; }
  .intro-step img { width: 28px; height: 28px; margin-bottom: 10px; }
  .intro-step h3 { font-size: 15px; }
  .intro-step p { font-size: 12.5px; }
  .intro-cta { width: 100%; justify-content: center; }
  .wiz .wiz-h1 { font-size: clamp(30px, 10.5vw, 48px); line-height: 1; margin-bottom: 4px; }

  /* Stepper : barre FIXE sous le header (accessible partout, même en bas),
     qui s'auto-masque au scroll vers le bas et réapparaît vers le haut (JS .is-hidden).
     L'espace réservé pour le H1 est posé en JS (padding-top du .wrap). */
  .wiz .stepper {
    position: fixed;
    top: 86px;
    left: 0; right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px var(--pad) 12px;
    background: var(--bg);
    
    transition: transform .3s ease;
  }
  .wiz .stepper.is-hidden { transform: translateY(calc(-100% - 92px)); }
  .steps { gap: 10px; }
  .step { width: 30px; height: 30px; }
  .step svg { width: 16px; height: 16px; }
  .steps .arrow { font-size: 13px; }
  .stepper-actions {
    position: static; transform: none;
    width: 100%; justify-content: center; gap: 8px;
  }
  .stepper-actions .picker-cta,
  .stepper-actions .pk-back { flex: 1 1 0; justify-content: center; }

  .step-head { margin-top: 16px; }
  .step-head h2 { font-size: clamp(19px, 5.2vw, 25px); }

  /* Nuanciers : barres plus compactes → on en voit plusieurs d'un coup */
  .pal-grid { grid-template-columns: 1fr; gap: 14px; }
  .pal-bars { height: 60px; border-radius: 10px; }
  .pal-band:hover { flex: 1; }           /* pas d'agrandissement au tap */
  .pal-meta { margin-top: 8px; }

  /* Dock : tray + navigation empilés, pleine largeur (rien ne sort) */
  .tray-bar { bottom: 10px; padding: 0 10px; }
  .dock-inner { gap: 10px; }
  .dock-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .dock-row .wiz-nav { width: 100%; }
  .wiz-nav .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; }
  /* Tray compact : une seule rangée → 5 couleurs + ♥ + ✕ (icônes seules) */
  .tray-bar { padding: 0 10px; box-sizing: border-box; }
  .dock-inner { width: 100%; max-width: 100%; }
  .tray-bar .tray {
    flex-wrap: nowrap; align-items: center; justify-content: space-between;
    gap: 8px; padding: 10px 12px; border-radius: 14px; box-sizing: border-box; max-width: 100%;
  }
  .tray-info { display: none; }                 /* on retire le libellé « 0/5 couleurs » */
  .tray-slots { order: 0; flex: 0 1 auto; min-width: 0; gap: 6px; justify-content: flex-start; }
  .slot { width: 32px; height: 32px; }
  .tray-acts { flex: 0 0 auto; gap: 6px; }
  .tray-acts .tray-btn {            /* icône seule, bouton rond → gagne de la hauteur */
    width: 38px; height: 38px; padding: 0; font-size: 0;
    border-radius: 50%; flex: 0 0 auto; justify-content: center; gap: 0;
  }
  .tray-acts .tray-btn span { font-size: 16px; }

  /* Espace bas réservé pour le dock empilé (réduit grâce au tray compact) */
  .wiz-step[data-step="1"] { padding-bottom: 168px; }
  .wiz-step { padding-bottom: 150px; }

  /* couleur sur-mesure : le haut du picker se cale sous le header fixe */
  .step1-slider { scroll-margin-top: 92px; }

  /* Visualisation (étape 3) : une colonne */
  .viz-root { grid-template-columns: 1fr !important; gap: 18px; }

  /* Supports (étape 2) : grille resserrée + marge latérale adaptée au halo mobile (R=58) */
  .sup-grid { gap: 18px 8px; justify-content: center; }
  .wiz-step[data-step="2"] { padding-left: 20px; padding-right: 20px; }
  .sup-other { flex-direction: column; align-items: flex-start; padding: 20px; }
  .sup-other .btn { width: 100%; }

  /* Couleur sur-mesure : « Créer » masqué → « Retour » seul, centré sous les étapes */
  .wiz.picking .stepper-actions .pk-back { flex: 0 0 auto; }
}

/* ===== CONTACT ===== */
/* Récap de commande — carte claire, en sidebar à droite du formulaire */
.recap {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 26px;
}
.recap[hidden] { display: none; }

.recap-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}
.recap-head .eyebrow { color: var(--ink-soft); margin-bottom: 6px; }
.recap-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.recap-edit {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  color: var(--ink); border-bottom: 1.5px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.recap-edit:hover { color: var(--orange); border-color: var(--orange); }

.recap-sec { margin-top: 20px; }
.recap-sec .eyebrow { color: var(--ink-soft); margin-bottom: 12px; }

.recap-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.recap-colors .c { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.recap-colors .c i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.recap-colors .c span { font-size: 10px; letter-spacing: .03em; font-weight: 600; color: var(--ink-soft); }

.recap-supports { display: flex; flex-direction: column; gap: 14px; }
.recap-supports .s { display: flex; align-items: center; gap: 12px; }
.recap-supports .s img { width: 30px; height: 28px; object-fit: contain; flex: none; }
.recap-supports .s .s-name { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.25; }
.recap-supports .s .s-sw { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 50%; }
.recap-supports .s .s-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }

.recap-empty { color: var(--ink-soft); font-size: 14px; }

/* hero contact compact (plus de récap dedans) */
.contact-hero { min-height: auto; padding-bottom: clamp(16px, 3vw, 34px); }
.contact-lead { max-width: 520px; margin-top: 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

.form-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
/* colonne de droite : récap (si commande) + coordonnées */
.contact-side { display: flex; flex-direction: column; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px
}

.form-grid .full {
  grid-column: 1/-1
}

.form-section-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 8px 0 18px
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 26px
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0
}

.contact-info h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px
}

.contact-info p {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.5
}

.contact-form-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em
}

/* ===== Responsive ===== */
@media(max-width:980px) {

  /* tous les héros alignés EN HAUT avec un entête homogène → les H1 sont à la même
     hauteur d'une page à l'autre (sinon les héros plein écran centrent le H1) */
  .hero { min-height: auto; align-items: flex-start; padding-top: 92px; padding-bottom: clamp(40px, 9vw, 64px); }
  /* accueil : le hero occupe tout l'écran sur mobile */
  .hero.home-hero { min-height: calc(100svh - 86px); align-items: center; padding-top: 86px; }

  .concept-cols,
  .mat-grid,
  .featured,
  .recap-grid,
  .form-wrap,
  .form-grid {
    grid-template-columns: 1fr
  }

  .concept-cols {
    gap: 34px
  }

  .featured {
    gap: 30px
  }

  .form-wrap {
    gap: 40px
  }

  .nuancier-row {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .nuancier-row .swatch {
    max-width: 100%
  }

  .nuancier-row .acts {
    flex-direction: row;
    flex-wrap: wrap
  }

  .color-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px
  }

  .fav-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:560px) {
  .color-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
  }

  .recap-colors {
    gap: 22px
  }

  .news-form input {
    min-width: 0;
    flex: 1
  }
}