/* Modules de la maquette C encore partagés (Hair Finder et pages à deux colonnes, cartes de nuance, chiffres, looks
   achetables, téléphone Instagram). Jetons et composants communs : socle.css ; accueil : accueil.css ; achat : produit.css. */

/* ---------- Pages à deux colonnes (Hair Finder, nuance, fêtes, confirmation) ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5.6vw, 96px); align-items: start; }
.finder__texte { padding-top: 0; }
.finder__texte .t-h2 { margin-top: 12px; }
.finder__texte .t-lead { margin-top: 24px; max-width: 540px; }
.lignes { margin-top: 32px; border-top: 1px solid var(--filet); }
.lignes li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.lignes li i { display: none; }
.lignes li span:last-child { color: var(--voile); }
.finder__action { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Cartes de nuance (page Les six nuances) ---------- */
.envies .carrousel__piste { margin: 0 calc(var(--bord) * -1); padding: 0 var(--bord); scroll-padding: 0 var(--bord); }
.envie { width: clamp(248px, 24.3vw, 350px); display: flex; flex-direction: column; }
.envie__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--puits); }
.envie__media img { width: 100%; height: 100%; object-fit: cover; }
.envie__media .etiquette { position: absolute; top: 12px; left: 12px; }
.envie__fleche { display: none; }
.envie__texte { padding-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.envie__texte .t-gris { grid-column: 1 / -1; font-size: 13.5px; }

/* ---------- Chiffres (studio, nuance) : des faits, pas des compteurs ---------- */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--filet); }
.chiffres strong { display: block; font: 400 26px/1.2 var(--serif); color: var(--encre); }
.chiffres span { font-size: 13.5px; color: var(--voile); }

/* ---------- Looks achetables et téléphone Instagram ---------- */
.ugc { position: relative; width: clamp(280px, 30.56vw, 440px); aspect-ratio: 440 / 640; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.ugc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--doux); }
.ugc:hover > img { transform: scale(1.04); }
.ugc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 16, 8, .62) 0%, rgba(30, 16, 8, 0) 42%), linear-gradient(180deg, rgba(30, 16, 8, .3) 0%, rgba(30, 16, 8, 0) 18%); }
.ugc > *:not(img) { position: relative; z-index: 1; }
.ugc__haut { font-size: 13px; letter-spacing: .01em; }
.ugc__legende { font-size: 15.5px; line-height: 1.45; }
.ugc__tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ugc__tags span { font-size: 12.5px; padding: 3px 9px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .55); }
.puce-produit { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 6px 6px 6px; border-radius: var(--r); background: var(--porcelaine); color: var(--encre); max-width: 100%; }
.puce-produit img { width: 32px; height: 40px; object-fit: cover; flex: none; }
.puce-produit a { font-size: 14px; font-weight: 500; line-height: 1.3; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; flex-wrap: wrap; }
.puce-produit a span { font-weight: 400; color: var(--encre-62); margin-left: 6px; white-space: nowrap; }
.puce-produit button { width: 44px; height: 44px; flex: none; border-radius: var(--r); background: var(--encre); color: var(--creme); display: grid; place-items: center; }
.puce-produit button svg { width: 14px; height: 14px; }
.tel-carte { width: clamp(280px, 22vw, 320px); aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--creme); padding: 20px 16px; }
.tel-carte__ouvrir { display: none; }

/* Téléphone Instagram (habillage de ../commun/telephone.js) */
.tel { width: 100%; max-width: 300px; aspect-ratio: 300 / 610; border-radius: 44px; background: #181210; padding: 9px; box-shadow: 0 24px 48px rgba(28, 20, 15, .22), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tel__ecran { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #fffdf9; display: flex; flex-direction: column; color: var(--encre); }
.tel__ilot { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: #181210; z-index: 3; }
.tel__barre { display: flex; justify-content: space-between; padding: 12px 24px 6px; font-size: 12px; font-weight: 600; }
.tel__vue { flex: 1; overflow-y: auto; scrollbar-width: none; }
.tel-plein .tel__vue { overscroll-behavior: contain; }
.tel__vue::-webkit-scrollbar { display: none; }
.tel__entete { display: flex; align-items: center; gap: 8px; justify-content: center; position: relative; padding: 8px 12px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--encre-15); }
.tel__btn { min-width: 44px; min-height: 44px; }
.tel__retour { position: absolute; left: 0; top: 0; font-size: 24px; line-height: 1; }
.tel__profil { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px; }
.tel__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--encre-15); }
.tel__nom { font-weight: 600; font-size: 14px; }
.tel__handle { font-size: 12px; color: var(--encre-62); }
.tel__chiffres { display: flex; justify-content: space-around; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; text-align: center; }
.tel__chiffres strong { display: block; font-size: 15px; font-weight: 600; }
.tel__nom--plein { grid-column: 1 / -1; }
.tel__etat { grid-column: 1 / -1; font-size: 12px; line-height: 1.4; color: var(--encre-62); background: var(--carte); border-radius: 6px; padding: 8px 10px; }
.tel__actions { padding: 0 14px 12px; }
.tel__suivre { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; background: var(--encre); color: var(--porcelaine); font-size: 13px; font-weight: 600; }
.tel__onglets { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--encre-15); }
.tel__onglet { min-height: 44px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--encre-62); border-bottom: 1px solid transparent; }
.tel__onglet[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--encre); }
.tel__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tel__case { position: relative; aspect-ratio: 3 / 4; overflow: hidden; min-height: 44px; }
.tel__case img { width: 100%; height: 100%; object-fit: cover; }
.tel__case[data-type]::after { content: attr(data-type); position: absolute; top: 4px; right: 4px; font-size: 9px; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .45); color: #fff; }
.tel__defile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tel__defile::-webkit-scrollbar { display: none; }
.tel__media { position: relative; flex: none; width: 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.tel__media img { width: 100%; height: 100%; object-fit: cover; }
.tel__lecture { position: absolute; inset: auto 12px 12px; min-height: 44px; border-radius: 8px; background: rgba(28, 20, 15, .6); color: #fff; font-size: 12px; }
.tel__points { display: flex; justify-content: center; gap: 5px; padding: 8px 0; }
.tel__points span { width: 5px; height: 5px; border-radius: 50%; background: var(--encre-15); }
.tel__points span[aria-current="true"] { background: var(--cerise); }
.tel__legende { padding: 10px 14px 18px; font-size: 12px; line-height: 1.45; display: grid; gap: 4px; }
.tel__legende p { color: var(--encre-62); }
.tel__lien { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--cerise); text-align: left; }
.tel__vide { padding: 24px 14px; font-size: 13px; display: grid; gap: 6px; color: var(--encre-62); }
.tel-plein { position: fixed; inset: 0; z-index: 90; background: rgba(28, 20, 15, .82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.tel-plein .tel { max-width: min(330px, calc((100svh - 100px) * 300 / 610)); }
.tel-plein__fermer { align-self: flex-end; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--porcelaine); color: var(--encre); font-size: 14px; font-weight: 500; }

@media (max-width: 1100px) {
  .finder { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .finder { gap: 28px; }
  .lignes li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .envie { width: 72vw; }
  .ugc { width: 78vw; }
  .tel-carte { width: 78vw; }
  .tel-carte .tel { display: none; }
  .tel-carte__ouvrir { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 24px 8px; }
  .tel-carte__ouvrir img { width: 88px; height: 88px; border-radius: 50%; }
  .chiffres { gap: 12px; margin-top: 28px; }
  .chiffres strong { font-size: 22px; }
}
