/* === STYLES AUTODIAGNOSTIC === */

.ra-container {
  margin: 24px auto;
  padding: 0 18px;
  color: #234;
}

/* --- En-tête : texte + radar --- */
.ra-top {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ra-top-left {
  flex: 1 1 620px;
  min-width: 300px;
}

/* Colonne radar */
.ra-top-right {
  flex: 1 1 520px;
  width: 100%;
  max-width: 720px;
  text-align: center;
  align-self: flex-start;
  position: relative;
  overflow: visible;
  margin-top: 10px;
  padding-top: 10px;
}

/* --- Titres / textes --- */
.ra-h1 {
  color: #015387;
  border-left: 4px solid #015387;
  padding-left: 12px;
  margin-bottom: 12px;
  font-size: 20px;
}

.ra-note {
  font-size: 28px;
  color: #015387;
  font-weight: 700;
  margin: 50px 0 20px 0;
}

.ra-profile-title {
  font-weight: 700;
  color: #603b69;
  margin-bottom: 8px;
}

.ra-profile-text {
  color: #444;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-line;
  font-size: 15px;
}

/* --- Radar : conteneur dimensionné --- */
.ra-radar-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
  overflow: visible;
}

.ra-radar-host {
  overflow: visible;
}

/* Canvas */
.ra-radar-wrapper canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* --- Labels HTML autour du radar --- */
.ra-radar-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 600;
  line-height: 1.12;
  pointer-events: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  width: 220px;
  max-width: 46vw;
  font-size: 13px;
  color: #234;
  z-index: 2;
}

/* --- Ressources --- */
.ra-ressources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.ra-ressources .bloc-ressource {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color: #222;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
}

.ra-ressources .bloc-ressource img {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 100%;
  height: auto;
}

.ra-ressources .bloc-ressource h3,
.ra-ressources .bloc-ressource h4 {
  color: #0b6b6a;
  font-size: 18px;
  margin: 10px 0;
  font-weight: 700;
}

.ra-ressources .bloc-ressource strong {
  text-transform: uppercase;
  font-size: 12px;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.ra-ressources .bloc-ressource p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.ra-ressources .bloc-ressource em {
  color: #000;
  font-style: italic;
}

.ra-ressources .bloc-ressource a {
  color: #1b7b92;
  text-decoration: underline;
  font-weight: 600;
}

.ra-ressources .bloc-ressource a:hover {
  color: #004a80;
  text-decoration: none;
}

/* Colonnes WPBakery : neutralisation */
.ra-ressources .vc_col-sm-4 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

.ra-ressources .vc_row,
.ra-ressources .wpb_wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* === Responsive === */

/* Tablette */
@media (max-width: 1000px) {
  .ra-ressources {
    grid-template-columns: repeat(2, 1fr);
  }

  .ra-radar-wrapper {
    height: 390px;
    min-height: 390px;
  }

  .ra-radar-label {
    width: 180px;
    max-width: 42vw;
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ra-container {
    padding: 0;
  }

  .ra-top {
    gap: 18px;
  }

  .ra-top-left {
    min-width: 100%;
  }

  .ra-top-right {
    max-width: 100%;
    margin-top: 6px;
    padding-top: 24px;
    overflow: visible;
  }

  .ra-h1 {
    font-size: 18px;
  }

  .ra-note {
    font-size: 19px;
    margin: 20px 0;
  }

  .ra-profile-text {
    font-size: 14px;
  }

  .ra-ressources {
    grid-template-columns: 1fr;
  }

  .ra-radar-wrapper {
    height: 360px;
    min-height: 360px;
    overflow: visible;
  }

  .ra-radar-label {
    width: 130px;
    max-width: 42vw;
    font-size: 11px;
    line-height: 1.15;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .ra-top {
    gap: 12px;
  }

  .ra-top-right {
    padding-top: 28px;
  }

  .ra-radar-wrapper {
    height: 320px;
    min-height: 320px;
    overflow: visible;
  }

  .ra-note {
    margin: 14px 0;
    font-size: 17px;
  }

  .ra-h1 {
    font-size: 17px;
  }

  .ra-radar-label {
    width: 112px;
    max-width: 40vw;
    font-size: 9px;
    line-height: 1.1;
  }
}