/* =====================================================
   La page Discord (en plus de style.css)
   1. La page  2. Présentation  3. Le guide  4. Les salons
   5. Les rôles  6. Les Ambassadeurs  7. La bannière
   ===================================================== */

/* ---------- 1. La page ---------- */
.discord {
  max-width: 920px;
  margin-inline: auto;
  padding: 0 1.25rem 2rem;
}

.discord section { margin-top: 4.5rem; text-align: center; }

.discord h2 {
  margin-bottom: 1.25rem;
  font: 400 clamp(1.9rem, 6vw, 2.8rem)/1.15 var(--police-titre);
}

.consigne { margin: -.5rem 0 1.5rem; }


/* ---------- 2. Présentation ---------- */
.entete { text-align: center; padding-top: 1rem; }

.entete img {
  border: 5px solid var(--brun);
  border-radius: 50%;
  animation: flotter 4s ease-in-out infinite;
}

@keyframes flotter {
  50% { translate: 0 -10px; rotate: 4deg; }
}

.entete h1 {
  margin: 1rem 0 .5rem;
  font: 400 clamp(2.4rem, 9vw, 4.2rem)/1.1 var(--police-titre);
}

.entete p { max-width: 34rem; margin: 0 auto 1.75rem; }

.rejoindre {
  display: inline-block;
  padding: .6rem 2rem;
  background: var(--rouge);
  color: var(--creme);
  border: 4px solid var(--brun);
  border-radius: 99px;
  box-shadow: 6px 6px 0 var(--brun);
  font: 400 1.5rem/1.4 var(--police-titre);
  text-decoration: none;
  transition: rotate .1s, translate .1s, box-shadow .1s;
}

.rejoindre:hover  { rotate: -2deg; }
.rejoindre:active { translate: 6px 6px; box-shadow: 0 0 0 var(--brun); }


/* ---------- 3. Le guide (faux salon) ---------- */
.salon-anime {
  margin-bottom: 1.25rem;
  overflow: hidden;
  text-align: left;
  background: #313338;
  color: #f2f3f5;
  border: 4px solid var(--brun);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--brun);
}

.barre {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1rem;
  background: #2b2d31;
  border-bottom: 2px solid #1e1f22;
}

.barre small { color: #b5bac1; }

#messages {
  height: 24rem;
  overflow-y: auto;
  padding: .5rem 1rem;
  list-style: none;
}

#messages li {
  display: flex;
  gap: .75rem;
  padding: .5rem 0;
  animation: arriver-message .35s ease-out;
}

@keyframes arriver-message {
  from { opacity: 0; translate: 0 14px; }
}

#messages img { width: 44px; height: 44px; border-radius: 50%; }
#messages b { color: var(--jaune); font-weight: 400; }

#messages em {
  padding: 0 .35rem;
  background: #5865f2;
  color: #fff;
  border-radius: 4px;
  font-size: .75rem;
  font-style: normal;
}

#ecrit { padding: .3rem 1rem .7rem; color: #b5bac1; font-size: 1rem; }

#ecrit i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  background: #b5bac1;
  border-radius: 50%;
  animation: point .9s infinite;
}

#ecrit i:nth-child(2) { animation-delay: .15s; }
#ecrit i:nth-child(3) { animation-delay: .3s; }

@keyframes point { 40% { translate: 0 -5px; } }


/* ---------- 4. Visite des salons ---------- */
.visite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  text-align: left;
}

.liste {
  padding: 1rem;
  background: var(--brun);
  color: var(--creme);
  border-radius: 20px;
}

.liste h3 { margin: 1rem 0 .3rem .5rem; font-size: 1.1rem; font-weight: 400; opacity: .75; }

.salon {
  display: block;
  width: 100%;
  padding: .3rem .6rem;
  background: none;
  color: inherit;
  border: 0;
  border-radius: 10px;
  font: 1.2rem var(--police-texte);
  text-align: left;
  cursor: pointer;
}

.salon:hover { background: #ffffff1f; }

.salon[aria-pressed="true"] { background: var(--creme); color: var(--brun); }

.fiche-salon {
  position: sticky;
  top: 1.5rem;
  min-height: 11rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--jaune);
  border: 4px solid var(--brun);
  border-radius: 30px 8px;
  box-shadow: 7px 7px 0 var(--brun);
}

.fiche-salon h3 { margin-bottom: .75rem; font: 400 1.7rem/1.2 var(--police-titre); }

