/* =========================================================
   STYLE.CSS — feuille de style partagée par toutes les pages
   ========================================================= */

/* ===== ZONE A PERSONNALISER : PALETTE DE COULEURS =====
   Change ces valeurs pour changer l'ambiance de tout le site
   d'un coup (elles sont utilisées partout ci-dessous). */
:root {
  --bg: #000000;              /* fond général */
  --panel-bg: #0a0a0a;        /* fond des encadrés */
  --border: #000458;          /* bleu marine des bordures */
  --header-bg: #000458;       /* bleu marine des bandeaux de titre */
  --header-text: #ffffff;     /* texte sur les bandeaux (blanc pour rester lisible sur le bleu foncé) */
  --text: #d9b3ff;            /* texte principal */
  --link: #00eaff;            /* couleur des liens */
  --link-visited: #ff6ec7;    /* couleur des liens visités */
  --font: "Courier New", Courier, monospace; /* police globale */
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  /* petit fond étoilé, change ou supprime si tu veux */
  background-image: radial-gradient(#ffffff22 1px, transparent 1px);
  background-size: 22px 22px;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { text-decoration: underline; }

/* ===== BANDEAU DU HAUT (titre du site) ===== */
.site-title {
  text-align: center;
  padding: 25px 10px 10px;
}
.site-title h1 {
  margin: 0;
  color: #00eaff;             /* MODIFIÉ : cyan vif, bien distinct du texte violet du site */
  text-shadow: 0 0 3px #00eaff, 0 0 24px #00eaff; /* glow renforcé pour bien ressortir */
  letter-spacing: 2px;
}
.site-title p {
  font-style: italic;
  opacity: .7;
}

/* ===== LAYOUT GENERAL ===== 
   Tout le contenu (nav + reste) est enfermé dans un bloc de
   largeur fixe, centré au milieu de l'écran. Il y a donc de
   l'espace noir vide et symétrique de chaque côté, comme sur
   le site de référence.
   ===== ZONE A PERSONNALISER : largeur totale du site ===== */
:root { --nav-width: 190px; }

.layout {
  max-width: 1100px;   /* largeur totale du bloc centré */
  margin: 0 auto;       /* centre le bloc horizontalement */
  padding: 25px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* ===== MENU DE NAVIGATION (colonne de gauche, PAS collée
   au bord de l'écran : elle fait partie du bloc centré) ===== */
nav.main-nav {
  width: 100%;
  background-color: var(--header-bg);
  border: 2px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
nav.main-nav a {
  color: var(--header-text);
  font-weight: bold;
  text-decoration: none;
}
nav.main-nav a:hover { text-decoration: underline; }

/* ===== CONTENU DE LA PAGE (colonne de droite) ===== */
.page-content {
  flex: 1;
  min-width: 0; /* évite que le contenu déborde du bloc centré */
}

/* ===== COLONNE DE GAUCHE (navbar + carte profil empilées) ===== */
.sidebar {
  width: var(--nav-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================
   CARTE DE PROFIL
   Reprend l'encadré .box / .box-header / .box-content déjà
   utilisé partout sur le site — pas de style de bordure/fond
   séparé ici, juste la mise en page du contenu à l'intérieur. */
.profile-card .box-content {
  text-align: center;
}
.box.profile-card { margin: 0; width: 100%; }

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 12px;
}

.profile-name {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: var(--text);
}

.profile-info {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  text-align: left;
  font-size: .9em;
  line-height: 1.8;
}

.profile-sep {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 12px 0;
}

.profile-label {
  text-align: left;
  margin: 0 0 6px;
  font-size: .85em;
  opacity: .7;
}

.profile-elsewhere {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  font-size: .9em;
  line-height: 1.7;
}
.profile-elsewhere li::before {
  content: "• ";
  color: var(--border);
}

.profile-contact {
  display: block;
  background-color: var(--header-bg);
  color: var(--header-text);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
}
.profile-contact:hover { opacity: .85; }

/* la sidebar (nav + carte) repasse en pleine largeur en haut sur mobile */
@media (max-width: 700px) {
  .sidebar { width: 100%; }
}



/* ===== ENCADRE GENERIQUE (boite avec bandeau violet) =====
   Utilisé pour toutes les sections : présentation, chat,
   articles, galerie, etc. */
.box {
  max-width: 900px;
  margin: 25px auto;
  border: 2px solid var(--border);
  background-color: var(--panel-bg);
}
.box-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 8px 14px;
  font-weight: bold;
  letter-spacing: 1px;
}
.box-content {
  padding: 18px;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: .8em;
  opacity: .6;
}