/* Le bivouac en dix minutes — démonstrateur.
   Même charte que le reste du site : Lato servie par nous, palette d'atlas.css.
   Ce n'est PAS l'interface de collecte : elle, elle ne s'explique pas, elle s'habite. */

@font-face { font-family: Lato; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/polices/lato-300.woff2") format("woff2"); }
@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/polices/lato-400.woff2") format("woff2"); }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/polices/lato-700.woff2") format("woff2"); }

:root {
  --nuit: #0B0306;
  --nuit-douce: #150A0D;
  --ivoire: #F3EFE9;
  --gris: #8C8279;
  --terre: #C8412F;
  --braise: #7E1E1C;
  --trait: rgba(243, 239, 233, 0.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body {
  background: var(--nuit); color: var(--ivoire);
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300; -webkit-font-smoothing: antialiased;
  overflow: hidden; touch-action: manipulation;
}
:focus-visible { outline: 2px solid var(--ivoire); outline-offset: 4px; }

/* ——— La braise : la seule couleur qui vit derrière tout ——— */
.braise-fond {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 46% at 50% 108%, rgba(200, 65, 47, 0.30), transparent 70%),
    radial-gradient(42% 34% at 12% -8%, rgba(126, 30, 28, 0.22), transparent 72%);
}

/* ——— Les écrans ——— */
.ecran { display: none; position: relative; z-index: 1; height: 100%;
  flex-direction: column; padding: clamp(18px, 3.4vw, 40px) clamp(16px, 5vw, 64px); }
.ecran.la { display: flex; }

.entete { flex: 0 0 auto; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; }
.marque-tente { display: flex; align-items: center; gap: 11px; }
.marque-tente svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.etiquette { text-transform: uppercase; letter-spacing: 0.22em; font-size: clamp(10px, 1.1vw, 13px);
  color: var(--gris); font-weight: 400; }
.etiquette.chaud { color: var(--terre); }
.sceau { color: rgba(243, 239, 233, 0.42); }

.centre { flex: 1 1 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 26px); text-align: center; }
.bas { flex: 0 0 auto; display: flex; justify-content: center; align-items: center;
  gap: 12px; flex-wrap: wrap; padding-top: 18px; }

.gros { font-size: clamp(26px, 4.4vw, 52px); line-height: 1.1; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.035em; text-wrap: balance; max-width: 17ch; }
.moyen { font-size: clamp(16px, 2.1vw, 21px); line-height: 1.6;
  color: rgba(243, 239, 233, 0.84); max-width: 44ch; }
.petit { font-size: clamp(13px, 1.6vw, 16px); line-height: 1.6; color: var(--gris);
  max-width: 42ch; text-wrap: pretty; }

/* ——— Boutons : un mot par bouton, jamais une image muette (D162) ——— */
.bouton { font: inherit; font-size: clamp(15px, 1.9vw, 19px); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--nuit); background: var(--ivoire); border: 0; border-radius: 2px;
  padding: 15px 30px; cursor: pointer; transition: transform .12s ease, background .2s ease; }
.bouton:active { transform: scale(.97); background: #fff; }
.bouton[disabled] { background: rgba(243, 239, 233, 0.22); color: rgba(243, 239, 233, 0.6); }
.lien { font: inherit; font-size: clamp(12px, 1.4vw, 15px); text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gris); background: none; border: 0;
  padding: 14px 16px; cursor: pointer; }
.lien:active { color: var(--ivoire); }
.recommencer { font: inherit; font-size: clamp(10px, 1.1vw, 13px); text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--gris); background: none; border: 0;
  padding: 10px 2px 10px 18px; cursor: pointer; }
.recommencer:active { color: var(--terre); }

/* ——— Le nuage : trois questions qui dérivent ——— */
.nuage { flex: 1 1 auto; position: relative; width: 100%; }
.carte { position: absolute; font: inherit; font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 300; line-height: 1.38; text-align: left; color: var(--ivoire);
  background: var(--nuit-douce); border: 1px solid var(--trait);
  border-left: 2px solid var(--terre); border-radius: 2px;
  padding: 16px 20px; max-width: min(52%, 520px); cursor: pointer; text-wrap: pretty;
  animation: derive var(--derive, 10s) ease-in-out var(--retard, 0s) infinite alternate;
  transition: background .2s ease, border-color .2s ease, transform .12s ease; }
.carte:active { background: #1E0E11; border-color: var(--terre); transform: scale(.985); }
@keyframes derive { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 10px), var(--dy, 14px)); } }

/* ——— La question qu'on a choisie ——— */
/* Elle n'est pas un titre : on la lit comme on la dit, pas en capitales. */
#texte { text-transform: none; letter-spacing: 0; font-size: clamp(24px, 3.8vw, 46px);
  max-width: 20ch; text-wrap: balance; }
#relance { opacity: 0; transition: opacity 1.2s ease; }
.temoin { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vw, 18px); }
.bobines { display: flex; gap: clamp(16px, 2.6vw, 30px); }
.bobine { width: clamp(46px, 6.4vw, 74px); height: clamp(46px, 6.4vw, 74px);
  fill: var(--terre); animation: tourne 2.6s linear infinite; }
.bobine:last-child { animation-duration: 3.4s; }
.bobine .jante { fill: none; stroke: var(--terre); stroke-width: 3; }
@keyframes tourne { to { transform: rotate(360deg); } }

.vumetre { display: flex; gap: 3px; align-items: center; height: 22px; }
.barreau { width: 3px; height: 7px; background: rgba(243, 239, 233, 0.18);
  transition: height .09s ease, background .09s ease; }
