/* ============================================================
   PROMPTWIS(C)E : landing.css
   La vitrine : hero, principes, manche, écrans, hôtes, hub
   ============================================================ */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); position: relative; z-index: 1; }

/* ---------- Navigation collante ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, #fff 0%);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 18px; padding: 11px 0; }
.nav .pw-wordmark { font-size: 21px; }
.nav .pw-wordmark .c { color: var(--rose); }
.nav__links { display: flex; gap: 16px; margin-left: auto; align-items: center; }
.nav__links a:not(.pw-btn) {
  font-weight: 600; font-size: 13.5px; color: var(--ink-soft);
  text-decoration: none; padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav__links a:not(.pw-btn):hover { color: var(--ink); border-color: var(--rose); }
.nav__links a.pw-btn { text-decoration: none; }
.nav__cta { padding: 8px 18px; }
.nav__cta.pw-btn--primary { color: var(--paper-2); }
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.lang-switch button {
  font-family: var(--font-mono); font-weight: 700; font-size: 11.5px;
  letter-spacing: .06em;
  padding: 7px 11px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-faint);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch button.on { background: var(--ink); color: var(--paper-2); }
@media (max-width: 820px) { .nav__links a:not(.pw-btn) { display: none; } }

/* ---------- Hero --------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(36px, 7vh, 76px) 0 clamp(28px, 5vh, 56px);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose);
}
.eyebrow::before { content: ''; width: 26px; border-top: 3px solid var(--rose); border-radius: 2px; flex: none; }
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 14px 0 16px;
}
.hero h1 .flip-word { color: var(--prompt-bold); }
.hero .lede { font-size: clamp(15.5px, 1.8vw, 18.5px); line-height: 1.62; color: var(--ink-soft); max-width: 48ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__meta { margin-top: 20px; font-size: 13px; color: var(--ink-faint); display: flex; gap: 8px 16px; flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta .ic { width: 14px; height: 14px; color: var(--lens-bold); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lens-deep); font-weight: 600; margin-top: 16px; }
.live-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--lens-bold); animation: pw-breathe-dot 1.6s ease-in-out infinite; flex: none; }
@keyframes pw-breathe-dot { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.5); opacity: 1; } }

/* L'éventail du hero : une vraie main de cartes tenue en arc.
   Deux couches par carte pour composer sans conflit :
   .fan-slot  = l'assise dans l'éventail (rotation + décalage d'arc, survol)
   .fan-float = la respiration idle (léger flottement, déphasé par carte)
   La carte a une hauteur fixe (aspect calé sur --cw) : jamais une plus longue,
   jamais un débordement sur le texte, jamais de rognage. */
.fan {
  --cw: clamp(126px, 11.8vw, 160px);
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  min-height: calc(var(--cw) * 1.9);
  /* retrait droit : la rotation de la carte du bord élargit sa boîte */
  padding: 26px 28px 40px 0;
  perspective: 1600px;
}
@media (max-width: 900px) { .fan { justify-content: center; --cw: clamp(128px, 20vw, 168px); } }
/* halo doux derrière l'éventail, aux couleurs de la marque */
.fan::before {
  content: ''; position: absolute; inset: 8% 4% 14%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 30% 32%, color-mix(in srgb, var(--prompt-bold) 22%, transparent), transparent 70%),
    radial-gradient(58% 55% at 72% 40%, color-mix(in srgb, var(--spec-bold) 20%, transparent), transparent 72%),
    radial-gradient(60% 60% at 52% 78%, color-mix(in srgb, var(--rose) 14%, transparent), transparent 72%);
  filter: blur(34px);
  opacity: .55;
}
.fan-slot {
  position: relative; z-index: 1;
  width: var(--cw); flex: none;
  transform-origin: 50% 128%;               /* pivot sous les cartes : vrai arc */
  transform: rotate(var(--fr, 0deg)) translateY(var(--fy, 0px));
  transition: transform var(--t-med) var(--spring), filter var(--t-med) var(--ease);
  will-change: transform;
  cursor: pointer;
}
.fan-slot + .fan-slot { margin-left: calc(var(--cw) * -0.34); }
/* les cartes du bord sont légèrement en retrait (profondeur) */
.fan-slot { filter: saturate(.96) brightness(.985); }
.fan-slot:nth-child(2), .fan-slot:nth-child(3) { z-index: 2; filter: none; }
/* Une carte retournée reste lisible au-dessus de ses voisines, même sans
   survol (mobile : le doigt part, la carte du bord était recouverte) */
.fan-slot:has(.pw-flip.is-flipped) { z-index: 4; filter: none; }
/* Survol : la carte se redresse À PEINE et reste assise dans son arc
   (l'ancien -22px absolu faisait « sauter » les cartes du bord de 48px) */
