/* ═══════════════════════════════════════════
   HIJABI FIT — Bilan Sens (quiz)
   Palette : noir #1A1A1A · blanc #FFFFFF · rose #C2185B
   (variables historiques --kaki/--or/--beige conservées pour ne pas casser
   tout le code qui les référence — seules leurs VALEURS ont changé)
   Typo : Rajdhani (titres) · Inter (corps)
════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --kaki:   #2B1B22;
  --kaki-dark: #6b4a56;
  --or:     #C2185B;
  --beige:  #FDF3F6;
  --noir:   #1A1A1A;
  --blanc:  #FFFFFF;
  --gris:   #6b7280;
  --rouge:  #a13a3a;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--noir);
  background: radial-gradient(ellipse 1200px 800px at 50% -10%, #fce4ec 0%, var(--beige) 55%);
}

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Bouton ── */
.btn {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  transition: background .2s, transform .15s;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0447f 0%, var(--or) 55%, #9c1249 100%);
  color: var(--blanc);
  box-shadow: 0 6px 18px rgba(194, 24, 91, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #ec5c92 0%, #d4166a 55%, #a3134f 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(194, 24, 91, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover::before { left: 125%; }
.btn--large { font-size: 1.2rem; padding: 16px 40px; width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn:disabled::before { display: none; }

/* ══ TOPBAR (progression) ══ */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e4ddd0;
  background: var(--beige);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__quit {
  background: none;
  border: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
  cursor: pointer;
  flex-shrink: 0;
}

.topbar__progress {
  flex: 1;
  height: 3px;
  background: #e4ddd0;
  border-radius: 2px;
  overflow: hidden;
}

.topbar__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e0447f, var(--or));
  box-shadow: 0 0 8px rgba(194, 24, 91, .5);
  transition: width .3s ease;
}

.topbar__count {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--gris);
  flex-shrink: 0;
}

/* ══ SCREENS ══ */
main.container { padding-top: 56px; padding-bottom: 64px; }

.screen { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

/* ── Intro ── */
#screen-intro { text-align: center; }

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--kaki-dark);
  margin-bottom: .9rem;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  color: var(--kaki);
  margin-bottom: 1.2rem;
}

.hero-title em { color: var(--or); font-style: normal; }

.hero-source { font-size: .95rem; color: var(--kaki-dark); font-weight: 500; margin-bottom: 1.5rem; }

.hero-sub {
  font-size: 1.08rem;
  color: #4a4a4a;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-reassurance { margin-top: .85rem; font-size: .85rem; color: var(--gris); }

/* ── Photo de fond (transparence constante et équilibrée, pas de fondu vers du plein) ── */
/* Pas de photo pour l'instant (site "sans hommes en image") — un dégradé
   rose doux fait office de fond plein-écran, remplaçable plus tard par une
   vraie photo (même structure : background-image sur .photo-bg--*). */
.photo-bg {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -56px;
  padding: 72px 24px 56px;
  background: linear-gradient(160deg, #fdf1f5 0%, #f7d9e3 55%, #f0bdd0 100%);
}

.photo-bg::before { content: ''; position: absolute; inset: 0; }
.photo-bg > * {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__num {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--kaki);
}

.stat__label {
  font-size: .82rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Bio ── */
.morpho-axis-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--kaki);
  margin: 1.75rem auto .5rem;
}

.bio-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2rem auto 0;
}

.bio-fields--2 {
  grid-template-columns: repeat(2, 1fr);
  margin: 1.25rem auto 2.5rem;
}

.bio-fields select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--noir);
  background: var(--beige);
  border: 1px solid #ded8cc;
  border-radius: var(--radius);
  padding: 10px 12px;
}

/* ── Question ── */
.question-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  color: var(--kaki);
  margin-bottom: .6rem;
}

.question-sub { color: var(--gris); font-size: 1rem; margin-bottom: 2rem; }

.question-title--light { color: var(--blanc); }
.question-sub--light { color: #e7e3d9; }

.options { display: flex; flex-direction: column; gap: 14px; }

.option-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--blanc);
  border: 1px solid #e4ddd0;
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: var(--noir);
  width: 100%;
}

.option-card:hover { border-color: var(--or); transform: translateX(2px); }

.option-card__badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kaki);
  color: var(--beige);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.skip-link {
  display: block;
  margin: -4px 0 1.5rem;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kaki-dark);
  text-decoration: underline;
  cursor: pointer;
}
.skip-link:hover { color: var(--or); }

.nav-link {
  background: none;
  border: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: var(--gris);
  cursor: pointer;
  font-size: .95rem;
}

.nav-hint { font-size: .85rem; color: var(--gris); }

