/* Nuage de mots AIESEC — feuille unique, partagée par les trois écrans.
   Identité NTMS : les couleurs de la charte servent d'accents, les fonds
   restent des neutres — crème côté clair, nuit côté sombre. Le sarcelle
   n'entre pas dans l'interface. Le texte courant est en Lato, les titres
   en Bricolage Grotesque (la police Magic de la charte est sous licence
   usage personnel, comme sur le site NTMS). */

:root {
  --nuit: #001724;
  --sarcelle: #15676d;
  --creme: #ffebd1;
  --orange: #ff7a00;
  --brique: #79280e;

  --encre: var(--nuit);
  --encre-douce: rgba(0, 23, 36, 0.62);
  --papier: var(--creme);
  --blanc: #ffffff;
  --trait: rgba(0, 23, 36, 0.12);
  --ombre: 0 1px 2px rgba(0, 23, 36, 0.06), 0 10px 26px rgba(0, 23, 36, 0.07);
  --rond: 16px;
  --texte: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --titre: "Bricolage Grotesque", "Lato", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: var(--brique); }

/* ------------------------------------------------------------- bandeau */

.bandeau {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--trait);
  background: var(--blanc);
}

.marque {
  font-family: var(--titre);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.marque-suite {
  font-size: 12px;
  color: var(--encre-douce);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bandeau .pousse { margin-left: auto; }

.qui {
  font-size: 13px;
  color: var(--encre-douce);
}

/* -------------------------------------------------------------- atelier */

.page-atelier {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.intro h1 {
  font-size: 32px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.intro p {
  color: var(--encre-douce);
  font-size: 15px;
  margin: 0 0 28px;
  max-width: 62ch;
  line-height: 1.6;
}

.carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rond);
  box-shadow: var(--ombre);
  padding: 24px;
}

.porte {
  max-width: 480px;
  margin: 6vh auto 0;
  text-align: center;
  padding: 44px 34px;
}

.porte h1 { font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.porte p { color: var(--encre-douce); font-size: 15px; line-height: 1.65; margin: 0 0 26px; }

.champ { display: block; margin-bottom: 18px; }

.champ span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--encre);
}

.champ small {
  display: block;
  font-weight: 400;
  color: var(--encre-douce);
  margin-top: 5px;
  font-size: 12px;
}

input[type="text"], textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus, textarea:focus {
  border-color: var(--orange);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

textarea { resize: vertical; min-height: 76px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font: inherit;
  font-family: var(--titre);
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: var(--nuit); }
.btn-primary:hover { background: #ff8d26; }

.btn-calme {
  background: var(--blanc);
  color: var(--encre);
  border-color: var(--trait);
}

.btn-calme:hover { border-color: rgba(0, 23, 36, 0.28); }

.btn-large { padding: 16px 24px; font-size: 17px; width: 100%; }

.btn-lien {
  background: none;
  border: none;
  padding: 6px 2px;
  font: inherit;
  font-size: 13px;
  color: var(--encre-douce);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-lien:hover { color: var(--brique); }

.erreur {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8e4dc;
  color: var(--brique);
  font-size: 14px;
  font-weight: 700;
}

/* ------------------------------------------------------- liste des forms */

.section-titre {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 38px 0 14px;
}

.section-titre h2 { font-size: 17px; font-weight: 700; }

.section-titre .compte { font-size: 13px; color: var(--encre-douce); }

.forms { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.form-carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rond);
  padding: 20px 22px;
  box-shadow: var(--ombre);
}

.form-tete {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.form-tete h3 { font-size: 18px; line-height: 1.3; }

.form-tete .question {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--encre-douce);
  line-height: 1.5;
}

.form-tete .actions { margin-left: auto; display: flex; gap: 6px; }

.liens { display: grid; gap: 10px; }

.lien-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--trait);
  border-radius: 12px;
  background: #fffaf2;
}

.lien-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brique);
  min-width: 76px;
}

