/* Tower of Elyra : le site de presentation.
   Les couleurs sont celles du jeu : nuit bleue, or, pierre chaude. */

:root{
  --nuit:#0E1119;
  --nuit-claire:#19202E;
  --panneau:#222C3D;
  --or:#F2C14E;
  --or-doux:#FFE59A;
  --texte:#F0EADC;
  --texte-doux:#A8B0C0;
  --liseré:rgba(242,193,78,.22);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--nuit);
  color:var(--texte);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--or); text-decoration:none}
a:hover{color:var(--or-doux)}

.enveloppe{max-width:1040px; margin:0 auto; padding:0 20px}

/* ---------- la barre du haut ---------- */

.barre{
  position:sticky; top:0; z-index:10;
  background:rgba(14,17,25,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--liseré);
}
.barre .enveloppe{
  display:flex; align-items:center; gap:14px;
  height:64px;
}
.barre .marque{
  display:flex; align-items:center; gap:12px;
  margin-right:auto; color:var(--texte);
}
.barre .marque:hover .nom{color:var(--or)}
.barre img{width:34px; height:34px; border-radius:8px}
.barre .nom{
  font-weight:700; letter-spacing:.5px; color:var(--texte);
  font-size:16px; transition:color .15s;
}
.barre nav{display:flex; gap:18px; font-size:15px}
.barre nav a{color:var(--texte-doux)}
.barre nav a:hover{color:var(--or)}

/* ---------- le haut de page ---------- */

.entree{
  position:relative;
  padding:96px 0 104px;
  text-align:center;
  overflow:hidden;
}
.entree .fond{
  position:absolute; inset:0;
  background:center/cover no-repeat;
  opacity:.30;
}
.entree::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 30%,
    rgba(14,17,25,.25) 0%, rgba(14,17,25,.86) 58%, var(--nuit) 100%);
}
.entree .dedans{position:relative; z-index:1}

.entree .sceau{
  width:116px; height:116px; border-radius:26px;
  box-shadow:0 18px 44px rgba(0,0,0,.6), 0 0 0 1px var(--liseré);
  margin-bottom:26px;
}
.entree h1{
  margin:0 0 14px;
  font-size:44px; line-height:1.15; font-weight:800;
  letter-spacing:-.5px;
}
.entree h1 span{color:var(--or)}
.entree .accroche{
  margin:0 auto 34px; max-width:600px;
  font-size:19px; color:var(--texte-doux);
}

.bouton{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 30px; border-radius:999px;
  background:linear-gradient(180deg,var(--or-doux),var(--or));
  color:#161208; font-weight:700; font-size:17px;
  box-shadow:0 12px 30px rgba(242,193,78,.22);
}
.bouton:hover{color:#161208; filter:brightness(1.06)}
.bouton.sourd{
  background:none; color:var(--texte-doux);
  border:1px solid var(--liseré); box-shadow:none; font-weight:600;
}
.bouton.sourd:hover{color:var(--or); border-color:var(--or)}
.boutons{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}

/* ---------- les sections ---------- */

section{padding:76px 0}
section + section{border-top:1px solid rgba(242,193,78,.10)}

h2{
  margin:0 0 10px;
  font-size:13px; letter-spacing:2.6px; text-transform:uppercase;
  color:var(--or); font-weight:700;
}
h3{margin:0 0 16px; font-size:29px; line-height:1.3; font-weight:700}

.texte{max-width:660px}
.texte p{margin:0 0 18px; color:var(--texte-doux)}
.texte p strong{color:var(--texte)}

/* ---------- les cartes ---------- */

.grille{
  display:grid; gap:18px; margin-top:34px;
  grid-template-columns:repeat(auto-fit,minmax(248px,1fr));
}
.carte{
  background:linear-gradient(180deg,var(--panneau),var(--nuit-claire));
  border:1px solid var(--liseré);
  border-radius:16px; padding:24px;
}
.carte .chiffre{
  font-size:30px; font-weight:800; color:var(--or); line-height:1;
  margin-bottom:10px;
}
.carte h4{margin:0 0 8px; font-size:18px; font-weight:700}
.carte p{margin:0; font-size:15px; color:var(--texte-doux); line-height:1.6}

/* ---------- les genres ---------- */

.jetons{display:flex; flex-wrap:wrap; gap:10px; margin-top:26px}
.jeton{
  padding:9px 17px; border-radius:999px;
  border:1px solid var(--liseré); background:rgba(242,193,78,.05);
  font-size:15px; color:var(--texte);
}

/* ---------- l'image de la tour ---------- */

.tableau{
  margin-top:40px; border-radius:18px; overflow:hidden;
  border:1px solid var(--liseré);
  box-shadow:0 22px 60px rgba(0,0,0,.5);
}
.tableau img{display:block; width:100%; height:auto}

/* ---------- le pied ---------- */

footer{
  border-top:1px solid var(--liseré);
  padding:44px 0 56px;
  color:var(--texte-doux); font-size:15px;
}
footer .lignes{display:flex; flex-wrap:wrap; gap:12px 26px; margin-bottom:18px}
footer a{color:var(--texte-doux)}
footer a:hover{color:var(--or)}
footer .mention{font-size:14px; opacity:.7; margin:0}

/* ---------- les pages de texte ---------- */

.document{max-width:760px; margin:0 auto; padding:56px 20px 88px}
.document .titre{border-bottom:1px solid var(--liseré); padding-bottom:22px; margin-bottom:34px}
.document h1{font-size:30px; line-height:1.25; margin:0 0 8px; color:var(--or)}
.document .date{margin:0; color:var(--texte-doux); font-size:15px}
.document h2{margin:40px 0 12px; font-size:14px}
.document p{margin:0 0 16px}
.document a{text-decoration:underline; word-break:break-word}

/* ---------- les petits ecrans ---------- */

@media (max-width:720px){
  body{font-size:16px}
  .entree{padding:64px 0 72px}
  .entree h1{font-size:32px}
  .entree .accroche{font-size:17px}
  .entree .sceau{width:92px; height:92px; border-radius:20px}
  section{padding:56px 0}
  h3{font-size:24px}
  .barre .nom{font-size:15px}
  .barre nav{gap:14px; font-size:14px}
  .document{padding:40px 20px 64px}
  .document h1{font-size:25px}
}
@media (max-width:420px){
  .barre nav a.cacher-petit{display:none}
}