/* ── Gate (teaser + capture) ── */
.badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.gate-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  color: var(--kaki);
  line-height: 1.2;
  margin-bottom: .6rem;
}

.gate-title em { font-style: normal; }

.gate-sub { color: #4a4a4a; font-size: 1.05rem; margin-bottom: 1.75rem; }

.reveal-box {
  background: var(--blanc);
  border-radius: var(--radius);
  border-left: 4px solid var(--or);
  padding: 24px 26px;
  margin-bottom: 2rem;
}

.reveal-box__label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kaki);
  margin-bottom: .9rem;
}

.reveal-box__list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.reveal-box__list li {
  font-size: .96rem;
  padding-left: 1.4rem;
  position: relative;
  color: #3a3a3a;
}

.reveal-box__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--or);
  font-weight: 700;
}

#gate-form { background: var(--blanc); border-radius: var(--radius); padding: 28px; border-top: 3px solid var(--or); }

.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

label {
  display: block;
  font-weight: 500;
  font-size: .92rem;
  color: var(--kaki-dark);
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--noir);
  background: var(--beige);
  border: 1px solid #ded8cc;
  border-radius: var(--radius);
  padding: 10px 12px;
}

input:focus { outline: none; border-color: var(--or); }

.field--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.field--checkbox input[type="checkbox"] { margin-top: 3px; accent-color: var(--or); flex-shrink: 0; }

.form-error { margin-top: 12px; color: var(--rouge); font-size: .92rem; text-align: center; }

/* ── Résultat ── */
.result-header {
  position: relative;
  background: var(--kaki);
  margin: -56px -24px 0;
  padding: 64px 24px 48px;
  text-align: center;
}

.result-header > * { position: relative; z-index: 1; }

.result-header--stable { background: linear-gradient(135deg, #5C8374, #4a6c60); }
.result-header--yoyo { background: linear-gradient(135deg, #C2185B, #9c1249); }
.result-header--decrochage { background: linear-gradient(135deg, #a13a3a, #7d2c2c); }

.result-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.result-header__badge-square {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.result-header__hello { color: #d1cfc9; font-size: .95rem; margin-bottom: .3rem; }

.result-header__title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--blanc);
  line-height: 1.1;
  margin-bottom: .6rem;
}

.result-header__tagline { color: #d1cfc9; font-size: 1.05rem; max-width: 480px; margin: 0 auto 1.5rem; }

.result-header__score {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--or);
}

.result-header__score-max { font-size: 1rem; font-weight: 500; color: #a0a89a; }

.result-header__bio { margin-top: .75rem; font-size: .85rem; color: #a0a89a; }

.zones-section, .chart-section, .message-section, .fiche-section { padding: 56px 0; }

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--kaki);
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.zone-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 20px 18px;
  border-top: 4px solid #ccc;
  opacity: .55;
}

.zone-card.is-active { opacity: 1; box-shadow: 0 8px 24px rgba(194, 24, 91, .16), 0 2px 6px rgba(0,0,0,.06); transform: translateY(-4px); }

.zone-card__tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: .7rem;
}

.zone-card__name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.zone-card__desc { font-size: .88rem; color: #4a4a4a; }

.chart-intro, .fiche-intro { color: #4a4a4a; margin-bottom: 1.5rem; }

.fiche-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 22px rgba(194, 24, 91, .08), 0 1px 3px rgba(0,0,0,.05);
  border-top: 3px solid var(--or);
}

.fiche-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }

.fiche-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee6d8;
  font-size: .98rem;
}

.fiche-row:last-child { border-bottom: none; }

.fiche-row__label { color: var(--kaki-dark); font-weight: 500; }
.fiche-row__value { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--noir); }

.fiche-caption { font-size: .85rem; color: var(--gris); margin-top: 1rem; }

/* ── Jauges graduées (IMC / taux de graisse) : segments proportionnels
   + curseur positionné exactement sur la valeur réelle ── */
.gauge { display: flex; gap: 8px; flex-wrap: wrap; }

.precise-gauge { position: relative; padding-top: 22px; width: 100%; }

.precise-gauge__track {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}

.precise-gauge__seg { flex-shrink: 0; }

.precise-gauge__labels { display: flex; margin-top: 8px; }

.precise-gauge__tick { flex-shrink: 0; text-align: center; }

/* Mode graduations fixes (ex: taux de graisse) : positionnement absolu par
   valeur réelle plutôt que par largeur de bande, pour éviter que les
   étiquettes ne se chevauchent quand les bandes de couleur sont larges. */
.precise-gauge__labels--ticks { position: relative; height: 28px; margin-top: 6px; }

.precise-gauge__labels--ticks .precise-gauge__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.precise-gauge__tick-range {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .78rem;
}

.precise-gauge__tick-label {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--gris);
}

.precise-gauge__cursor {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.precise-gauge__cursor span {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--rouge);
}

.precise-gauge__cursor::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 2px;
  height: 13px;
  background: var(--rouge);
}

/* ── Morphotype ── */
.morphotype-card { display: flex; align-items: center; gap: 20px; }


.morphotype-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--kaki); font-size: 1.15rem; margin-bottom: .3rem; }