.fan-slot:hover, .fan-slot:focus-within {
  transform: rotate(calc(var(--fr, 0deg) * .35)) translateY(calc(var(--fy, 0px) - 10px)) scale(1.03);
  z-index: 6; filter: none;
}
.fan-float { animation: fan-bob 6s var(--ease) infinite; animation-delay: calc(var(--i, 0) * -1.4s); }
@keyframes fan-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(.5deg); }
}
/* Le retournement SUR PLACE : les deux faces partagent la même boîte 2/3.
   La face compacte, plus bavarde, est rognée avec un fondu vers le papier
   de la carte ; l'intégrale vit sur la page « Feuilleter les 64 cartes ». */
.fan .pw-flip { width: 100%; perspective: 1100px; }
.fan .pw-flip__inner { height: calc(var(--cw) * 1.5); min-height: 0; }
.fan .pw-card { min-height: 0; height: 100%; box-shadow: var(--shadow-lift); }
.fan .pw-face { overflow: hidden; }
.fan .pw-face::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52px;
  background: linear-gradient(180deg, transparent, var(--paper-2) 88%);
  pointer-events: none;
}
/* Les crédits repassent AU-DESSUS du fondu : lisibles quand la carte tient,
   clippés hors champ de toute façon quand elle déborde */
.fan .pw-face .pw-card__foot, .deck-slot .pw-face .pw-card__foot { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .fan-float { animation: none; } }
@media (max-width: 1100px) {
  .fan-slot + .fan-slot { margin-left: calc(var(--cw) * -0.44); }
}
/* Petit écran : éventail plus resserré pour tenir dans un téléphone */
@media (max-width: 600px) {
  .fan { --cw: clamp(116px, 27vw, 148px); padding-right: 16px; }
  .fan-slot + .fan-slot { margin-left: calc(var(--cw) * -0.52); }
}

.fan__hint { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

/* ---------- Sections ------------------------------------------ */
section.band { padding: clamp(44px, 7vh, 78px) 0; }
.band + .band { border-top: 2px dotted var(--line); }
.band h2 { font-size: clamp(27px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 12px; }
.band .intro { font-size: 16px; color: var(--ink-soft); max-width: 66ch; margin-top: 14px; line-height: 1.65; }
.band .intro em { font-style: normal; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }

/* Révélation au défilement */
.rev { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--spring); }
.rev.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; transition: none; } }

/* ---------- Piliers ------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.pillar {
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pillar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--fam-bold); }
.pillar .coin {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--fam-tint); color: var(--fam-bold);
  display: grid; place-items: center; margin-bottom: 13px;
}
.pillar .coin .ic { width: 21px; height: 21px; }
.pillar h3 { font-size: 20px; font-weight: 800; margin-bottom: 7px; }
.pillar h3 small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--fam-deep); margin-left: 6px; letter-spacing: .04em; }
.pillar p { font-size: 14px; line-height: 1.56; color: var(--ink-soft); flex: 1; }
.pillar .who { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fam-deep); }

.quote { margin: 40px auto 0; max-width: 700px; text-align: center; }
.quote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.32; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 12.5px; color: var(--ink-faint); }

.byoai {
  margin: 32px auto 0; max-width: 860px;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper-2); border: 1.5px dashed var(--line-strong);
  border-radius: 18px; padding: 16px 20px;
}
.byoai .ic { width: 24px; height: 24px; flex: none; color: var(--prompt-bold); margin-top: 2px; }
.byoai b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.byoai p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Le deck vivant : quatre cartes posées sur la table ---
   Vraies cartes lisibles, inclinées et décalées comme jetées à la main,
   alignées par le haut (bas volontairement irrégulier), qui respirent
   doucement et se redressent au survol. */
.deck-row {
  display: flex; gap: clamp(8px, 1.6vw, 22px);
  justify-content: center; align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 44px; padding-top: 16px;
}
.deck-slot {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform-origin: 50% 30%;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0px));
  transition: transform var(--t-med) var(--spring);
  will-change: transform;
}
.deck-slot .float { animation: fan-bob 6.5s var(--ease) infinite; animation-delay: calc(var(--i, 0) * -1.6s); }
.deck-slot:hover { transform: rotate(0deg) translateY(-10px) scale(1.03); z-index: 5; }
.deck-slot .pw-flip { --cw: clamp(196px, 20vw, 250px); width: var(--cw); cursor: pointer; }
/* Même boîte 2/3 pour les quatre familles : plus de carte plus longue qui
   déséquilibre la rangée. Face rognée en fondu, comme dans l'éventail. */
