:root {
  --bg: #050705;
  --panel: #0a0d0a;
  --panel-2: #0e130d;

  --green: #abeba5;
  --green-soft: #91c82b;
  --green-dark: #324916;

  --blue: #162b47;

  --text: #f1f4ef;
  --muted: #aab2a5;

  --line: rgba(184, 240, 61, 0.48);
  --danger: #ff8b35;

  --shadow: 0 0 28px rgba(184, 240, 61, 0.08);
}


/* ============================
   CARTE PRINCIPALE
============================ */

.about-card {
  width: 100%;
  background-color: var(--blue);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 12px;
  text-align: justify;
}


/* ============================
   PARTIE HAUTE
============================ */

.top-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

h1 span {
  display: block;
  color: var(--green);
  text-shadow: 0 0 22px rgba(184, 240, 61, 0.13);
}


/* ============================
   PORTRAIT
============================ */

.portrait-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-2);
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
}


/* ============================
   CITATION
============================ */

.quote {
  margin-top: 18px;
  padding: 22px 24px;
  position: relative;

  background: rgba(8, 11, 8, 0.72);

  font-size: 16px;
  line-height: 1.65;
}

.quote::before,
.quote::after {
  position: absolute;
  color: var(--green);
  font-size: 42px;
  font-weight: 900;
}

.quote::before {
  content: "“";
  top: -12px;
  left: -10px;
}

.quote::after {
  content: "”";
  bottom: -24px;
  right: -10px;
}


/* ============================
   GRILLES
============================ */

.section-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: 1.35fr 1fr 0.65fr;
}


/* ============================
   PANNEAUX
============================ */

.panel {
  position: relative;
  min-width: 0;

  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);

  padding: 26px 22px 22px;

  overflow: hidden;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;

  width: 16px;
  height: 16px;

  opacity: 0.8;
  color: var(--green);
}

.panel::before {
  top: 8px;
  right: 8px;

  border-top: 2px solid;
  border-right: 2px solid;
}

.panel::after {
  bottom: 8px;
  left: 8px;

  border-bottom: 2px solid;
  border-left: 2px solid;
}


/* ============================
   TITRE PANNEAUX
============================ */

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  margin: -26px 0 20px -22px;

  padding: 8px 28px 8px 18px;

  min-width: 180px;
  max-width: calc(100% + 22px);

  color: #0a0d0a;
  background: var(--green);

  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  clip-path: polygon(
    0 0,
    90% 0,
    100% 100%,
    0 100%
  );
}


/* ============================
   INFORMATIONS
============================ */

.identity-list,
.profile-list {
  display: grid;

  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.identity-list li {
  display: grid;

  grid-template-columns: 145px minmax(0, 1fr);

  gap: 10px;
}

.label {
  color: var(--muted);
  text-transform: uppercase;
}

.value {
  min-width: 0;
  color: var(--text);

  overflow-wrap: anywhere;
}

.value.emphasis {
  color: var(--green);
  font-weight: 700;
}


/* Empêche les badges de dépasser */

.identity-list img {
  max-width: 100%;
}


/* ============================
   PERSONNALITÉ
============================ */

.profile-list li {
  position: relative;

  padding-left: 18px;

  line-height: 1.55;
}

.profile-list li::before {
  content: "✦";

  position: absolute;
  left: 0;

  color: var(--green);

  font-weight: 900;
}


/* ============================
   TEXTE
============================ */

.text-block {
  color: #d7ddd2;

  line-height: 1.75;
  font-size: 14px;
}


/* ============================
   ÉQUIPEMENT / INVENTAIRE
============================ */

.equipment-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 12px;
}

.equipment-item {
  min-width: 0;

  background: rgba(255, 255, 255, 0.02);

  padding: 12px;

  text-align: center;
}

.equipment-icon {
  height: 95px;

  display: grid;
  place-items: center;

  font-size: 44px;

  margin-bottom: 8px;
}

.equipment-icon img {
  display: block;

  max-width: 100%;
  max-height: 90px;

  margin: auto;

  object-fit: contain;
}

.equipment-item span {
  display: block;

  font-size: 11px;

  color: var(--muted);

  text-transform: uppercase;

  line-height: 1.4;

  overflow-wrap: anywhere;
}


/* ============================
   COMPÉTENCES
============================ */

.skill {
  display: grid;

  grid-template-columns: 130px minmax(0, 1fr);

  align-items: center;

  gap: 14px;

  margin-bottom: 12px;
}

.skill:last-child {
  margin-bottom: 0;
}

.skill-name {
  color: var(--muted);

  text-transform: uppercase;

  font-size: 12px;
}

.skill-bar {
  display: grid;

  grid-template-columns: repeat(10, minmax(0, 1fr));

  gap: 4px;
}

.skill-bar span {
  height: 15px;

  background: #1d231c;

  border: 1px solid rgba(255, 255, 255, 0.04);
}

