/* Guerre d'Indépendance — France-USA-Net.Com */

body.independence-war-page {
  --iw-text-on-light: #14110e;
  --iw-text-muted-on-light: #3d3834;
  --iw-accent: #1e3a5f;
  --iw-accent-us: #1e6fd9;
  --iw-accent-uk: #b22234;
  --iw-accent-fr: #c9a227;
  --iw-link-on-light: #1d4ed8;
  --iw-surface-light: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
}

.iw-battle-map {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 95, 0.2);
  background: var(--iw-surface-light);
  box-shadow: 0 10px 28px rgba(25, 35, 30, 0.08);
}

.iw-battle-map img {
  width: 100%;
  height: auto;
  max-height: min(900px, 85vh);
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.iw-battle-map figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--iw-text-muted-on-light);
  text-align: center;
  line-height: 1.55;
}

.iw-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 95, 0.2);
  background: var(--iw-surface-light);
  -webkit-overflow-scrolling: touch;
}

.iw-table-wrap .data-table {
  margin: 0;
  min-width: 640px;
  font-size: 0.86rem;
}

.iw-table-wrap .data-table caption {
  color: var(--iw-accent);
  padding: 12px 16px 0;
  font-weight: 700;
}

.iw-table-wrap .data-table thead th {
  background: rgba(30, 58, 95, 0.12);
  color: var(--iw-accent);
}

.iw-table-wrap .data-table tbody td,
.iw-table-wrap .data-table tbody th {
  color: var(--iw-text-muted-on-light);
}

.iw-table-wrap .data-table a {
  color: var(--iw-link-on-light);
  font-weight: 600;
}

/* Lignes batailles — couleur selon vainqueur */
.iw-table-wrap .data-table tr.iw-win-us td,
.iw-table-wrap .data-table tr.iw-win-us th[scope="row"] {
  background: rgba(30, 111, 217, 0.12);
}

.iw-table-wrap .data-table tr.iw-win-uk td,
.iw-table-wrap .data-table tr.iw-win-uk th[scope="row"] {
  background: rgba(178, 34, 52, 0.1);
}

.iw-table-wrap .data-table tr.iw-win-fr td,
.iw-table-wrap .data-table tr.iw-win-fr th[scope="row"] {
  background: rgba(201, 162, 39, 0.15);
}

.iw-table-wrap .data-table tr.iw-win-pyrrhic td,
.iw-table-wrap .data-table tr.iw-win-pyrrhic th[scope="row"] {
  background: rgba(180, 83, 9, 0.12);
}

.iw-table-wrap .data-table tr.iw-win-draw td,
.iw-table-wrap .data-table tr.iw-win-draw th[scope="row"] {
  background: rgba(100, 116, 139, 0.1);
}

.iw-battle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 12px 0 4px;
  font-size: 0.84rem;
  color: var(--text-300);
}

.iw-battle-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iw-battle-legend i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.iw-battle-legend .us i { background: var(--iw-accent-us); }
.iw-battle-legend .uk i { background: var(--iw-accent-uk); }
.iw-battle-legend .fr i { background: var(--iw-accent-fr); }
.iw-battle-legend .pyrrhic i { background: #b45309; }
.iw-battle-legend .draw i { background: var(--text-300); }

.iw-treaty-box {
  margin: 18px 0;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 95, 0.18);
  background: var(--iw-surface-light);
  padding: 20px 22px;
  color: var(--iw-text-on-light);
}

.iw-treaty-box h3 {
  margin: 0 0 10px;
  color: var(--iw-accent);
  font-size: 1.05rem;
}

.iw-treaty-box ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  line-height: 1.62;
  color: var(--iw-text-muted-on-light);
}

.iw-treaty-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .iw-treaty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.iw-checklist-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 95, 0.22);
  background: var(--iw-surface-light);
}

.iw-checklist-box .checklist-preview {
  flex: 1 1 260px;
}

.iw-checklist-box p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--iw-text-muted-on-light);
}

.iw-checklist-box ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--iw-text-muted-on-light);
}

.iw-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e3a5f, #0b1020);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iw-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 16, 32, 0.35);
}

.iw-download-btn:focus-visible {
  outline: 2px solid var(--iw-accent-us);
  outline-offset: 3px;
}

.iw-download-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.iw-source-note {
  font-size: 0.82rem;
  color: var(--text-300);
  margin-top: 8px;
}

.iw-source-note a {
  color: var(--gold);
  font-weight: 600;
}
