/*
Theme Name:  Guide du Proprio — Quiz
Version:     5.0.0
Description: Quiz educatif interactif 30 questions — vendez votre propriete plus cher. Grand Montreal.
Author:      Guide du Proprio
License:     GNU General Public License v2 or later
Text Domain: guideproprio
*/

:root {
  --white:   #FFFFFF;
  --off:     #F9F7F4;
  --light:   #EDE9E3;
  --border:  #DDD8CF;
  --muted:   #7B766E;
  --body:    #2E2B27;
  --heading: #1C1916;
  --cu:      #B8722E;
  --cu-lt:   #FDF1E3;
  --cu-md:   #EEDAB4;
  --green:   #27704A;
  --green-lt:#ECF7F1;
  --red:     #C0392B;
  --red-lt:  #FDF2F1;
  --blue:    #1B5E8C;
  --blue-lt: #EBF4FB;
  --shadow:  0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.11);
  --r: 14px;
  --font-h: 'Fraunces', Georgia, serif;
  --font-b: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--off);
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 66px;
}
h1,h2,h3,h4 { font-family: var(--font-h); color: var(--heading); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.9rem,5vw,3rem); }
h2 { font-size: clamp(1.4rem,3vw,2rem); }
h3 { font-size: 1.15rem; }
em { color: var(--cu); font-style: normal; }
a { color: var(--cu); text-decoration: none; }

