@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

@media (min-width: 1200px) { html { font-size: 17px; } }
@media (min-width: 1600px) { html { font-size: 18px; } }

body {
  background: #0b0a0f;
  color: #f0ebff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: #c084fc; text-decoration: none; }
a:hover { color: #e9d5ff; }
strong { color: #f0ebff; font-weight: 500; }
em { color: #c084fc; font-style: italic; }

/* barre du haut */

.barre {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(11, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a2438;
  z-index: 100;
}

.barre-interieur {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.titre-site { font-family: 'DM Mono', monospace; font-size: 13px; color: #9e8fb5; white-space: nowrap; flex-shrink: 0; }
.titre-site b { color: #c084fc; font-weight: 500; }

.liens-nav { display: flex; list-style: none; flex: 1; }

.liens-nav a {
  display: block;
  padding: 0 14px;
  height: 56px;
  line-height: 56px;
  font-size: 13px;
  font-weight: 500;
  color: #9e8fb5;
  position: relative;
  transition: color .2s;
}

.liens-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  transform: scaleX(0);
  transition: transform .2s;
}

.liens-nav a:hover,
.liens-nav a.actif { color: #f0ebff; }

.liens-nav a:hover::after,
.liens-nav a.actif::after { transform: scaleX(1); }

/* bouton menu mobile */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.burger span { display: block; width: 22px; height: 2px; background: #9e8fb5; transition: background .2s; }
.burger:hover span { background: #c084fc; }

/* pied de page */

.pied { border-top: 1px solid #2a2438; padding: 24px 32px; text-align: center; }
.pied p { font-family: 'DM Mono', monospace; font-size: 12px; color: #5c5072; }
.pied span { color: #c084fc; }

/* structure generale */

.icone {
    font-size: 22px;
    color: #9d5cf6;
    margin-right: 10px;
}

.contenu { padding-top: 56px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; max-width: 1100px; margin: 0 auto; padding: 72px 32px 80px; width: 100%; }

::selection {
  background: #7c3aed;
  color: #f0ebff;
}

body.clair ::selection {
  background: #c084fc;
  color: #1a1625;
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0b0a0f; }
::-webkit-scrollbar-thumb { background: #3d3555; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

body.clair ::-webkit-scrollbar-track { background: #f5f3ff; }
body.clair ::-webkit-scrollbar-thumb { background: #c4b8e8; }
body.clair ::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* bouton haut */
#haut {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: #7c3aed;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity .3s, background .2s;
  z-index: 99;
}
#haut:hover { background: #a855f7; }
#haut.visible { opacity: 1; }

/* titres en haut de chaque page */
.entete { margin-bottom: 48px; }

.majuscule {
	margin-right: 2px;
}

.sous-titre {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #c084fc;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sous-titre::before { content: ''; display: inline-block; width: 24px; height: 1px; background: #c084fc; }

.grand-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  color: #f0ebff;
  margin-bottom: 20px;
}
.grand-titre em { font-style: italic; color: #c084fc; }

.trait { width: 80px; height: 2px; background: linear-gradient(135deg, #7c3aed, #a855f7); margin: 30px 0 40px; }

/* page accueil */

.intro { position: relative; padding: 80px 0 72px; overflow: hidden; }
.intro::before {
  content: '';
  position: absolute;
  top: -50px; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, .18) 0%, transparent 55%);
  pointer-events: none;
}

.intro-meta { font-family: 'DM Mono', monospace; font-size: 12px; color: #5c5072; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }

.intro-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: #f0ebff;
  margin-bottom: 12px;
}
.intro-titre .italique { font-style: italic; color: #c084fc; }
.intro-titre .contour { -webkit-text-stroke: 1px #3d3555; color: transparent; }

.intro-texte { font-size: 17px; color: #9e8fb5; max-width: 520px; margin: 24px 0 40px; line-height: 1.8; }

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 28px;
  transition: opacity .2s, transform .2s;
}
.bouton:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

.chiffres { display: flex; border: 1px solid #2a2438; margin-top: 64px; }
.chiffre { flex: 1; padding: 24px 28px; border-right: 1px solid #2a2438; }
.chiffre:last-child { border-right: none; }
.chiffre-valeur { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: #c084fc; line-height: 1; margin-bottom: 6px; }
.chiffre-label { font-family: 'DM Mono', monospace; font-size: 12px; color: #5c5072; text-transform: uppercase; letter-spacing: 1.5px; }

.label-section { font-family: 'DM Mono', monospace; font-size: 11px; color: #5c5072; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }

.grille-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; background: #2a2438; }
.grille-pages a { background: #0f0d17; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; transition: background .2s; }
.grille-pages a:hover { background: #16131f; }
.grille-pages .icone { font-size: 22px; color: #9d5cf6; margin-bottom: 4px; }
.grille-pages .nom { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: #f0ebff; }
.grille-pages .desc { font-size: 13px; color: #5c5072; line-height: 1.5; }

/* glossaire */

#recherche {
  width: 100%;
  background: #0f0d17;
  border: 1px solid #2a2438;
  color: #f0ebff;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 0;
}
#recherche:focus { border-color: #7c3aed; }
#recherche::placeholder { color: #3d3555; }

body.clair #recherche { background: #ede9fb; border-color: #d8d0f0; color: #1a1625; }
body.clair #recherche:focus { border-color: #7c3aed; }
body.clair #recherche::placeholder { color: #b8a8e0; }

.grille-glossaire { display: flex; margin-top: 48px; flex-wrap: wrap; }
.grille-glossaire a { border: 1px solid rgba(124, 58, 237, .3); background: #0f0d17; padding: 12px 0; display: flex; justify-content: center; align-items: center; transition: background .2s; flex: 0 0 49.3px; }
.grille-glossaire a:hover { background: #16131f; }
.grille-glossaire .nom { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: #c084fc; }

.liste-mots { display: flex; flex-direction: column; gap: 2px; }
.mot { display: grid; grid-template-columns: 200px 1fr; background: #16131f; border: 1px solid #2a2438; transition: border-color .2s; }
.mot:hover { border-color: #3d3555; }
.mot-terme { padding: 18px 24px; border-right: 1px solid #2a2438; font-family: 'DM Mono', monospace; font-size: 13px; color: #c084fc; font-weight: 500; display: flex; align-items: center; }
.mot-def { padding: 18px 24px; font-size: 14px; color: #9e8fb5; line-height: 1.6; }
.lettre { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 900; color: #3d3555; padding: 20px 0 8px; line-height: 1; margin-top: 24px; scroll-margin-top: 58px; }

.etiquette {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  padding: 3px 9px;
  background: rgba(124, 58, 237, .15);
  border: 1px solid rgba(160, 100, 246, .25);
  color: #c084fc;
  margin: 2px;
}

/* bandeau en cours */

.encours {
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(168,85,247,.07));
  border: 1px solid rgba(124, 58, 237, .3);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.encours i { color: #9d5cf6; font-size: 18px; }
.encours p { font-size: 14px; color: #9e8fb5; }
.encours strong { color: #c084fc; }

/* animations */
@keyframes monter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro-titre { animation: monter .5s ease both; }
.intro-texte { animation: monter .5s ease both; animation-delay: .08s; }
.bouton { animation: monter .5s ease both; animation-delay: .16s; }

/* mobile */

@media (max-width: 860px) {
  .grille-pages { grid-template-columns: 1fr 1fr; }
  .chiffres { flex-direction: column; }
  .chiffre { border-right: none; border-bottom: 1px solid #2a2438; }
  .chiffre:last-child { border-bottom: none; }
  .mot { grid-template-columns: 1fr; }
  .mot-terme { border-right: none; border-bottom: 1px solid #2a2438; }
  .barre-interieur { padding: 0 16px; gap: 12px; }
  main { padding: 48px 16px 64px; }
}

@media (max-width: 1020px) {
  .burger { display: flex; }
  .barre-interieur { position: relative; }
  .barre-interieur nav {
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(11, 10, 15, .98);
    border-bottom: 1px solid #2a2438;
    display: none;
    z-index: 200;
	margin-top: -12px;
  }
  .barre-interieur nav.ouvert { display: block; }
  .liens-nav { flex-direction: column; padding: 8px 0; }
  .liens-nav a { height: auto; line-height: 1; padding: 14px 20px; font-size: 14px; border-bottom: 1px solid #2a2438; }
  .liens-nav li:last-child a { border-bottom: none; }
  .liens-nav a::after { display: none; }
  .intro-titre { font-size: 42px; }
  .grille-pages { grid-template-columns: 1fr; }
}

/* mode clair */

body.clair {
  background: #f5f3ff;
  color: #1a1625;
}

body.clair a { color: #7c3aed; }
body.clair .explorer { color: #f5f3ff; }
body.clair a:hover { color: #5b21b6; }
body.clair .explorer:hover { color: #c084fc; }
body.clair strong { color: #1a1625; }
body.clair em { color: #7c3aed; }

body.clair .barre {
  background: rgba(245, 243, 255, 0.92);
  border-bottom-color: #d8d0f0;
}

body.clair .titre-site { color: #6b5fa8; }
body.clair .titre-site b { color: #7c3aed; }

body.clair .liens-nav a { color: #6b5fa8; }
body.clair .liens-nav a:hover,
body.clair .liens-nav a.actif { color: #1a1625; }

body.clair .burger span { background: #6b5fa8; }

body.clair .pied { border-top-color: #d8d0f0; }
body.clair .pied p { color: #9e8fb5; }
body.clair .pied span { color: #7c3aed; }

body.clair .intro::before {
  background: radial-gradient(circle, rgba(124, 58, 237, .12) 0%, transparent 55%);
}

body.clair .intro-meta { color: #9e8fb5; }
body.clair .intro-titre { color: #1a1625; }
body.clair .intro-titre .contour { -webkit-text-stroke: 1px #c4b8e8; color: transparent; }
body.clair .intro-texte { color: #4a3f6b; }

body.clair .chiffres { border-color: #d8d0f0; }
body.clair .chiffre { border-right-color: #d8d0f0; }
body.clair .chiffre-valeur { color: #7c3aed; }
body.clair .chiffre-label { color: #9e8fb5; }

body.clair .label-section { color: #9e8fb5; }

body.clair .grille-pages { background: #d8d0f0; }
body.clair .grille-pages a { background: #ede9fb; }
body.clair .grille-pages a:hover { background: #e2dbf7; }
body.clair .grille-pages .icone { color: #7c3aed; }
body.clair .grille-pages .nom { color: #1a1625; }
body.clair .grille-pages .desc { color: #6b5fa8; }

body.clair .grand-titre { color: #1a1625; }
body.clair .grand-titre em { color: #7c3aed; }
body.clair .sous-titre { color: #7c3aed; }
body.clair .sous-titre::before { background: #7c3aed; }

body.clair .encours {
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(168,85,247,.04));
  border-color: rgba(124, 58, 237, .25);
}
body.clair .encours i { color: #7c3aed; }
body.clair .encours p { color: #4a3f6b; }
body.clair .encours strong { color: #7c3aed; }

body.clair .liste-mots {}
body.clair .mot { background: #ede9fb; border-color: #d8d0f0; }
body.clair .mot:hover { border-color: #b8a8e0; }
body.clair .mot-terme { border-right-color: #d8d0f0; color: #7c3aed; }
body.clair .mot-def { color: #4a3f6b; }
body.clair .lettre { color: #c4b8e8; }

body.clair .grille-glossaire a { background: #ede9fb; border-color: rgba(124, 58, 237, .2); }
body.clair .grille-glossaire a:hover { background: #e2dbf7; }
body.clair .grille-glossaire .nom { color: #1a1625; }

body.clair .etiquette {
  background: rgba(124, 58, 237, .1);
  border-color: rgba(124, 58, 237, .2);
  color: #7c3aed;
}

/* bouton mode */

.btn-mode {
  background: none;
  border: 1px solid #2a2438;
  color: #9e8fb5;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.btn-mode:hover { border-color: #c084fc; color: #c084fc; }

body.clair .btn-mode { border-color: #d8d0f0; color: #6b5fa8; }
body.clair .btn-mode:hover { border-color: #7c3aed; color: #7c3aed; }

@media (max-width: 860px) {
  body.clair .chiffre { border-bottom-color: #d8d0f0; }
  body.clair .mot-terme { border-bottom-color: #d8d0f0; }
}

@media (max-width: 1020px) {
  body.clair .barre-interieur nav {
    background: rgba(245, 243, 255, 0.98);
    border-bottom-color: #d8d0f0;
  }
  body.clair .liens-nav a { border-bottom-color: #d8d0f0; }
  body.clair .liens-nav a:hover { background: #ede9fb; }
}

/* navigation entre pages */

.nav-entre-pages {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #2a2438;
}

.nav-page {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5c5072;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color .2s;
}
.nav-page:hover { color: #c084fc; }
.nav-page i { font-size: 11px; }

.nav-page-titre {
  font-size: 12px;
  color: #9e8fb5;
  transition: color .2s;
}
.nav-page:hover .nav-page-titre { color: #c084fc; }

.nav-page-accueil {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #3d3555;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-page-accueil:hover { color: #c084fc; }

/* remerciements */

.remerciement-bloc {
  display: flex;
  gap: 40px;
  padding: 36px;
  border: 1px solid #2a2438;
  background: #0f0d17;
}

.remerciement-icone {
  font-size: 28px;
  color: #7c3aed;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid #2a2438;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remerciement-contenu { display: flex; flex-direction: column; gap: 12px; }

.remerciement-role {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #c084fc;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.remerciement-nom {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: #f0ebff;
  line-height: 1;
}

.remerciement-texte {
  font-size: 15px;
  color: #9e8fb5;
  line-height: 1.8;
  max-width: 620px;
}

body.clair .nav-entre-pages { border-top-color: #d8d0f0; }
body.clair .nav-page { color: #9e8fb5; }
body.clair .nav-page:hover { color: #7c3aed; }
body.clair .nav-page-titre { color: #6b5fa8; }
body.clair .nav-page:hover .nav-page-titre { color: #7c3aed; }
body.clair .nav-page-accueil { color: #c4b8e8; }
body.clair .nav-page-accueil:hover { color: #7c3aed; }

body.clair .remerciement-bloc { background: #ede9fb; border-color: #d8d0f0; }
body.clair .remerciement-icone { border-color: #d8d0f0; color: #7c3aed; }
body.clair .remerciement-nom { color: #1a1625; }
body.clair .remerciement-texte { color: #4a3f6b; }

@media (max-width: 600px) {
  .nav-entre-pages { padding: 24px 16px 40px; }
  .nav-page-accueil { display: none; }
  .remerciement-bloc { flex-direction: column; gap: 20px; padding: 24px; }
}

@media (max-width: 860px) {
  .nav-entre-pages { padding: 32px 16px 48px; }
}