.fiche-salon.pop { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }

@keyframes pop { from { scale: .85; rotate: -3deg; } }


/* ---------- 5. Les rôles ---------- */
.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.roles li {
  width: 260px;
  padding: .9rem 1rem;
  background: var(--blanc);
  border: 4px solid var(--brun);
  border-top: 16px solid var(--c);
  border-radius: 18px;
  transition: rotate .15s, translate .15s;
}

.roles li:hover { rotate: -2deg; translate: 0 -5px; }
.roles strong { display: block; font: 400 1.35rem/1.3 var(--police-titre); }
.roles a { color: inherit; }


/* ---------- 6. Le mur des Ambassadeurs ---------- */
.ambassade { scroll-margin-top: 1rem; }

#mur {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.cadre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: 190px;
  padding: 1.25rem .75rem;
  background: transparent;
  color: var(--brun);
  border: 4px dashed var(--brun);
  border-radius: 20px;
  font: 1.3rem var(--police-texte);
  cursor: pointer;
}

.cadre b { font: 400 1.25rem/1.3 var(--police-titre); overflow-wrap: anywhere; }

.rond {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 4px solid var(--brun);
  border-radius: 50%;
  font: 400 2.8rem var(--police-titre);
}

.cadre:hover .rond { animation: secoue-rond .5s; }

@keyframes secoue-rond {
  25% { rotate: -14deg; }
  75% { rotate: 14deg; }
}

.cadre.pris {
  background: var(--blanc);
  border-style: solid;
  box-shadow: 6px 6px 0 var(--vert);
}

.pris .rond { background: var(--vert); }

.comment {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: left;
  background: var(--vert);
  color: var(--brun);
  border: 4px solid var(--brun);
  border-radius: 8px 30px;
}

.comment h3 { font: 400 1.6rem/1.3 var(--police-titre); }
.comment ol { margin: .5rem 0 1rem 1.5rem; }


/* ---------- 7. La bannière ---------- */
.atelier {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--blanc);
  border: 4px solid var(--brun);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--brun);
}

.apercu { position: relative; width: 100%; max-width: 680px; margin-inline: auto; }

#banniere {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--brun);
}

/* Repère indicatif : ne fait pas partie de l'image téléchargée */
.photo {
  position: absolute;
  left: 5%;
  bottom: 0;
  translate: 0 38%;
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 1;
  background: #b5bac1e6;
  color: #1e1f22;
  border: 4px solid #1e1f22;
  border-radius: 50%;
  font-size: clamp(.7rem, 2.5vw, 1.1rem);
}

.photo[hidden] { display: none; }

.champ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin-top: 2.25rem;
}

.champ input {
  width: min(100%, 22rem);
  padding: .4rem 1rem;
  text-align: center;
  font: 1.4rem var(--police-texte);
  color: var(--brun);
  background: var(--creme);
  border: 4px solid var(--brun);
  border-radius: 99px;
}

.atelier fieldset { border: 0; }
.atelier legend { margin: 0 auto .5rem; }

#modeles, .couleurs, .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

#modeles button {
  padding: .4rem 1.1rem;
  background: var(--f);
  color: var(--t);
  font: 1.2rem var(--police-texte);
  border: 4px solid var(--brun);
  border-radius: 12px;
  cursor: pointer;
}

#modeles button[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--jaune), 0 0 0 7px var(--brun); }

.couleurs label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .6rem; }

.couleurs input {
  width: 48px;
  height: 36px;
  background: none;
  border: 3px solid var(--brun);
  border-radius: 8px;
  cursor: pointer;
}

.coche { display: flex; justify-content: center; align-items: center; gap: .5rem; }
.coche input { width: 1.2rem; height: 1.2rem; accent-color: var(--brun); }
.actions { flex-direction: column; align-items: center; }


@media (max-width: 640px) {
  .visite { grid-template-columns: 1fr; }
  .fiche-salon { order: -1; top: .5rem; min-height: 0; padding: .8rem; z-index: 2; }
}

/* Pas de lettres collées (le « fl » de rflh) */
.discord { font-variant-ligatures: none; }


/* Le bloc qui mène au confessionnal */
.vers-confession {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--brun);
  color: var(--creme);
  border-bottom: 14px solid #9e2b25;
  border-radius: 120px 120px 18px 18px;
}

.vers-confession .bouton {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--jaune);
}