/* ── NAV ── */
.pg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  padding: 0.7rem 0;
}
.nav-brand { font-family: var(--font-h); font-size: 1.15rem; font-weight: 800; color: var(--heading); }
.nav-brand span { color: var(--cu); }
.nav-brand small { display: block; font-family: var(--font-b); font-size: 0.57rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lang-pill { display: flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.lang-btn { padding: 0.28rem 0.7rem; font-size: 0.68rem; font-weight: 700; border: none; background: none; cursor: pointer; color: var(--muted); font-family: var(--font-b); transition: all 0.2s; }
.lang-btn.active { background: var(--cu); color: #fff; border-radius: 20px; }
.btn-cta { background: var(--cu); color: #fff; border: none; border-radius: 8px; padding: 0.45rem 1.2rem; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: background 0.2s; font-family: var(--font-b); white-space: nowrap; }
.btn-cta:hover { background: #9A5F25; }

/* ── HERO ── */
.pg-hero {
  background: linear-gradient(160deg, #fff 0%, var(--cu-lt) 100%);
  border-bottom: 1px solid var(--cu-md);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(184,114,46,0.08), transparent);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cu); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-tag::before { content: '✦'; font-size: 0.6rem; }
.pg-hero h1 { margin-bottom: 1rem; }
.pg-hero .sub { font-size: 1.05rem; color: var(--muted); max-width: 540px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--cu-md); }
.hero-stat strong { display: block; font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--cu); line-height: 1; }
.hero-stat span { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; display: block; }

/* ── QUIZ SECTION ── */
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Progress */
.quiz-progress { margin-bottom: 2.5rem; }
.quiz-progress-bar-track { height: 5px; background: var(--light); border-radius: 10px; overflow: hidden; margin-bottom: 0.6rem; }
.quiz-progress-bar-fill { height: 100%; background: var(--cu); border-radius: 10px; transition: width 0.5s ease; }
.quiz-progress-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; display: flex; justify-content: space-between; }

/* Question card */
.quiz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.q-number { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cu); margin-bottom: 0.7rem; }
.q-text { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; color: var(--heading); line-height: 1.35; margin-bottom: 1.8rem; }
.q-hint { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; font-style: italic; }

/* Answer choices */
.choices { display: flex; flex-direction: column; gap: 0.75rem; }
.choice {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--off);
  user-select: none;
}
.choice:hover { border-color: var(--cu-md); background: var(--cu-lt); }
.choice-letter {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--light); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0; transition: all 0.2s;
  border: 2px solid var(--border);
}
.choice-text { font-size: 0.92rem; font-weight: 500; color: var(--body); }
.choice.correct { border-color: var(--green); background: var(--green-lt); pointer-events: none; }
.choice.correct .choice-letter { background: var(--green); color: #fff; border-color: var(--green); }
.choice.wrong { border-color: var(--red); background: var(--red-lt); pointer-events: none; }
.choice.wrong .choice-letter { background: var(--red); color: #fff; border-color: var(--red); }
.choice.disabled { pointer-events: none; opacity: 0.5; }

/* Reveal box */
.reveal-box {
  margin-top: 1.5rem;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  animation: fadeUp 0.3s ease both;
  display: none;
}
.reveal-box.correct-reveal { background: var(--green-lt); border: 1px solid rgba(39,112,74,0.2); }
.reveal-box.wrong-reveal { background: var(--cu-lt); border: 1px solid var(--cu-md); }
.reveal-box .reveal-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.reveal-box.correct-reveal .reveal-title { color: var(--green); }
.reveal-box.wrong-reveal .reveal-title { color: var(--cu); }
.reveal-box .reveal-body { font-size: 0.85rem; color: var(--body); line-height: 1.7; }
.reveal-box .reveal-key { font-weight: 700; color: var(--heading); }

.quiz-next-btn {
  margin-top: 1.5rem;
  width: 100%;
  background: var(--cu); color: #fff;
  border: none; border-radius: 10px;
  padding: 1rem 1.5rem;
  font-family: var(--font-b); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: none;
}
.quiz-next-btn:hover { background: #9A5F25; transform: translateY(-1px); }

/* ── SCORE SCREEN ── */
.score-screen {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeUp 0.5s ease both;
}
.score-circle {
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid var(--cu);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--cu-lt);
}
.score-num { font-family: var(--font-h); font-size: 2.8rem; font-weight: 800; color: var(--cu); line-height: 1; }
.score-denom { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.score-title { font-family: var(--font-h); font-size: 1.6rem; margin-bottom: 0.7rem; }
.score-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; margin: 2rem 0; }
.insight-card { background: var(--off); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; border-left: 4px solid var(--cu); }
.insight-card .insight-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.insight-card h4 { font-size: 0.88rem; margin-bottom: 0.3rem; }
.insight-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ── CHECKLIST SECTION ── */
.checklist-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  animation: fadeUp 0.4s ease both;
}
.section-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cu); margin-bottom: 0.5rem; }
.prop-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.8rem; }
.prop-pill {
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  background: var(--off);
}
.prop-pill:hover { border-color: var(--cu-md); }
.prop-pill.active { background: var(--cu); color: #fff; border-color: var(--cu); }
.ck-zone { margin-bottom: 1.8rem; }
.ck-zone-title { font-size: 0.63rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cu); border-bottom: 2px solid var(--cu-md); padding-bottom: 0.5rem; margin-bottom: 0.9rem; }
.ck-row {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border); border-radius: 9px;
  margin-bottom: 0.55rem; cursor: pointer;
  transition: all 0.2s; background: var(--off);
  user-select: none;
}
.ck-row:hover { border-color: var(--cu-md); background: var(--cu-lt); }
.ck-row.checked { border-color: var(--cu); background: var(--cu-lt); }
.ck-box { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; background: #fff; transition: all 0.2s; margin-top: 1px; }
.ck-row.checked .ck-box { background: var(--cu); border-color: var(--cu); color: #fff; }
.ck-info h5 { font-size: 0.88rem; font-family: var(--font-b); font-weight: 600; margin-bottom: 0.15rem; }
.ck-info p { font-size: 0.76rem; color: var(--muted); margin: 0; line-height: 1.4; }
.ck-tag { margin-left: auto; flex-shrink: 0; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 4px; align-self: center; white-space: nowrap; }
.ck-tag.risk { background: var(--red-lt); color: var(--red); }
.ck-tag.opp { background: var(--green-lt); color: var(--green); }
.ck-row.checked .ck-tag { background: var(--cu-lt); color: var(--cu); }

/* ROI summary */
.roi-summary {
  background: linear-gradient(135deg, var(--heading) 0%, #2E2318 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.roi-block h4 { font-size: 0.72rem; font-weight: 600; opacity: 0.65; font-family: var(--font-b); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.3rem; color: #fff; }
.roi-big { font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; color: var(--cu-md); line-height: 1; }
.roi-note { font-size: 0.72rem; opacity: 0.55; margin-top: 0.2rem; }

/* ── FORM ── */
.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  animation: fadeUp 0.4s ease both;
}
.pg-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.pg-input { width: 100%; background: var(--off); border: 1.5px solid var(--border); border-radius: 8px; color: var(--heading); padding: 0.78rem 1rem; font-family: var(--font-b); font-size: 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.pg-input:focus { border-color: var(--cu); box-shadow: 0 0 0 3px rgba(184,114,46,0.12); background: #fff; }
select.pg-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B766E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-color: var(--off); padding-right: 2.5rem; }
textarea.pg-input { resize: vertical; min-height: 80px; }
.btn-submit { width: 100%; background: var(--cu); color: #fff; border: none; border-radius: 8px; padding: 1rem 1.5rem; font-family: var(--font-b); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.25s, transform 0.15s; letter-spacing: 0.04em; }
.btn-submit:hover { background: #9A5F25; transform: translateY(-1px); }
.form-note { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 0.7rem; line-height: 1.5; }
.form-success { display: none; text-align: center; padding: 2rem; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--green-lt); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.guarantee-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.guarantee-row::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: var(--heading); color: rgba(255,255,255,0.55); padding: 3rem 0 0; margin-top: 5rem; }
.foot-brand { font-family: var(--font-h); font-size: 1.2rem; font-weight: 800; color: #fff; }
.foot-brand span { color: var(--cu-md); }
footer p { font-size: 0.82rem; line-height: 1.7; margin-top: 0.5rem; }
footer h5 { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cu-md); font-family: var(--font-b); margin-bottom: 0.9rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
footer ul a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 2.5rem; padding: 1rem 0; font-size: 0.72rem; color: rgba(255,255,255,0.28); }

/* ── UTILS ── */
.btn-ghost { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--off); color: var(--body); border: 1.5px solid var(--border); border-radius: 8px; padding: 0.85rem 1.8rem; font-family: var(--font-b); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--cu); color: var(--cu); }
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--cu); color: #fff; border: none; border-radius: 8px; padding: 0.9rem 2rem; font-family: var(--font-b); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: #9A5F25; transform: translateY(-1px); }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none !important; }

@media (max-width:640px) {
  .quiz-card, .score-screen, .checklist-section, .form-section { padding: 1.5rem; }
  .insights-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .roi-summary { flex-direction: column; }
  .q-text { font-size: 1.2rem; }
}

/* ── NAV BUTTON PAIR (Précédent + Recommencer) ── */
.nav-btn-pair {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.btn-reshuffle,
.btn-precedent {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-b);
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.btn-reshuffle:hover,
.btn-precedent:hover {
  border-color: var(--cu);
  color: var(--cu);
  background: var(--cu-lt);
}

/* ══ QUIZ-FUNNEL STYLES ════════════════════════════════ */

/* Flow states */
.flow-state { display: none; }
.flow-state.active { display: block; }

/* Qualification buttons */
.qual-options { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.qual-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--off);
  cursor: pointer; text-align: left;
  font-family: var(--font-b); font-size: 0.9rem; font-weight: 500;
  color: var(--body);
  transition: all 0.2s;
  width: 100%;
}
.qual-btn:hover { border-color: var(--cu); background: var(--cu-lt); }
.qual-btn.selected { border-color: var(--cu); background: var(--cu-lt); }
.qual-btn .qual-icon { font-size: 1.3rem; flex-shrink: 0; }
.qual-btn .qual-text strong { display: block; font-weight: 700; color: var(--heading); margin-bottom: 0.15rem; }
.qual-btn .qual-text span { font-size: 0.78rem; color: var(--muted); }

/* Insight table */
.insight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.35s ease both;
}
.insight-header {
  padding: 1.2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--light);
}
.insight-header .tag {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 0.25rem 0.7rem;
  border-radius: 20px; display: inline-block; margin-bottom: 0.6rem;
}
.tag-warning { background: var(--red-lt); color: var(--red); }
.tag-opportunity { background: var(--green-lt); color: var(--green); }
.tag-info { background: var(--blue-lt); color: var(--blue); }
.tag-neutral { background: var(--light); color: var(--muted); }
.insight-header h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.insight-header p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin: 0; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  font-size: 0.63rem; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.7rem 1.2rem; text-align: left;
  background: var(--off); border-bottom: 1px solid var(--border);
}
.compare-table td { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--light); vertical-align: middle; font-size: 0.88rem; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .label { font-weight: 600; color: var(--heading); }
.compare-table .label small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.compare-table .val-bad { color: var(--red); font-weight: 700; }
.compare-table .val-good { color: var(--green); font-weight: 700; }
.compare-table .val-neutral { color: var(--body); font-weight: 600; }
.compare-table .badge-rec {
  display: inline-block; background: var(--cu-lt); color: var(--cu);
  font-size: 0.65rem; font-weight: 800; padding: 0.2rem 0.55rem;
  border-radius: 4px; margin-left: 0.4rem; vertical-align: middle;
}

