/* ============================================================
 *  Trouvez vos poignées — sélecteur guidé
 *  Aligné sur le design system Holdon : Cormorant Garamond (serif)
 *  + Outfit (sans), palette bronze/beige (variables globales du thème).
 *  Scope strict sous .holdon-finder / .holdon-finder-faq.
 * ============================================================ */
.holdon-finder {
  /* On référence les variables globales du thème, avec fallback. */
  --hf-serif: var(--serif, 'Cormorant Garamond', Georgia, serif);
  --hf-sans: var(--sans, 'Outfit', system-ui, -apple-system, sans-serif);
  --hf-bronze: var(--bronze, #8b6914);
  --hf-bronze-deep: var(--bronze-deep, #6e5210);
  --hf-bronze-warm: var(--bronze-warm, #a07b1f);
  --hf-bronze-line: var(--bronze-line, rgba(139,105,20,.26));
  --hf-bronze-hair: var(--bronze-hair, rgba(139,105,20,.14));
  --hf-bronze-tint: var(--bronze-tint, rgba(139,105,20,.06));
  --hf-beige: var(--beige, #fdf9f3);
  --hf-beige-warm: var(--beige-warm, #f5ecdb);
  --hf-beige-deep: var(--beige-deep, #ece1cb);
  --hf-ink: #2b2620;
  --hf-muted: #7c756a;
  --hf-card: #ffffff;
  --hf-radius: 16px;
  --hf-maxw: 900px;

  max-width: var(--hf-maxw);
  margin: 0 auto;
  padding: 0 18px 28px;
  box-sizing: border-box;
  color: var(--hf-ink);
  font-family: var(--hf-sans);
}
.holdon-finder *,
.holdon-finder *::before,
.holdon-finder *::after { box-sizing: border-box; }

/* ============================================================
 *  HERO (écran de départ du widget)
 *  L'eyebrow, le H1 et le fond beige sont des éléments Bricks NATIFS sur la page.
 *  Le shortcode ne porte ici que le bouton « Commencer ».
 * ============================================================ */
.holdon-finder__hero {
  text-align: center;
  padding: 6px 0 2px;
  margin: 0;
}
.holdon-finder__hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 620px; margin: 0 auto; }
.holdon-finder__hero-title {
  font-family: var(--hf-serif);
  font-size: clamp(2.8rem, 3.2vw, 2.3rem);
  font-weight: 500; line-height: 1.12;
  color: var(--hf-ink);
  margin: 0 0 14px;
}
.holdon-finder__hero-lead {
  font-family: var(--hf-sans);
  line-height: 1.6;
  color: var(--hf-muted);
  max-width: 48ch; margin: 0 0 28px;
}

/* Boutons : classe native .v2-btn du thème (carrée). Le bouton de départ est un peu agrandi. */
.holdon-finder [data-finder="start"] { font-size: 2rem; }
.holdon-finder [data-finder="next"]:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ============================================================
 *  QUIZ
 * ============================================================ */
.holdon-finder__quiz { max-width: 820px; margin: 0 auto; padding-top: 10px; }

/* Barre de progression */
.holdon-finder__bar {
  height: 4px;
  background: var(--hf-bronze-hair);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 26px;
}
.holdon-finder__bar-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--hf-bronze-warm), var(--hf-bronze));
  border-radius: 999px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* Topline : retour + groupe */
.holdon-finder__topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 26px; min-height: 24px;
}
.holdon-finder__back {
  background: none; border: 0; cursor: pointer;
  font-family: var(--hf-sans); font-size: 1.05rem; color: var(--hf-muted);
  padding: 6px 10px 6px 0; border-radius: 8px;
  transition: color .2s ease;
}
.holdon-finder__back:hover { color: var(--hf-bronze-deep); }
.holdon-finder__back[hidden] { visibility: hidden; display: inline-block; }
.holdon-finder__group {
  font-family: var(--hf-sans);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--hf-bronze-warm); text-align: right; font-weight: 600;
}

/* Tête de question */
.holdon-finder__stage { min-height: 220px; transition: opacity .24s ease, transform .24s ease; }
.holdon-finder__stage.is-leaving { opacity: 0; transform: translateY(10px); }
.holdon-finder__qhead { margin: 0 0 30px; text-align: center; }
.holdon-finder__q {
  font-family: var(--hf-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--hf-ink);
  margin: 0 0 12px;
}
.holdon-finder__qintro {
  color: var(--hf-muted);
}

/* ---------- Grille d'options ---------- */
.holdon-finder__options {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
/* Plain/text : autant de boutons en ligne que possible (3, 4, 5…), alignés à gauche. */
.holdon-finder__options--plain { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.holdon-finder__options--text  { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
/* Couleurs / matières / formes : même base que les "types de poignées" (Slide 2) → grandes cartes. */
.holdon-finder__options--swatch,
.holdon-finder__options--vignette { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Carte d'option */
.holdon-finder__opt {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--hf-card);
  border: 1.5px solid var(--hf-bronze-hair);
  border-radius: var(--hf-radius);
  padding: 22px;
  cursor: pointer;
  font-family: var(--hf-sans);
  color: var(--hf-ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.holdon-finder__opt:hover {
  border-color: var(--hf-bronze-warm);
  box-shadow: 0 14px 34px -22px rgba(110,82,16,.6);
  transform: translateY(-3px);
}
.holdon-finder__opt.is-selected {
  border-color: var(--hf-bronze);
  background: var(--hf-bronze-tint);
  box-shadow: 0 0 0 1.5px var(--hf-bronze) inset;
}
.holdon-finder__opt.is-selected::after {
  content: "✓";
  position: absolute; top: 12px; right: 14px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hf-bronze); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 700;
}

/* Média (image / triptyque / dégradé / placeholder) */
.holdon-finder__opt-media {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 11px; overflow: hidden;
  margin-bottom: 16px; background: var(--hf-beige-deep);
  display: flex;
}
.holdon-finder__opt-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder « ? » pour l'option neutre dans une grille à média (rééquilibrage). */
.holdon-finder__opt-media--ph {
  align-items: center; justify-content: center;
  background: var(--hf-beige);
  box-shadow: inset 0 0 0 1px var(--hf-bronze-hair);
}
.holdon-finder__opt-media--ph span {
  font-family: var(--hf-serif); font-size: 10rem; line-height: 1;
  color: var(--hf-bronze-warm); opacity: .4;
}

/* label + sous-titre groupés dans une colonne (média | [label / sous-titre]) */
.holdon-finder__opt-body { display: flex; flex-direction: column; }
.holdon-finder__opt-label {
  font-family: var(--hf-sans);
  font-size: 1.6rem; font-weight: 600; line-height: 1.25;
  letter-spacing: -0.005em;
}
.holdon-finder__opt-sub {
  margin-top: 7px;
  font-size: 1.2rem; line-height: 1.5; color: var(--hf-muted);
}

/* Variante "plain"/"text" (grandes cases) : padding réduit + sous-titre légèrement plus grand.
   (Le label hérite déjà de 1.6rem du style de base → pas de redéfinition.) */
.holdon-finder__options--plain .holdon-finder__opt,
.holdon-finder__options--text .holdon-finder__opt { padding: 20px; }
.holdon-finder__options--plain .holdon-finder__opt-sub,
.holdon-finder__options--text .holdon-finder__opt-sub { font-size: 1.3rem; }

/* Couleurs (swatch) / matières & formes (vignette) : cartes identiques aux "types de poignées"
   (Slide 2) → média carré en haut, label + phrase dessous, alignés à gauche (style par défaut).
   Pas d'override : on garde le rendu de .holdon-finder__opt. */

.holdon-finder__swatch { width: 100%; height: 100%; }
.holdon-finder__swatch[data-gamme="rouge"]        { background: linear-gradient(135deg,#e96a5b,#a4221b); }
.holdon-finder__swatch[data-gamme="bleu"]         { background: linear-gradient(135deg,#7fb6e0,#1f4f8b); }
.holdon-finder__swatch[data-gamme="vert"]         { background: linear-gradient(135deg,#8cc08a,#2f6b3c); }
.holdon-finder__swatch[data-gamme="jaune-dore"]   { background: linear-gradient(135deg,#f6e3a1,#c79a2e); }
.holdon-finder__swatch[data-gamme="marron"]       { background: linear-gradient(135deg,#b08a63,#5e3c25); }
.holdon-finder__swatch[data-gamme="noir"]         { background: linear-gradient(135deg,#5a564f,#1a1814); }
.holdon-finder__swatch[data-gamme="blanc"]        { background: linear-gradient(135deg,#ffffff,#e3ddd1); box-shadow: inset 0 0 0 1px var(--hf-bronze-hair); }
.holdon-finder__swatch[data-gamme="gris-argente"] { background: linear-gradient(135deg,#d7d4ce,#8d8a82); }
.holdon-finder__swatch[data-gamme="violet"]       { background: linear-gradient(135deg,#b794d0,#5e3b80); }
.holdon-finder__swatch[data-gamme="orange"]       { background: linear-gradient(135deg,#f4b16a,#d2691e); }
.holdon-finder__swatch[data-gamme="rose"]         { background: linear-gradient(135deg,#f4b6c6,#d46a86); }
.holdon-finder__swatch { background: linear-gradient(135deg,#d9d4cb,#a09a8d); }

/* ---------- Compteur live ---------- */
.holdon-finder__count {
  text-align: center; margin: 34px 0 4px;
  font-family: var(--hf-sans);
  font-size: 1.02rem; color: var(--hf-muted);
}
.holdon-finder__count strong {
  font-family: var(--hf-serif);
  font-size: 2rem; font-weight: 600; font-style: italic;
  color: var(--hf-bronze-deep); margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.holdon-finder__count.is-zero strong { color: #b3261e; }

/* ---------- Nav ---------- */
.holdon-finder__nav { display: flex; justify-content: center; margin-top: 26px; }

/* ============================================================
 *  RÉSULTAT
 * ============================================================ */
/* Résultat affiché dans la section beige Bricks → pas de carte propre. */
.holdon-finder__result {
  text-align: center;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px);
  margin-top: 4px;
}
.holdon-finder__result-kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  /* font-size: .78rem; */
  color: var(--hf-bronze-warm);
  font-weight: 600;
  margin: 0 0 16px;
}
.holdon-finder__result-lead {
  /* font-family: var(--hf-serif); */
  font-weight: 100;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.5;
  color: var(--hf-ink);
  /* max-width: 18ch; */
  margin: 0 auto 34px;
}
.holdon-finder__result-lead strong { font-style: italic; color: var(--hf-bronze); font-weight: 600; }
.holdon-finder__restart {
  display: block; margin: 22px auto 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--hf-sans); font-size: .9rem; color: var(--hf-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.holdon-finder__restart:hover { color: var(--hf-bronze-deep); }

/* La FAQ est un accordéon Bricks NATIF (styles + JSON-LD gérés par Bricks) → aucun CSS ici. */

/* ============================================================
 *  Responsive
 * ============================================================ */
@media (max-width: 768px) {
  .holdon-finder { padding: 0 12px 16px; }
  .holdon-finder__hero { padding: 4px 0 0; }
  .holdon-finder__options,
  .holdon-finder__options--plain,
  .holdon-finder__options--text,
  .holdon-finder__options--image,
  .holdon-finder__options--swatch,
  .holdon-finder__options--vignette { grid-template-columns: 1fr; }
  /* Cartes à média (Q2, couleurs, matières, formes) : 1 par ligne, 2 colonnes (média | label + description) */
  .holdon-finder__options--image .holdon-finder__opt,
  .holdon-finder__options--swatch .holdon-finder__opt,
  .holdon-finder__options--vignette .holdon-finder__opt { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 16px; }
  .holdon-finder__options--image .holdon-finder__opt-media,
  .holdon-finder__options--swatch .holdon-finder__opt-media,
  .holdon-finder__options--vignette .holdon-finder__opt-media { width: 92px; min-width: 92px; margin-bottom: 0; }
  /* Placeholder « ? » réduit dans les petites vignettes mobiles */
  .holdon-finder__opt-media--ph span { font-size: 3.4rem; }
}
