/* Lot E (06/10/2026) — la visite guidée et les aides au fil de l'eau, nouvelle
 * version (maquettes de Tatianna du 02/10, Drive « New didactique »).
 *
 * Porté des maquettes `Visite_guidee_*_2oct26.html` et
 * `Accompagnement_*_2oct26.html` : fenêtres crème avec la pose d'Auguste bord à
 * bord à droite, bulles de 384 px au liseré doré, halo autour de l'élément
 * commenté. Les classes sont préfixées `gt-`. Aucun style n'est écrit dans les
 * vues (règle de la maison).
 */

.gt-layer {
  --gt-ink: #1A1614;
  --gt-text: #2C2C2C;
  --gt-sub: #6B6660;
  --gt-mute: #8A857A;
  --gt-line: #E5E2DC;
  --gt-gold: var(--gold-500);
  --gt-gold-deep: var(--gold-deep);
  --gt-gold-soft: #FFF8E6;
  --gt-gold-ring: var(--gold-300);
  --gt-green: #2D7A4F;
  --gt-green-bg: #EAF4EE;
  --gt-cream: linear-gradient(100deg, #FFFDF9 0%, #FAF7F1 45%, #F4EFE6 100%);
  --gt-gold-fill: var(--gold-fill);
  --gt-gold-border: linear-gradient(135deg, var(--gold-200), #FFFFFF 38%, #F3EAD2 62%, var(--gold-primary));
  --gt-shadow: 0 24px 60px rgba(44, 44, 44, .18);
  position: fixed;
  inset: 0;
  /* Au-dessus de tout ce qu'elle commente : la plus haute valeur du produit
     est 9999 (`recruiter_expert_search.css`). */
  z-index: 10000;
  pointer-events: none;
  color: var(--gt-text);
}

/* Le voile : transparent pendant une bulle (on ne clique pas l'écran sous la
   visite), sombre et flou derrière une fenêtre. */
.gt-veil { display: none; position: fixed; inset: 0; pointer-events: auto; }
.gt-veil.is-on { display: block; }
.gt-veil.is-full,
.gt-layer.is-open > .gt-veil { display: block; background: rgba(26, 22, 20, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Le halo : il entoure l'élément et assombrit le reste. */
.gt-spot {
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--gt-gold-ring), 0 0 0 8px rgba(208, 184, 126, .22), 0 0 0 9999px rgba(26, 22, 20, .42);
  transition: all .3s ease;
  pointer-events: none;
}
.gt-spot[hidden] { display: none; }

.gt-stage { position: fixed; inset: 0; pointer-events: none; }
.gt-stage > * { pointer-events: auto; }
.gt-stage.is-modal,
.gt-layer.is-open > .gt-stage { display: flex; align-items: center; justify-content: center; padding: 16px; }

/* ── Les boutons ─────────────────────────────────────────────────────────── */

.gt-btn-gold,
.gt-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.gt-btn-gold { border: 0; background: var(--gt-gold-fill); color: #fff; text-shadow: 0 1px 2px rgba(60, 44, 10, .45); box-shadow: 0 6px 18px rgba(163, 133, 67, .28); }
.gt-btn-ghost { border: 1px solid var(--gt-line); background: #fff; color: var(--gt-text); }
.gt-btn-gold:hover { filter: brightness(1.03); }
.gt-btn-ghost:hover { background: #F8F6F2; }
.gt-inline-form { display: inline-flex; margin: 0; }

/* ── Les fenêtres ────────────────────────────────────────────────────────── */

.gt-modal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 250px;
  width: min(780px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--gt-cream);
  border: 1px solid #fff;
  outline: 1px solid var(--gt-line);
  border-radius: 24px;
  box-shadow: var(--gt-shadow);
  animation: gt-pop .3s ease;
}
@keyframes gt-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.gt-modal-por {
  order: 2;
  position: relative;
  min-height: 320px;
  border-radius: 0 24px 24px 0;
  background-size: cover;
  background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}
.gt-modal-ct { padding: 30px 10px 26px 32px; min-width: 0; }
.gt-modal-ct p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #4A4640; }

.gt-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gt-line);
  background: #fff;
  color: var(--gt-text);
  cursor: pointer;
}
.gt-x svg { width: 16px; height: 16px; }

.gt-modal-ct .gt-kick { font-size: 12.5px; color: #4A4640; margin: 0 0 6px; }
.gt-kick b { color: var(--gt-ink); }
.gt-okdot { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--gt-green-bg); color: var(--gt-green); font-size: 10.5px; font-weight: 700; }

.gt-h2 {
  margin: 0 0 12px;
  padding-right: 30px;
  font: italic 600 27px/1.2 Georgia, "Times New Roman", serif;
  color: var(--gt-ink);
}
.gt-big {
  display: block;
  padding: 0 .04em .06em 0;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 58px;
  line-height: 1.18;
  letter-spacing: -.02em;
  background: var(--gold-fill-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gt-modal-ct .gt-soft { font-size: 13.5px; }
.gt-modal-ct .gt-note { font-size: 12.5px; color: var(--gt-mute); margin-top: 10px; }

.gt-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.gt-btns--even { flex-wrap: nowrap; gap: 8px; }
.gt-btns--even > * { flex: 1 1 0; min-width: 0; padding: 10px 8px; white-space: normal; text-align: center; }

.gt-modal-ct .gt-links { margin-top: 12px; font-size: 12.5px; }
.gt-links a { color: var(--gt-mute); text-decoration: underline; }

/* Bienvenue sans besoin : trois portes. */
.gt-doors { display: grid; gap: 8px; margin: 14px 0 4px; }
.gt-door {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gt-line);
  border-radius: 14px;
  background: #fff;
  color: var(--gt-text);
  text-decoration: none;
}
.gt-door:hover { border-color: var(--gold-primary); }
.gt-door > span:first-child { display: grid; gap: 2px; flex: 1; }
.gt-door b { font-size: 14px; color: var(--gt-ink); }
.gt-door span span { font-size: 12.5px; color: var(--gt-mute); }
.gt-door-ar { color: var(--gt-gold); font-weight: 700; }

/* Identité : les trois points. */
.gt-checks { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 6px; }
.gt-checks li { display: flex; gap: 8px; font-size: 13.5px; color: #4A4640; }
.gt-checks li::before { content: "✓"; color: var(--gt-green); font-weight: 700; }

/* Maison : l'adresse du site. */
.gt-urlrow { display: flex; gap: 8px; margin: 12px 0 6px; }
.gt-urlrow[hidden] { display: none; }
.gt-urlrow input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--gt-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.gt-modal-ct .gt-ok,
.gt-modal-ct .gt-err { font-size: 13px; border-radius: 10px; padding: 8px 12px; }
.gt-modal-ct .gt-ok { background: var(--gt-green-bg); color: #1B5E3B; }
.gt-modal-ct .gt-err { background: #FBEDEB; color: #8A2E24; }
.gt-modal [hidden] { display: none !important; }

/* Visibilité : la carte « Ma visibilité » du tableau de bord. */
.gt-vcard { border: 1px solid var(--gt-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(44, 44, 44, .04); padding: 16px 18px; margin: 12px 0 6px; }
.gt-vhd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: 15px; color: var(--gt-text); }
.gt-vhd svg { width: 18px; height: 18px; stroke: var(--gt-gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gt-vbdg { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gt-vbdg i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gt-vbdg.is-masque { background: #F4F2EE; color: var(--gt-mute); }
.gt-vbdg.is-visible { background: var(--gt-green-bg); color: #1B7A4E; }
.gt-vbdg.is-offmarket { background: #FAF4E6; color: var(--gt-gold); }
.gt-vseg { display: grid; grid-template-columns: repeat(3, 1fr); background: #F4F2EE; border-radius: 10px; padding: 3px; gap: 4px; }
.gt-vseg button { border: 0; background: none; border-radius: 8px; padding: 8px 4px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--gt-mute); cursor: pointer; }
.gt-vseg button[aria-checked="true"] { color: #fff; }
.gt-vseg button.is-masque[aria-checked="true"] { background: #6B665D; }
.gt-vseg button.is-visible[aria-checked="true"] { background: #1B7A4E; }
.gt-vseg button.is-offmarket[aria-checked="true"] { background: var(--gold-600); }
.gt-modal-ct .gt-vdesc { font-size: 12.5px; color: var(--gt-mute); line-height: 1.5; margin: 10px 0 0; min-height: 38px; }
.gt-vfacts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.gt-fact { display: inline-flex; align-items: center; gap: 6px; color: #3A342C; }
.gt-fact-dot { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.gt-fact.is-yes .gt-fact-dot { background: var(--gt-green-bg); color: #1B7A4E; }
.gt-fact.is-no { color: var(--gt-mute); }
.gt-fact.is-no .gt-fact-dot { background: #F4F2EE; color: #A8A399; }
.gt-modal-ct .gt-vdorm { margin: 10px 0 0; font-size: 12px; color: #5C5448; background: #F7F5F0; border: 1px solid #ECE7DC; border-radius: 10px; padding: 8px 10px; }
.gt-modal-ct .gt-vmore { font-size: 13px; }
.gt-vmore a { color: var(--gt-gold-deep); font-weight: 600; text-decoration: none; }
.gt-vmore a:hover { text-decoration: underline; }

/* Point de départ : des lignes en texte simple, sans encadré. */
.gt-recap { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 12px; }
.gt-recap li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--gt-text); }
.gt-recap b { color: var(--gt-ink); }
.gt-ic { width: 16px; flex: 0 0 16px; text-align: center; font-weight: 700; color: var(--gt-gold); }
.gt-how { display: block; font-size: 13px; color: #8A7F70; margin-top: 2px; }
.gt-act { background: none; border: 0; padding: 0 0 0 4px; font: inherit; font-weight: 600; color: var(--gt-gold); cursor: pointer; white-space: nowrap; }
.gt-act:hover { text-decoration: underline; }

/* La ligne « En Découverte ». */
.gt-layer .gt-dcv { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--gold-800); background: var(--gt-gold-soft); border: 1px solid var(--gold-200); border-radius: 12px; padding: 8px 12px; }
.gt-dcv b { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gt-gold-deep); margin-bottom: 2px; }

/* ── Les bulles ──────────────────────────────────────────────────────────── */

.gt-bubble {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 384px;
  max-width: calc(100vw - 16px);
  padding: 18px 20px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--gt-cream) padding-box, var(--gt-gold-border) border-box;
  box-shadow: var(--gt-shadow);
  transition: opacity .25s ease;
}
.gt-bubble[hidden] { display: none; }
.gt-bubble.is-measuring { visibility: hidden; }
.gt-bubble::after {
  content: "";
  position: absolute;
  display: none;
  width: 14px;
  height: 14px;
  background: #F8F4EC;
  border: 1px solid var(--gt-line);
  transform: rotate(45deg);
}
.gt-bubble[data-place="below"]::after { display: block; top: -8px; left: var(--ax, 30px); border-right: 0; border-bottom: 0; }
.gt-bubble[data-place="above"]::after { display: block; bottom: -8px; left: var(--ax, 30px); border-left: 0; border-top: 0; }
.gt-bubble[data-place="right"]::after { display: block; left: -8px; top: var(--ay, 30px); border-right: 0; border-top: 0; }
.gt-bubble[data-place="left"]::after { display: block; right: -8px; top: var(--ay, 30px); border-left: 0; border-bottom: 0; }

.gt-bh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gt-av { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold-200); object-fit: cover; }
.gt-who { font-size: 12.5px; color: var(--gt-text); min-width: 0; }
.gt-who b { color: var(--gt-ink); }
.gt-count { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gt-gold-deep); background: var(--gt-gold-soft); border: 1px solid var(--gold-200); border-radius: 999px; padding: 2px 8px; }
.gt-bx { flex: none; width: 28px; height: 28px; margin-left: 6px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gt-line); background: #fff; color: var(--gt-text); cursor: pointer; padding: 0; }
.gt-bubble--tip .gt-bx { margin-left: auto; }
.gt-bx svg { width: 14px; height: 14px; }
.gt-bx:hover { background: #F8F6F2; }
.gt-title { margin: 4px 0 6px; font: italic 600 20px/1.25 Georgia, "Times New Roman", serif; color: var(--gt-ink); }
.gt-text { margin: 0; font-size: 14px; line-height: 1.55; color: #4A4640; }
.gt-extra { margin: 6px 0 0; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--gt-text); }

.gt-bf { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gt-line); }
.gt-back { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--gt-line); background: #fff; color: var(--gt-text); font-size: 18px; line-height: 1; cursor: pointer; }
.gt-dots { display: flex; gap: 5px; flex: none; }
.gt-dots i { width: 6px; height: 6px; border-radius: 3px; background: #E3DCCD; }
.gt-dots i.is-on { width: 18px; background: var(--gt-gold); }
.gt-spacer { flex: 1; }
.gt-alt { flex: none; background: #fff; border: 1px solid var(--gt-line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 500; color: var(--gt-text); white-space: nowrap; cursor: pointer; }
.gt-alt:hover { background: #F8F6F2; }
.gt-next { padding: 8px 16px; flex: none; }

/* ── Sous 900 px ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .gt-modal { grid-template-columns: 1fr; }
  .gt-modal-por {
    order: 0;
    min-height: 170px;
    border-radius: 24px 24px 0 0;
    background-position: center 18%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .gt-modal-ct { padding: 18px 18px 20px; }
  .gt-h2 { font-size: 23px; }
  .gt-big { font-size: 48px; }
  /* La bulle devient une feuille, pleine largeur, posée sous ou sur l'élément. */
  .gt-bubble { left: 8px !important; right: 8px; width: auto; max-width: none; }
  .gt-bubble::after { display: none !important; }
}
@media (max-width: 520px) {
  .gt-btns--even { flex-direction: column; }
  .gt-btns--even > * { width: 100%; }
  .gt-urlrow { flex-direction: column; }
  .gt-bf { flex-wrap: wrap; }
}

/* ── « Les astuces d'Auguste » ───────────────────────────────────────────── */

.gt-tips-page { max-width: 760px; margin: 24px auto 40px; }
.gt-tips-h1 { margin: 0 0 6px; font: italic 600 30px/1.2 Georgia, "Times New Roman", serif; color: #1A1614; }
.gt-tips-lead { margin: 0 0 18px; color: #6B6660; font-size: 14.5px; }
.gt-tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gt-tips-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid #E5E2DC; border-radius: 16px; }
.gt-tips-item .gt-av { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold-200); object-fit: cover; }
.gt-tips-body { flex: 1; min-width: 0; }
.gt-tips-theme { margin: 0 0 2px; font-size: 12px; color: #8A857A; }
.gt-tips-theme .is-seen { color: #2D7A4F; }
.gt-tips-title { margin: 0 0 4px; font: italic 600 18px/1.3 Georgia, "Times New Roman", serif; color: #1A1614; }
.gt-tips-text { margin: 0; font-size: 14px; line-height: 1.5; color: #4A4640; }
.gt-tips-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gt-tips-page .gt-btn-gold,
.gt-tips-page .gt-btn-ghost { border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.gt-tips-page .gt-btn-gold { border: 0; color: #fff; background: var(--gold-fill); text-shadow: 0 1px 2px rgba(60, 44, 10, .45); }
.gt-tips-page .gt-btn-ghost { border: 1px solid #E5E2DC; color: #2C2C2C; background: #fff; }
@media (max-width: 520px) { .gt-tips-item { flex-wrap: wrap; } }

/* ── Le jeu de démonstration (AC40.6) ────────────────────────────────────── */

.gt-demo {
  border: 1px dashed rgba(163, 133, 67, .55);
  border-radius: 14px;
  background: #FBF6EC;
  padding: 14px 16px;
  margin: 12px 0;
}

.gt-demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Le marqueur. Il n'est jamais optionnel : c'est lui qui empêche de prendre un
   exemple pour une donnée réelle (AC40.6). */
.gt-demo-badge,
.gt-demo-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gt-gold-demo-ink);
  background: rgba(251, 246, 236, .95);
  border: 1px dashed rgba(163, 133, 67, .55);
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}

.gt-demo-list,
.gt-demo-cards,
.gt-demo-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-demo-cards {
  flex-direction: row;
  flex-wrap: wrap;
}

.gt-demo-row,
.gt-demo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #ECE6DB;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #4A463F;
}

.gt-demo-card {
  flex-direction: column;
  align-items: flex-start;
  width: 176px;
}

.gt-demo-name {
  font-weight: 600;
  color: #2C2C2C;
}

.gt-demo-meta,
.gt-demo-when {
  color: #8A857C;
}

.gt-demo-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gt-demo-tags span {
  font-size: 10.5px;
  border: 1px solid #ECE6DB;
  border-radius: 99px;
  padding: 2px 8px;
}

.gt-demo-msg {
  background: #fff;
  border: 1px solid #ECE6DB;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  max-width: 82%;
}

.gt-demo-msg.is-us {
  align-self: flex-end;
  background: #FBF6EC;
}

.gt-demo-msg p {
  margin: 0 0 4px;
}

.gt-demo-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #ECE6DB;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  flex-wrap: wrap;
}

.gt-demo-compose-hint {
  color: #8A857C;
  font-size: 12px;
}

@media (max-width: 900px) {
  .gt-demo-card {
    width: 100%;
  }
}
