/* ==========================================================
   1) BASE ARTICLE CONTENT
========================================================== */

.entry-content,
.post-content,
.et_pb_post .entry-content {
  font-size: 16px;
  line-height: 1.5;
  color: #222;
}

.entry-content p,
.post-content p,
.et_pb_post .entry-content p {
  margin: 0 0 0.6em;
}

.entry-content ol,
.entry-content ul,
.post-content ol,
.post-content ul,
.et_pb_post .entry-content ol,
.et_pb_post .entry-content ul {
  margin: 0 0 1.5em 1.4em;
  padding: 0;
}

.entry-content li,
.post-content li,
.et_pb_post .entry-content li {
  margin-bottom: 0.7em;
}

.entry-content h2,
.post-content h2,
.et_pb_post .entry-content h2 {
  margin: 2em 0 0.8em;
  font-size: 1.7rem;
  font-weight: 800;
  color: #111;
}

.entry-content h3,
.post-content h3,
.et_pb_post .entry-content h3 {
  margin: 1.6em 0 0.7em;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
}

.entry-content a,
.post-content a,
.et_pb_post .entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ==========================================================
   2) MEDIA
========================================================== */

.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 15px auto;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.entry-content iframe,
.post-content iframe,
.et_pb_post .entry-content iframe {
  max-width: 100%;
  border: 0;
  border-radius: 14px;
  display: block;
}


/* ==========================================================
   3) DOWNLOAD BOX
========================================================== */

.download-box {
  margin: 1.6em 0;
  padding: 18px 22px;
  border: 1px solid #dddddd;
  border-radius: 20px;
  background: #f5f5f5;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


/* bouton principal */

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  min-height: 50px;
  border-radius: 14px;
  background: #c40018;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-download:hover {
  background: #ad0015;
  transform: translateY(-1px);
  opacity: 0.98;
}


/* bouton petit */

.btn-download.is-small {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  min-height: auto;
}


/* ==========================================================
   4) BOXES
========================================================== */

.cta-box {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-left: 4px solid #b30000;
  border-radius: 12px;
  background: #fff7f7;
}

.cta-box p:last-child {
  margin-bottom: 0;
}

.notice-box {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f7f1e3;
  border: 1px solid #e7cf8a;
}

.notice-box p {
  margin: 0 0 12px;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.notice-box a {
  display: inline-block; /* 🔥 important */
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #cf8d18;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap; /* évite étirement */
}

.notice-box a:hover {
  background: #b97d12;
  transform: translateY(-1px);
}


/* ==========================================================
   5) TUTORIAL STEP
========================================================== */

.tutorial-step {
  margin: 1.8em 0;
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.tutorial-step p:first-child {
  margin-bottom: 0.8em;
  font-weight: 600;
}

.tutorial-step img {
  width: 100%;
}


/* ==========================================================
   6) VIDEO
========================================================== */

.video-box {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid #e3e6ea;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==========================================================
   7) CHANGELOG
========================================================== */

.changelog-box {
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid #ff6600;
  border-radius: 10px;
  background: #f8f8f8;
}

.changelog-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.changelog-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ==========================================================
   8) MOBILE
========================================================== */

@media (max-width: 768px) {
  .download-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-download {
    width: 100%;
  }

  .download-box__label {
    text-align: center;
    width: 100%;
  }
}

/* =========================================================
   FIX WORDPRESS (OBLIGATOIRE)
========================================================= */

.btn-download br {
  display: none !important;
}

.notice-box a br {
  display: none !important;
}