/* Profile summary before form */
.profile-summary {
  background: linear-gradient(135deg, var(--heading) 0%, #2E2318 100%);
  border-radius: var(--r); padding: 1.8rem 2rem; margin-bottom: 2rem; color: #fff;
}
.profile-summary h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; opacity: 0.8; font-family: var(--font-b); font-weight: 600; }
.profile-items { display: flex; flex-direction: column; gap: 0.6rem; }
.profile-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.07); border-radius: 8px;
  padding: 0.7rem 1rem; font-size: 0.85rem;
}
.profile-item .pi-icon { font-size: 1.1rem; flex-shrink: 0; }
.profile-item .pi-text strong { display: block; color: #fff; font-weight: 600; }
.profile-item .pi-text span { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.profile-item .pi-gain { margin-left: auto; font-family: var(--font-h); font-size: 1rem; font-weight: 800; color: var(--cu-md); white-space: nowrap; }

.total-gain-bar {
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
}
.total-gain-bar .label { font-size: 0.75rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.total-gain-bar .amount { font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--cu-md); }

/* Progress dots */
.flow-dots { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.flow-dot.done { background: var(--green); }
.flow-dot.active { background: var(--cu); width: 24px; border-radius: 4px; }

/* Qualify transition label */
.qual-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cu);
  margin-bottom: 0.5rem; display: block;
}
.qual-question { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; color: var(--heading); line-height: 1.3; margin-bottom: 0.3rem; }
.qual-sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 0; }