.skill-bar span.on {
  background: var(--green);

  box-shadow: 0 0 8px rgba(184, 240, 61, 0.16);
}


/* ============================
   NOTES
============================ */

.notes {
  color: var(--green);

  font-style: italic;

  line-height: 1.7;
}


/* ============================
   STATUT
============================ */

.status-main {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 18px;
}

.status-main strong {
  display: block;

  color: var(--green);

  font-family: "Barlow Condensed", sans-serif;

  font-size: 46px;

  line-height: 0.9;

  text-transform: uppercase;
}

.status-main span {
  display: block;

  margin-top: 14px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.65;
}


/* ============================
   RADAR
============================ */

.radar {
  width: 84px;

  aspect-ratio: 1;

  border: 2px solid var(--green);

  border-radius: 50%;

  position: relative;

  flex: 0 0 auto;
}

.radar::before,
.radar::after {
  content: "";

  position: absolute;

  inset: 50% 0 auto;

  height: 1px;

  background: var(--green);

  opacity: 0.7;
}

.radar::after {
  transform: rotate(90deg);
}


/* ============================================
   MODE FICHE DANS LA PAGE ÉQUIPAGE
============================================ */

body.in-iframe {
  margin: 0;

  padding: 10px;

  background: #121519;

  overflow-x: hidden;
}

body.in-iframe .container {
  width: 100%;

  max-width: none;

  margin: 0;

  padding: 0;
}

body.in-iframe .layout {
  display: block;

  width: 100%;
}

body.in-iframe .centercontent {
  width: 100%;

  max-width: none;

  margin: 0;

  padding: 0;
}

body.in-iframe .about-card {
  width: 100%;

  margin: 0;
}


/* ============================================
   TABLETTE / PETITE FENÊTRE
============================================ */

@media (max-width: 850px) {

  .top-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 14px;
  }

  .section-grid {
    gap: 14px;

    margin-top: 14px;
  }

  .portrait-card img {
    max-height: 550px;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 26px 18px 18px;
  }

  .panel-title {
    margin-left: -18px;

    max-width: calc(100% + 18px);
  }
}


/* ============================================
   MODE IFRAME ÉTROIT
============================================ */

@media (max-width: 750px) {

  body.in-iframe {
    padding: 6px;
  }

  body.in-iframe .top-grid,
  body.in-iframe .grid-2,
  body.in-iframe .grid-3 {
    grid-template-columns: 1fr;
  }

  body.in-iframe .about-card {
    padding: 10px;
  }
}


/* ============================================
   TÉLÉPHONE
============================================ */

@media (max-width: 550px) {

  body {
    overflow-x: hidden;
  }

  .about-card {
    padding: 8px;

    text-align: left;
  }

  .top-grid {
    gap: 12px;
  }

  .section-grid {
    gap: 12px;

    margin-top: 12px;
  }

  .panel {
    padding: 24px 14px 16px;

    border-radius: 5px;
  }

  .panel-title {
    margin: -24px 0 16px -14px;

    padding: 7px 25px 7px 14px;

    min-width: 150px;

    max-width: calc(100% + 14px);

    font-size: 17px;
  }


  /* INFORMATIONS */

  .identity-list {
    gap: 6px;
  }

  .identity-list li {
    grid-template-columns: 95px minmax(0, 1fr);

    gap: 8px;

    padding: 5px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .label,
  .value {
    font-size: 12px;
  }


  /* PORTRAIT */

  .portrait-card img {
    width: 100%;

    max-height: none;
  }


  /* CITATION */

  .quote {
    margin-top: 12px;

    padding: 18px;

    font-size: 14px;

    line-height: 1.55;
  }

  .quote::before,
  .quote::after {
    font-size: 32px;
  }


  /* COMPÉTENCES */

  .skill {
    grid-template-columns: 1fr;

    gap: 5px;

    margin-bottom: 15px;
  }

  .skill-name {
    font-size: 11px;
  }

  .skill-bar {
    gap: 3px;
  }

  .skill-bar span {
    height: 12px;
  }


  /* ÉQUIPEMENT */

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 7px;
  }

  .equipment-item {
    padding: 8px;
  }

  .equipment-icon {
    height: 70px;

    font-size: 32px;
  }

  .equipment-icon img {
    max-height: 65px;
  }

  .equipment-item span {
    font-size: 9px;
  }


  /* STATUT */

  .status-main {
    gap: 12px;
  }

  .status-main strong {
    font-size: 34px;
  }

  .radar {
    width: 65px;
  }
}


/* ============================================
   TRÈS PETIT TÉLÉPHONE
============================================ */

@media (max-width: 360px) {

  .identity-list li {
    grid-template-columns: 1fr;

    gap: 1px;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .status-main {
    flex-direction: column;

    align-items: flex-start;
  }

  .panel-title {
    min-width: 130px;

    font-size: 15px;
  }
}