/* ============================================================
   FIELDWORK.CSS — Page Terrain / Fieldwork
   Akpoué Kouamé Josué — Site académique
   ============================================================
   Gère :
   - Tableau des sessions de terrain (.fieldwork-table)
   - Sous-titres de section outils (.tools-subhead)
   - Liste d'outils d'enquête (.elicitation-list, .elicitation-entry)
   ============================================================ */


/* ============================================================
   TABLEAU DES SESSIONS DE TERRAIN
   ============================================================ */

.fieldwork-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  border: var(--border-thin) var(--border);
}

.fieldwork-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
}

.fieldwork-table thead {
  background-color: var(--bg-alt);
}

.fieldwork-table th {
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-lg);
  text-align: left;
  border-bottom: var(--border-thin) var(--border);
  white-space: nowrap;
}

.fieldwork-table td {
  padding: var(--space-3) var(--space-lg);
  border-bottom: var(--border-thin) var(--border);
  line-height: var(--leading-normal);
  vertical-align: top;
}

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

.fieldwork-table tbody tr:hover td {
  background-color: var(--bg-alt);
}

/* Colonne année — fixe, compacte */
.fw-year {
  white-space: nowrap;
  min-width: 80px;
}

/* Langue en gras via strong dans le template */
.fieldwork-table strong {
  font-weight: var(--weight-medium);
  color: var(--text);
}


/* ============================================================
   SOUS-TITRES DE SECTION OUTILS
   ============================================================ */

.tools-subhead {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-2);
  border-bottom: var(--border-thin) var(--border);
}

.tools-subhead--mt {
  margin-top: var(--space-2xl);
}


/* ============================================================
   OUTILS D'ENQUÊTE
   ============================================================ */

.elicitation-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.elicitation-entry {
  padding: var(--space-lg);
  border: var(--border-thin) var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.elicitation-entry:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Outils externes — style légèrement plus discret */
.elicitation-entry--external {
  background-color: var(--bg-alt);
  border-style: dashed;
}

.elicitation-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.elicitation-entry__title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.elicitation-entry__title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text);
}

.elicitation-entry__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.elicitation-entry__targets {
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-2);
}

.elicitation-entry__targets strong {
  font-weight: var(--weight-medium);
  color: var(--text);
}

.elicitation-entry__links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .fieldwork-table th,
  .fieldwork-table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .elicitation-entry__header {
    flex-direction: column;
    gap: var(--space-2);
  }
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .fieldwork-table-wrap {
    border: 1px solid #ccc;
    border-radius: 0;
  }

  .elicitation-entry__links {
    display: none;
  }

  .elicitation-entry--external {
    border-style: solid;
  }
}