/* ── Projection 3 mois ── */
.projection-bars { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

.projection-bar-group__label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--kaki);
  margin-bottom: 8px;
}

.projection-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.projection-bar-row__tag {
  flex-shrink: 0;
  width: 58px;
  font-size: .72rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.projection-bar-track { flex: 1; height: 10px; background: #eee; border-radius: 5px; overflow: hidden; }
.projection-bar-fill { height: 100%; border-radius: 5px; transition: width .3s ease; }

.projection-bar-row__val {
  flex-shrink: 0;
  width: 52px;
  text-align: right;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--noir);
}

/* ── Type de ventre ── */
.bellytype-grid { display: flex; flex-direction: column; gap: 12px; }

.bellytype-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 16px 20px;
  border-left: 4px solid #ddd;
  opacity: .55;
}

.bellytype-card.is-active {
  opacity: 1;
  border-left-color: var(--or);
  box-shadow: 0 6px 20px rgba(194, 24, 91, .14), 0 2px 6px rgba(0,0,0,.06);
}

.bellytype-card__name { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--kaki); margin-bottom: .2rem; }
.bellytype-card__desc { font-size: .88rem; color: #4a4a4a; }
.bellytype-card__tag {
  flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--or);
}

.bellytype-card__meaning { font-size: .85rem; color: var(--kaki-dark); margin-top: .6rem; padding-top: .6rem; border-top: 1px solid #e4ddd0; }

/* ── Analyse complète ── */
.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.analysis-card { background: var(--blanc); border-radius: var(--radius); padding: 22px; }

.analysis-card__title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--kaki);
  font-size: 1.05rem;
  margin-bottom: .8rem;
}

.analysis-card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.analysis-card__list li { font-size: .88rem; color: #4a4a4a; padding-left: 18px; position: relative; }
.analysis-card__list li::before { content: '—'; position: absolute; left: 0; color: var(--or); }

.avoid-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.avoid-list li {
  background: var(--blanc);
  border-left: 3px solid var(--rouge);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  color: #4a4a4a;
}

.chart-card { background: var(--blanc); border-radius: var(--radius); padding: 24px; }

.chart-legend { display: flex; gap: 20px; margin-bottom: 1rem; flex-wrap: wrap; }
.chart-legend span { font-size: .85rem; color: #4a4a4a; display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.chart-caption { font-size: .85rem; color: var(--gris); margin-top: 1rem; }

.message-card { background: var(--blanc); border-radius: var(--radius); padding: 28px; display: flex; gap: 22px; align-items: flex-start; }

.message-card__photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.message-card__text { font-size: 1rem; line-height: 1.7; color: #2a2a2a; font-style: italic; margin-bottom: .8rem; }

.message-card__signature { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--kaki); font-size: .95rem; }

.cta-final { background: var(--kaki); margin: 0 -24px; padding: 64px 24px; text-align: center; }

.cta-final__title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--blanc);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-final__sub { color: #d1cfc9; margin-bottom: 1.75rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-final__reassurance { margin-top: .75rem; font-size: .85rem; color: #a0a89a; }
.cta-final .btn { max-width: 360px; margin: 0 auto; }

/* ══ FOOTER ══ */
.footer { background: var(--noir); padding: 32px 0; text-align: center; }
.footer__brand { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--or); letter-spacing: .08em; text-transform: uppercase; }
.footer__sub { font-size: .85rem; color: #6b7280; margin-top: .2rem; }
.footer__ctp { font-size: .8rem; color: #4a4a4a; margin-top: .75rem; }
.footer__ctp a { color: #6b7280; text-decoration: none; }
.footer__ctp a:hover { color: var(--or); }

@media (max-width: 700px) {
  .zones-grid { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .message-card { flex-direction: column; text-align: center; }
  .message-card__photo { margin: 0 auto; }
  .stats-row { gap: 24px; }
  .bio-fields, .bio-fields--2 { grid-template-columns: 1fr; }
  .gauge { flex-direction: column; }
  .bellytype-card { flex-direction: column; text-align: center; }
  .morphotype-card { flex-direction: column; text-align: center; }
}
