/* ============================================================
   about.css — Page À propos style Wikipédia
   ============================================================ */

/* ─── PAGE WRAPPER ─── */
.wiki-page {
  padding: 32px 0 80px;
}

/* ─── EN-TÊTE ─── */
.wiki-header {
  margin-bottom: 28px;
}

.wiki-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wiki-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.wiki-breadcrumb a:hover {
  color: var(--dark);
  text-decoration: underline;
}

.wiki-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 6px;
}

.wiki-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.wiki-header-line {
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
}

/* ─── CORPS : infobox flottante + texte ─── */
.wiki-body {
  position: relative;
}

/* ════════════════════════════════════════════════════════════
   INFOBOX — style Wikipédia modernisé
   ════════════════════════════════════════════════════════════ */
.wiki-infobox {
  float: right;
  clear: right;
  margin: 0 0 24px 32px;
  width: 280px;
  background: var(--cream);
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0px var(--dark);
  overflow: hidden;
  font-size: 0.85rem;
}

.wiki-infobox-title {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  padding: 12px 16px;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--yellow);
}

/* Photo */
.wiki-infobox-photo-wrap {
  border-bottom: var(--border-thick);
  background: #1a1510;
  text-align: center;
}

.wiki-infobox-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.wiki-infobox-photo:hover {
  transform: scale(1.03);
}

.wiki-infobox-photo-caption {
  font-size: 0.72rem;
  color: rgba(245,240,232,0.65);
  padding: 7px 12px;
  font-style: italic;
  line-height: 1.4;
}

/* Tableau infobox */
.wiki-infobox-table {
  width: 100%;
  border-collapse: collapse;
}

.wiki-infobox-table tr {
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.15s;
}

.wiki-infobox-table tr:last-child {
  border-bottom: none;
}

.wiki-infobox-table tr:hover {
  background: rgba(245,200,66,0.07);
}

.wiki-infobox-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  width: 42%;
  background: rgba(0,0,0,0.02);
}

.wiki-infobox-table td {
  padding: 9px 12px;
  color: var(--dark);
  font-size: 0.82rem;
  line-height: 1.5;
  vertical-align: top;
}

/* ─── INTRODUCTION ─── */
.wiki-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 24px;
}

/* ─── SOMMAIRE ─── */
.wiki-toc {
  display: inline-block;
  background: var(--cream-dark);
  border: var(--border-mid);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
  min-width: 220px;
  max-width: 340px;
}

.wiki-toc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dark);
}

.wiki-toc-list {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiki-toc-list ol {
  padding-left: 18px;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wiki-toc-list a {
  font-size: 0.85rem;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.wiki-toc-list a:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

.wiki-toc-list ol a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── SECTIONS ─── */
.wiki-section {
  margin-bottom: 40px;
  /* Offset pour les ancres (nav fixe) */
  scroll-margin-top: 88px;
}

.wiki-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.wiki-section-line {
  height: 2px;
  background: var(--cream-dark);
  margin-bottom: 16px;
  border-radius: 1px;
}

.wiki-subsection-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin: 24px 0 10px;
  scroll-margin-top: 88px;
}

.wiki-section p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 14px;
}

.wiki-section p:last-child {
  margin-bottom: 0;
}

/* ─── LISTES ─── */
.wiki-list {
  padding-left: 22px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiki-list li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark);
}

/* Liste liens externes avec icônes */
.wiki-ext-list {
  list-style: none;
  padding-left: 0;
}

.wiki-ext-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.wiki-ext-list li:hover {
  background: var(--cream-dark);
}

/* ─── LIENS ─── */
.wiki-ext-link {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.3);
  transition: border-color 0.2s, color 0.2s;
}

.wiki-ext-link:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.wiki-int-link {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  transition: border-color 0.2s, color 0.2s;
}

.wiki-int-link:hover {
  color: var(--text-muted);
  border-bottom-color: var(--dark);
}

/* ─── TABLEAU ILLUSTRATIONS ─── */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 16px 0;
  border: var(--border-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wiki-table thead {
  background: var(--dark);
  color: var(--cream);
}

.wiki-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wiki-table tbody tr {
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.15s;
}

.wiki-table tbody tr:last-child {
  border-bottom: none;
}

.wiki-table tbody tr:hover {
  background: rgba(245,200,66,0.08);
}

.wiki-table tbody td {
  padding: 11px 14px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--dark);
}

.wiki-table tbody td:first-child {
  font-weight: 600;
}

/* ─── BARRES DE COMPÉTENCES ─── */
.wiki-skills-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.wiki-skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wiki-skill-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wiki-skill-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
}

.wiki-skill-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wiki-skill-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}

.wiki-skill-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── BAS DE PAGE ─── */
.wiki-footer-sep {
  height: 2px;
  background: var(--cream-dark);
  margin: 40px 0 16px;
  border-radius: 1px;
}

.wiki-last-edit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .wiki-infobox {
    width: 240px;
    margin: 0 0 20px 24px;
  }
}

@media (max-width: 680px) {
  /* Sur mobile : infobox passe en bloc plein-largeur en haut */
  .wiki-infobox {
    float: none;
    width: 100%;
    margin: 0 0 28px 0;
    max-width: 100%;
  }

  .wiki-infobox-photo {
    height: 300px;
  }

  .wiki-toc {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .wiki-table {
    font-size: 0.8rem;
  }

  .wiki-table thead th,
  .wiki-table tbody td {
    padding: 9px 10px;
  }

  /* Masquer les colonnes moins importantes sur petit écran */
  .wiki-table thead th:nth-child(4),
  .wiki-table tbody td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .wiki-table thead th:nth-child(3),
  .wiki-table tbody td:nth-child(3) {
    display: none;
  }
}