/* Insight continue btn */
.btn-insight-continue {
  display: block; width: 100%;
  background: var(--cu); color: #fff; border: none;
  border-radius: 0 0 var(--r) var(--r);
  padding: 1rem 1.5rem;
  font-family: var(--font-b); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  text-align: center;
}
.btn-insight-continue:hover { background: #9A5F25; }

/* ── JOB PHOTO GALLERY ── */
.job-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.job-gallery img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.job-gallery img:hover { transform: scale(1.04); }
.job-gallery.two-col { grid-template-columns: repeat(2, 1fr); }
.job-gallery.one-col { grid-template-columns: 1fr; }
.job-gallery.one-col img { height: 260px; }

/* ── PRICE HERO — cost big, gain small ── */
.price-hero {
  padding: 1.8rem 1.5rem 1.4rem;
  text-align: center;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.price-hero .price-label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem; display: block;
}
.price-hero .price-big {
  font-family: var(--font-h); font-size: 3rem;
  font-weight: 800; color: var(--cu); line-height: 1;
  margin-bottom: 0.3rem;
}
.price-hero .price-sub {
  font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem;
}
.price-hero .gain-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-lt); border: 1px solid rgba(39,112,74,0.2);
  border-radius: 30px; padding: 0.45rem 1.1rem;
  font-size: 0.82rem; font-weight: 700; color: var(--green);
}
.price-hero .gain-pill::before { content: '↑'; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   COMPLETION SCREEN — Écran de fin du quiz
   ═══════════════════════════════════════════════════════════ */

.completion-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

/* Header motivationnel */
.completion-header {
  background: linear-gradient(135deg, #111 0%, #1E1308 100%);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.completion-trophy {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
  animation: bounceIn 0.6s ease both 0.2s;
}
@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.completion-badge {
  display: inline-block;
  background: var(--cu);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.completion-title {
  font-family: var(--font-h);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.completion-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}
.completion-sub strong { color: var(--cu-md); }

/* Teaser du gain — flou avant soumission */
.gain-teaser {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 2.5rem;
  text-align: center;
}
.gain-teaser-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.gain-teaser-amount {
  font-family: var(--font-h);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1rem;
  transition: filter 0.6s ease;
}
.gain-teaser-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.teaser-service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--body);
  font-weight: 600;
  transition: filter 0.6s ease;
}
.gain-teaser-unlock {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Effet flou / révélé */
.blurred {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

/* Formulaire dans le completion card */
.completion-form-wrap {
  padding: 2rem 2.5rem 2.5rem;
}
.completion-form-header {
  text-align: center;
  margin-bottom: 1.8rem;
}
.completion-form-title {
  font-family: var(--font-h);
  font-size: 1.25rem;
  margin: 0.3rem 0 0.5rem;
  color: var(--heading);
}
.completion-form-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.form-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; }

/* Boutons de choix de contact */
.contact-choice-wrap {
  margin-bottom: 1.2rem;
}
.contact-choice-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--off);
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 600;
  color: var(--body);
  transition: all 0.2s;
}
.contact-choice-btn:hover {
  border-color: var(--cu);
  background: var(--cu-lt);
  color: var(--cu);
}
.contact-choice-btn.selected {
  border-color: var(--cu);
  background: var(--cu-lt);
  color: var(--cu);
}
.cc-icon { font-size: 1.4rem; }
.cc-label { font-size: 0.82rem; }

