/* ============================================
   BLOG ARTICLE STYLES — .entry-content
   Palette : blanc / noir / bleu #0091f9 / orange #ff8a01
   ============================================ */

/* --- Variables & Base --- */
.entry-content {
  --blue:   #0091f9;
  --orange: #ff8a01;
  --dark:   #1a1a1a;
  --gray:   #555;
  --light:  #f6f7f9;
  --border: #e2e5ea;
  --radius: 8px;

  max-width: 900x;
  margin: 0 auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--dark);
  word-wrap: break-word;
}

/* --- Headings --- */
.ideal-magazine-container-wrapper h1 {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1.2rem 0 0.8rem;
  padding-bottom: 0.45rem;
  color: var(--dark);
  border-bottom: 3px solid var(--blue);
  display: inline-block;          /* la bordure épouse le texte */
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.8rem 0 0.6rem;
  color: var(--gray);
  position: relative;
  padding-left: 14px;
}
.entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 4px;
  height: 1em;
  border-radius: 2px;
  background: var(--orange);
}

/* --- Paragraphs --- */
.entry-content p {
  margin: 0 0 1.4rem;
}

/* --- Links --- */
.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 145, 249, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.entry-content a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

/* --- Lists (ul / ol / li) — hors TOC --- */
.entry-content ul,
.entry-content ol:not(.wpj-jtoc--items) {
  margin: 0 0 1.5rem 1.2rem;
  padding: 0;
}
.entry-content ul {
  list-style: none;
}
.entry-content ul > li:not(.wpj-jtoc--item) {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.55rem;
}
.entry-content ul > li:not(.wpj-jtoc--item)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.entry-content ol:not(.wpj-jtoc--items) {
  list-style: none;
  counter-reset: ol-counter;
}
.entry-content ol:not(.wpj-jtoc--items) > li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.55rem;
}
.entry-content ol:not(.wpj-jtoc--items) > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.45em;
  height: 1.45em;
  line-height: 1.45em;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
}

/* --- Reset TOC : on ne touche à rien --- */
.wpj-jtoc--body ol,
.wpj-jtoc--body li {
  all: revert;
}


/* --- Images --- */
.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.post-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.entry-content figure {
  margin: 2rem 0;
}
.entry-content figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* --- Tables --- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.97rem;
  border-radius: var(--radius);
  overflow: hidden;               /* arrondi les coins */
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.entry-content thead th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.entry-content tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.entry-content tbody tr:last-child td {
  border-bottom: none;
}
.entry-content tbody tr:nth-child(even) {
  background: var(--light);
}
.entry-content tbody tr:hover {
  background: rgba(0, 145, 249, 0.06);
}

/* --- Blockquote (bonus) --- */
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--orange);
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray);
}
.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Code inline (bonus) --- */
.entry-content code {
  background: var(--light);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

/* --- FAQ Accordion (details/summary, sans JS) --- */
.entry-content .faq {
  margin: 2.5rem 0;
}
.entry-content .faq details {
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.2s;
}
.entry-content .faq details[open] {
  background: var(--light);
}
.entry-content .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;                /* supprime le triangle par défaut */
  user-select: none;
  transition: color 0.2s;
}
.entry-content .faq summary::-webkit-details-marker {
  display: none;
}
/* Chevron animé */
.entry-content .faq summary::after {
  content: "+";
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.25s ease;
}
.entry-content .faq details[open] summary::after {
  content: "−";
}
.entry-content .faq summary:hover {
  color: var(--blue);
}
.entry-content .faq .faq-answer {
  padding: 0 1.25rem 1.1rem;
  line-height: 1.75;
  color: var(--gray);
}

/* --- Responsive tweaks --- */
@media (max-width: 600px) {
  .entry-content {
    font-size: 1rem;
  }
  .entry-content h1 {
    font-size: 1.7rem;
  }
  .entry-content h2 {
    font-size: 1.35rem;
  }
  .entry-content table {
    font-size: 0.88rem;
  }
  .entry-content thead th,
  .entry-content tbody td {
    padding: 0.6rem 0.7rem;
  }
}

/* ===== BOUTON TESTER URL ===== */

.check-url-wrapper {
  margin-top: 12px;
  text-align: center;
}

.check-url-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3498db;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background 0.3s;
}

.check-url-btn:hover {
  background: #2980b9;
  color: #fff;
}

.check-url-btn.checking {
  pointer-events: none;
  background: #000000;
  color: #fff;
}

.check-url-btn.hidden {
  display: none;
}

/* ===== RÉSULTAT ===== */

.check-url-result {
  display: none;
  margin-top: 12px;
}

.check-url-result.visible {
  display: block;
}

/* ===== BARRE DE PROGRESSION ===== */

.progress-bar {
  background: #eee;
  border-radius: 6px;
  height: 24px;
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
}

.progress-fill {
  background: linear-gradient(90deg, #3498db, #2ecc71);
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.3s;
}

.progress-msg {
  color: #777;
  font-size: 13px;
  margin: 8px 0 0;
}

/* ===== RÉSULTAT SUCCÈS ===== */

.check-success {
  background: #d4edda;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.check-success-icon {
  font-size: 22px;
}

.check-success-title {
  color: #155724;
  font-size: 16px;
}

.check-success-detail {
  color: #155724;
  font-size: 13px;
  margin: 8px 0 0;
}