.barreau.vif { height: 22px; background: var(--terre); }
.chrono { font-size: clamp(14px, 1.7vw, 18px); letter-spacing: 0.18em; color: var(--gris);
  font-variant-numeric: tabular-nums; }

.echo { position: absolute; color: var(--braise); font-size: clamp(16px, 2.1vw, 23px);
  font-weight: 300; opacity: 0; pointer-events: none; max-width: min(32%, 300px);
  animation: revient 7s ease-in-out both; }
@keyframes revient { 0%, 100% { opacity: 0 } 22% { opacity: .85 } 70% { opacity: .6 } }

/* ——— La carte remise ——— */
.jeton { border: 1px solid var(--trait); border-top: 2px solid var(--terre);
  background: var(--nuit-douce); border-radius: 2px; padding: 26px 34px; text-align: center; }
.jeton .etq { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gris); }
.jeton .num { font-size: clamp(30px, 5.4vw, 52px); font-weight: 700; letter-spacing: 0.02em; margin-top: 10px; }
.efface .num { text-decoration: line-through; text-decoration-color: var(--terre); opacity: .45; }

/* ——— Ce que c'est ——— */
.fiche { display: flex; flex-direction: column; gap: 14px; max-width: 46ch; margin: 0 auto; text-align: left; }
.fiche div { display: flex; gap: 16px; font-size: clamp(14px, 1.9vw, 17px); line-height: 1.5; }
.fiche b { flex: 0 0 7.5em; color: var(--terre); font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: .8em; padding-top: .3em; }
.partenaires { border-top: 1px solid var(--trait); padding-top: 16px; margin-top: 6px;
  max-width: 54ch; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .carte, .bobine { animation: none; }
}

/* ——— Les dessins du dossier : posés sur l'ivoire, comme au pied du site ——— */
/* Ils sont dessinés sur fond blanc : la carte ivoire et le multiply les y fondent,
   exactement comme les kits de la page d'accueil (css/atlas.css). */
.dessin { margin: 0; background: var(--ivoire); border-radius: 4px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dessin img { display: block; width: 100%; height: auto; object-fit: contain;
  mix-blend-mode: multiply; }
.dessin figcaption { font-size: clamp(11px, 1.3vw, 13px); line-height: 1.4; color: #3A2F2B;
  text-align: left; }
.dessin-grand { padding: 18px; }
.dessin-grand img { aspect-ratio: 265 / 352; }

.seuil-deux { flex-direction: row; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 64px); }
.seuil-deux .dessin-grand { flex: 0 0 auto; width: clamp(130px, 19vw, 230px); }
.seuil-mot { display: flex; flex-direction: column; align-items: center;
  gap: clamp(12px, 2vw, 22px); }
@media (max-width: 760px), (orientation: portrait) {
  .seuil-deux { flex-direction: column; gap: clamp(18px, 3vw, 34px); }
  .seuil-deux .dessin-grand { width: clamp(110px, 30vw, 180px); }
}

/* La fiche est dense : les cinq lignes à gauche, les deux dessins à côté.
   Empilés, ils la faisaient déborder sous la ligne des partenaires. */
#e-fiche .centre { display: grid; align-content: center; justify-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "texte kits" "part part"; gap: clamp(14px, 2.4vw, 32px); }
#e-fiche .fiche { grid-area: texte; }
#e-fiche .kits { grid-area: kits; }
#e-fiche .partenaires { grid-area: part; }
@media (max-width: 860px), (orientation: portrait) {
  #e-fiche .centre { grid-template-columns: 1fr; grid-template-areas: "texte" "kits" "part"; }
}
.kits { display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  justify-content: center; }
@media (max-width: 860px), (orientation: portrait) { .kits { flex-direction: row; } }
.kits .dessin { width: clamp(88px, 11vw, 132px); }
/* Le marcheur est très en hauteur, la tente presque carrée : chacun garde
   ses proportions, et c'est la hauteur qui les met au même pas. */
.kits .dessin img { height: clamp(64px, 10.5vh, 112px); width: auto; margin: 0 auto; }

/* Le lien qui sort du démonstrateur : il s'ouvre à côté, on ne perd pas la démo. */
a.bouton { text-decoration: none; display: inline-block; }
.lien-sortant { text-decoration: none; display: inline-block; color: var(--terre); }
.lien-sortant:active { color: var(--ivoire); }

/* Les dessins détourés : posés à même la nuit, sans carte. */
.dessin-nu { display: block; height: auto; object-fit: contain; }
.dessin-tente { width: clamp(130px, 19vw, 230px); flex: 0 0 auto; }
.dessin-marcheur { height: clamp(90px, 16vh, 190px); width: auto; }
@media (max-width: 760px), (orientation: portrait) {
  .dessin-tente { width: clamp(110px, 30vw, 180px); }
}


/* Au seuil : le marcheur et la tente, côte à côte, à la hauteur du titre. */
.kits-seuil { display: flex; gap: 12px; align-items: stretch; flex: 0 0 auto; }
.kits-seuil .dessin { width: clamp(84px, 11vw, 140px); justify-content: center; }
.kits-seuil .dessin img { height: clamp(96px, 20vh, 215px); width: auto; margin: 0 auto; }
@media (max-width: 760px), (orientation: portrait) {
  .kits-seuil .dessin { width: clamp(76px, 22vw, 124px); }
  .kits-seuil .dessin img { height: clamp(86px, 14vh, 150px); }
}