.completion-submit {
  margin-top: 1.2rem;
  font-size: 1rem;
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   RÉSULTATS RÉVÉLÉS — Après soumission
   ═══════════════════════════════════════════════════════════ */

.results-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.results-header {
  background: linear-gradient(135deg, #1a5c30 0%, #0e3820 100%);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  color: #fff;
}
.results-check {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  animation: bounceIn 0.5s ease both;
}
.results-title {
  font-family: var(--font-h);
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 0.6rem;
}
.results-email-notice {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.results-email-notice strong { color: #fff; }

/* Gain révélé */
.results-gain-block {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 2.5rem;
  text-align: center;
}
.results-gain-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.results-gain-amount {
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.4rem;
  animation: revealNum 0.7s ease both;
}
@keyframes revealNum {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.results-gain-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Top 3 priorités */
.results-priorities-wrap {
  padding: 1.8rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.results-priorities-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--heading);
}
.results-priorities-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.result-priority-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: var(--off);
  animation: fadeUp 0.4s ease both;
}
.result-priority-card:nth-child(2) { animation-delay: 0.1s; }
.result-priority-card:nth-child(3) { animation-delay: 0.2s; }
.result-priority-card:last-child { margin-bottom: 0; }

.rpc-rank {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.rpc-body { flex: 1; min-width: 0; }
.rpc-service {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--heading);
  margin-bottom: 0.2rem;
}
.rpc-gain {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.rpc-why {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Garanties */
.results-guarantees {
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.results-guarantees .guarantee-row {
  font-size: 0.82rem;
  color: var(--muted);
}
.results-guarantees .guarantee-row::before { display: none; }

/* Responsive */
@media (max-width: 600px) {
  .completion-header,
  .completion-form-wrap,
  .gain-teaser,
  .results-header,
  .results-gain-block,
  .results-priorities-wrap,
  .results-guarantees { padding-left: 1.25rem; padding-right: 1.25rem; }
  .form-duo { grid-template-columns: 1fr; }
  .completion-title { font-size: 1.35rem; }
  .gain-teaser-amount,
  .results-gain-amount { font-size: 2rem; }
}

/* ── EMAIL-ONLY NOTICE ───────────────────────────────────────── */
.email-only-notice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f0fff5;
  border: 1.5px solid #b8dfc9;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
}
.email-only-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.email-only-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.email-only-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #155724;
}
.email-only-text span {
  font-size: 0.74rem;
  color: #1a5c30;
  line-height: 1.45;
}
.email-only-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #1a7a3e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── SSL DISCLAIMER ──────────────────────────────────────────── */
.ssl-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-top: 0.65rem;
  font-size: 0.71rem;
  color: #777;
  line-height: 1.5;
}
.ssl-lock {
  flex-shrink: 0;
  color: #4a9c6b;
  margin-top: 1px;
}
.ssl-disclaimer strong {
  color: #333;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   POP-UP POST-SOUMISSION
   ═══════════════════════════════════════════════════════════ */

#gp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: overlayIn 0.25s ease both;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#gp-popup {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: popupIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* En-tête */
.popup-header {
  background: linear-gradient(135deg, #111 0%, #1E1308 100%);
  border-radius: 18px 18px 0 0;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  color: #fff;
}
.popup-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
  display: block;
}
.popup-title {
  font-family: var(--font-h);
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.popup-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.55;
}

/* Steps */
.popup-step {
  padding: 1.5rem 1.75rem 1.75rem;
}
.popup-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--font-b);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.popup-back:hover { color: var(--cu); }
.popup-step-title {
  font-family: var(--font-h);
  font-size: 1rem;
  margin: 0 0 1.2rem;
  color: var(--heading);
}

/* Options 3 boutons */
.popup-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--off);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  margin-bottom: 0.65rem;
  font-family: var(--font-b);
}
.popup-opt:last-child { margin-bottom: 0; }
.popup-opt:hover {
  transform: translateX(3px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.popup-opt-oui:hover     { border-color: #1a7a3e; background: #f0fff5; }
.popup-opt-courriel:hover{ border-color: #b8860b; background: #fffdf0; }
.popup-opt-magasine:hover{ border-color: #999;    background: #f5f5f5; }

.popup-opt-icon { font-size: 1rem; flex-shrink: 0; }
.popup-opt-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.popup-opt-body strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  display: block;
}
.popup-opt-body span {
  font-size: 0.74rem;
  color: var(--muted);
}
.popup-opt-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Formulaire OUI */
.popup-field {
  margin-bottom: 1rem;
}
.popup-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.popup-contact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.popup-contact-btn {
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--off);
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--body);
  transition: all 0.2s;
  text-align: center;
}
.popup-contact-btn:hover,
.popup-contact-btn.selected {
  border-color: var(--cu);
  background: var(--cu-lt);
  color: var(--cu);
}
.popup-submit-btn {
  width: 100%;
  background: var(--cu);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-family: var(--font-b);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}
.popup-submit-btn:hover { background: #9A5F25; transform: translateY(-1px); }
.popup-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
}

/* Confirmation */
.popup-confirm-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.75rem;
  display: block;
  animation: bounceIn 0.5s ease both;
}
.popup-confirm-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  text-align: center;
  color: var(--heading);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.popup-confirm-msg {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.popup-close-btn {
  display: block;
  width: 100%;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.popup-close-btn:hover { background: var(--cu-lt); color: var(--cu); border-color: var(--cu); }

/* Bouton X fermeture */
.popup-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.popup-x:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Responsive */
@media (max-width: 560px) {
  .popup-step { padding: 1.25rem 1.25rem 1.5rem; }
  .popup-title { font-size: 1.05rem; }
  .popup-row-2 { grid-template-columns: 1fr; }
  .popup-contact-btns { grid-template-columns: 1fr; }
}

/* ── Lien de sortie discret du popup ────────────────────────── */
.popup-skip-link {
  text-align: center;
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.popup-skip-link a {
  font-size: 0.68rem;
  color: #bbb;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.popup-skip-link a:hover { color: #888; text-decoration: underline; }

/* ── Overlay non-cliquable — curseur normal ─────────────────── */
#gp-popup-overlay { cursor: default; }
#gp-popup         { cursor: auto; }