.lien-url {
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--encre);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.lien-ligne .btn { padding: 8px 12px; font-size: 13px; }

.vide {
  padding: 30px;
  text-align: center;
  color: var(--encre-douce);
  font-size: 14px;
  border: 1px dashed rgba(0, 23, 36, 0.2);
  border-radius: var(--rond);
}

/* ------------------------------------------------------------- réponse */

.page-reponse {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
  background: var(--papier);
}

.reponse-tete {
  max-width: 520px;
  width: 100%;
  margin: 0 auto 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brique);
}

.reponse-corps { max-width: 520px; width: 100%; margin: auto; }

.reponse-corps h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.reponse-corps input[type="text"] {
  font-size: 20px;
  padding: 17px;
  text-align: center;
  background: var(--blanc);
}

.aide {
  margin: 12px 0 22px;
  font-size: 13px;
  color: var(--encre-douce);
  text-align: center;
}

.merci {
  text-align: center;
  padding: 18px 0 8px;
}

.merci .coche {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--nuit);
  font-size: 30px;
  font-weight: 700;
  line-height: 58px;
}

.merci h2 { font-size: 21px; margin-bottom: 8px; }

.merci p { font-size: 14px; color: var(--encre-douce); margin: 0 0 18px; }

.compteur-petit { font-size: 13px; color: var(--encre-douce); text-align: center; margin-top: 26px; }

/* --------------------------------------------------------- projection */

.page-projection {
  height: 100%;
  background: var(--nuit);
  color: var(--creme);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.projection-tete {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 28px 36px 0;
  flex: 0 0 auto;
}

.projection-tete h1 {
  font-size: clamp(19px, 2.1vw, 34px);
  color: var(--creme);
  font-weight: 700;
}

.projection-tete .question {
  font-size: clamp(13px, 1.1vw, 18px);
  color: rgba(255, 235, 209, 0.62);
}

.projection-tete .etat {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 235, 209, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

.point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.point.hors { background: var(--brique); }

.nuage {
  position: relative;
  flex: 1 1 auto;
  margin: 10px 22px 0;
}

.nuage .mot {
  position: absolute;
  white-space: nowrap;
  font-family: var(--titre);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1), top 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.5s ease, opacity 0.45s ease, color 0.6s ease;
  will-change: left, top, font-size;
  opacity: 0;
}

.nuage .mot.visible { opacity: 1; }

.projection-pied {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 36px 26px;
  font-size: 14px;
  color: rgba(255, 235, 209, 0.55);
}

.projection-pied .total {
  color: var(--orange);
  font-family: var(--titre);
  font-size: 22px;
  font-weight: 700;
}

.projection-pied .adresse {
  margin-left: auto;
  font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 13px;
  color: rgba(255, 235, 209, 0.42);
}

.attente {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(16px, 1.6vw, 24px);
  color: rgba(255, 235, 209, 0.45);
  padding: 0 10%;
  line-height: 1.5;
}

.attente[hidden] { display: none; }

/* --------------------------------------------------------------- message */

.page-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

.message-card {
  max-width: 460px;
  width: 100%;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rond);
  box-shadow: var(--ombre);
  padding: 38px 32px;
  text-align: center;
}

.message-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brique);
  margin: 0 0 18px;
}

.message-card h1 { font-size: 23px; line-height: 1.25; margin-bottom: 10px; }

.message-card p { font-size: 15px; line-height: 1.65; color: var(--encre-douce); margin: 0 0 24px; }

@media (max-width: 640px) {
  .bandeau { padding: 16px 18px; }
  .page-atelier { padding: 26px 16px 60px; }
  .intro h1 { font-size: 25px; }
  .porte { margin-top: 2vh; padding: 30px 22px; }
  .lien-ligne { flex-wrap: wrap; }
  .lien-url { flex-basis: 100%; order: 3; }
  .reponse-corps h1 { font-size: 23px; }
}