.deck-slot .pw-flip__inner { height: calc(var(--cw) * 1.5); min-height: 0; }
.deck-slot .pw-flip .pw-card { min-height: 0; height: 100%; box-shadow: var(--shadow-lift); }
.deck-slot .pw-face { overflow: hidden; }
.deck-slot .pw-face::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52px;
  background: linear-gradient(180deg, transparent, var(--paper-2) 88%);
  pointer-events: none;
}
.deck-slot .cap {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fam-deep, var(--ink-soft));
  background: var(--fam-tint, var(--paper-3));
  border-radius: var(--r-pill); padding: 4px 12px;
}
@media (prefers-reduced-motion: reduce) { .deck-slot .float { animation: none; } }
.deck-actions { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- La manche ------------------------------------------- */
.round-stage {
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 36px);
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-x: auto;
}
.round-stage .pw-phases { justify-content: center; min-width: 560px; }
.round-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { border-top: 3px solid var(--fam-bold, var(--line-strong)); padding-top: 11px; }
.fact b { display: block; font-size: 15px; margin-bottom: 4px; }
.fact p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.52; }
.modes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.mode-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 18px;
  font-size: 13.5px;
}
.mode-chip b { font-size: 14px; }
.mode-chip .t { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }

/* ---------- Les trois écrans ------------------------------------ */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.screen-card {
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.screen-card .frame {
  background: var(--paper-3);
  padding: 16px 16px 0;
  height: 148px; overflow: hidden;
}
.screen-card .frame .mock {
  background: var(--paper-2); border: 1.5px solid var(--line-strong); border-bottom: none;
  border-radius: 12px 12px 0 0;
  height: 100%;
  padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.mock .bar { height: 9px; border-radius: 5px; background: var(--paper-3); }
.mock .bar.b1 { width: 62%; background: var(--fam-tint); }
.mock .bar.b2 { width: 84%; }
.mock .bar.b3 { width: 48%; }
.mock .pillrow { display: flex; gap: 6px; }
.mock .pill { height: 16px; border-radius: 100px; flex: 1; background: var(--fam-tint); }
.mock .pill.on { background: var(--fam-bold); }
.mock .big {
  font-family: var(--font-mono); font-weight: 700; font-size: 30px;
  color: var(--fam-deep); letter-spacing: .12em; text-align: center; margin-top: 4px;
}
.screen-card .body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.screen-card h3 { font-size: 18.5px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.screen-card h3 .ic { width: 18px; height: 18px; color: var(--fam-bold); flex: none; }
.screen-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.screen-card .dev {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 600;
  color: var(--fam-deep); background: var(--fam-tint);
  padding: 4px 11px; border-radius: 100px;
}

/* ---------- Les hôtes --------------------------------------------- */
.profs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 46px); margin-top: 30px; }
@media (max-width: 820px) { .profs { grid-template-columns: 1fr; } }
.profs h3 { font-size: 19px; font-weight: 800; margin-bottom: 13px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.52; color: var(--ink-soft); }
.check-list li b { color: var(--ink); }
.check-list .ic { width: 16px; height: 16px; flex: none; color: var(--lens-bold); margin-top: 2px; }
.profs__cta { margin-top: 26px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Le hub ------------------------------------------------ */
.hub { margin-top: 32px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .hub { grid-template-columns: 1fr; } }
.hub__panel {
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 13px;
}
.hub__panel.new { border: 2px solid var(--ink); }
.hub__panel h3 { font-size: 21px; font-weight: 800; }
.hub__panel .sub { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.hub__panel .push { margin-top: auto; }
.hub-code { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hub-code input {
  font-family: var(--font-mono); font-weight: 700; font-size: 25px;
  letter-spacing: .42em; text-transform: uppercase; text-align: center;
  width: 164px; padding: 10px 0 10px 12px;
  border: 2px solid var(--line-strong); border-radius: 14px;
  background: var(--paper); outline: none;
  transition: border-color var(--t-fast);
}
.hub-code input:focus { border-color: var(--ink); }
.hub-status { flex: 1; min-width: 180px; min-height: 22px; font-size: 13.5px; font-weight: 600; color: var(--ink-faint); }
.hub-status.ok { color: var(--lens-deep); }
.hub-status.ko { color: #C4180C; }
.hub-actions { display: flex; flex-direction: column; gap: 10px; }
.hub-actions .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hub-actions .pw-btn[disabled] { opacity: .4; pointer-events: none; }
.copy-mini {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--line-strong);
  cursor: pointer; color: var(--ink);
  transition: transform var(--t-fast) var(--spring), background var(--t-fast), color var(--t-fast);
}
.copy-mini:active { transform: scale(.9); }
.copy-mini[disabled] { opacity: .4; pointer-events: none; }
.copy-mini.done { background: var(--lens-bold); border-color: var(--lens-bold); color: #fff; }
.copy-mini .ic { width: 16px; height: 16px; }

/* ---------- Pied ---------------------------------------------------- */
.foot {
  border-top: 2px dotted var(--line);
  margin-top: 26px;
  padding: 32px 0 42px;
  font-size: 12.5px; color: var(--ink-faint); line-height: 1.7;
}
.foot .pw-wordmark { font-size: 18px; color: var(--ink); }
.foot .pw-wordmark .c { color: var(--rose); }
