/* OmniaRank - Plus Downtown : guides
   Même DA que Galerie Downtown, polices du thème Downtownplus. */
.pd-omniarank-guides {
  --pd-sans: "Textes", Helvetica, Arial, sans-serif;
  --pd-serif: "bookmania", Georgia, serif;
  --pd-black: #1d1d1b;
  --pd-white: #ffffff;
  --pd-grey-bg: #ececec;
  --pd-grey-line: #d8d8d8;
  --pd-grey-text: #6b6b6b;
}

/* --- MISE EN PAGE --- */
.pd-guide .pd-guide-inner { grid-column: 3 / span 8; min-width: 0; }
.pd-guides .pd-guides-header { grid-column: 1 / span 8; margin-bottom: 6vh; }
.pd-guides .pd-guides-grille { grid-column: 1 / span 12; min-width: 0; }

/* --- EN-TETES --- */
.pd-guide-meta,
.pd-carte-theme {
  font-family: var(--pd-sans);
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pd-grey-text);
  margin: 0 0 18px;
}
.pd-guide-meta a { color: inherit; text-decoration: none; }
.pd-guide-meta a:hover { color: var(--pd-black); }
.pd-guide-meta span { margin: 0 6px; }
.pd-guide-titre,
.pd-guides-titre {
  font-family: var(--pd-sans);
  font-size: 55px;
  font-weight: 200;
  line-height: 1.1;
  color: var(--pd-black);
  margin: 0 0 4vh;
}
.pd-guides-intro p {
  font-family: var(--pd-serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--pd-black);
}
.pd-guide-image { margin: 0 0 6vh; }
.pd-guide-image img { width: 100%; height: auto; display: block; }

/* --- TEXTE DE L'ARTICLE --- */
.pd-article-content {
  font-family: var(--pd-serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--pd-black);
}
.pd-article-content p { margin: 0 0 1.2em; }
.pd-article-content h2 {
  font-family: var(--pd-sans);
  font-size: 34px;
  font-weight: 200;
  line-height: 1.2;
  margin: 2.4em 0 .8em;
  padding-top: 1em;
  border-top: 1px solid var(--pd-black);
}
.pd-article-content h3 {
  font-family: var(--pd-sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.3;
  margin: 1.8em 0 .6em;
}
.pd-article-content strong { font-weight: 600; }
.pd-article-content a { color: var(--pd-black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pd-article-content a:hover { color: var(--pd-grey-text); }
.pd-article-content ul,
.pd-article-content ol { margin: 0 0 1.4em; padding-left: 1.2em; }
.pd-article-content li { margin-bottom: .5em; }
.pd-article-content img { max-width: 100%; height: auto; }

/* --- ENCADRES : bord noir, fond gris --- */
.pd-tldr,
.pd-box-essentiel {
  background: var(--pd-grey-bg);
  border: 1px solid var(--pd-black);
  padding: 32px 36px;
  margin: 0 0 3em;
}
.pd-box-label,
.pd-tldr p:first-child {
  font-family: var(--pd-sans);
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}
.pd-box-essentiel ul:last-child,
.pd-box-essentiel p:last-child,
.pd-tldr p:last-child { margin-bottom: 0; }

/* --- CITATION / BON A SAVOIR --- */
.pd-box-quote {
  border-left: 1px solid var(--pd-black);
  padding: 4px 0 4px 28px;
  margin: 2.4em 0;
}
.pd-box-quote p { font-style: italic; font-size: 22px; line-height: 1.5; margin: 0; }

/* --- LISTES CHECKMARK --- */
.pd-article-content .pd-custom-list { list-style: none; padding-left: 0; }
.pd-custom-list li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.pd-custom-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--pd-black);
  text-align: center;
  line-height: 20px;
  font-family: var(--pd-sans);
  font-size: 12px;
}

/* --- TABLEAUX --- */
.pd-table-container { overflow-x: auto; margin: 2.4em 0; border: 1px solid var(--pd-black); }
.pd-table-container table { width: 100%; border-collapse: collapse; font-size: 17px; margin: 0; }
.pd-table-container th {
  background: var(--pd-black);
  color: var(--pd-white);
  font-family: var(--pd-sans);
  font-weight: 300;
  text-align: left;
  padding: 14px 18px;
}
.pd-table-container tbody th { background: var(--pd-grey-bg); color: var(--pd-black); }
.pd-table-container td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--pd-grey-line); vertical-align: top; }
.pd-table-container tr:last-child td { border-bottom: none; }
.pd-table-container tbody tr:nth-child(even) td { background: #f6f6f6; }

/* --- CTA : bouton encadré noir, fond blanc --- */
.pd-cta-container {
  text-align: center;
  margin: 3em 0;
  padding: 36px 32px;
  border-top: 1px solid var(--pd-black);
  border-bottom: 1px solid var(--pd-black);
}
.pd-article-content + .pd-cta-container { border: none; padding: 0; }
.pd-cta-text { max-width: 560px; margin: 0 auto 22px !important; }
.pd-cta-text strong { display: block; margin-bottom: 6px; font-family: var(--pd-sans); font-weight: 300; font-size: 24px; }
.pd-cta-button,
.pd-cta-button:visited,
.pd-article-content a.pd-cta-button {
  display: inline-block;
  font-family: var(--pd-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .04em;
  background: var(--pd-white);
  color: var(--pd-black) !important;
  border: 1px solid var(--pd-black);
  padding: 16px 44px;
  text-decoration: none !important;
  transition: background-color .25s ease, color .25s ease;
}
.pd-cta-button:hover,
.pd-cta-button:focus,
.pd-article-content a.pd-cta-button:hover { background: var(--pd-black); color: var(--pd-white) !important; }

/* --- FAQ (H3 sous le H2 FAQ ou accordéon details) --- */
.pd-article-content h2[id$="faq"] ~ h3 { border-top: 1px solid var(--pd-grey-line); padding-top: 1em; }
.pd-article-content details { border-top: 1px solid var(--pd-black); }
.pd-article-content details:last-of-type { border-bottom: 1px solid var(--pd-black); }
.pd-article-content summary {
  display: block;
  position: relative;
  padding: 20px 48px 20px 0;
  cursor: pointer;
  font-family: var(--pd-sans);
  font-weight: 300;
  font-size: 22px;
  list-style: none;
}
.pd-article-content summary::-webkit-details-marker { display: none; }
.pd-article-content summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.pd-article-content details[open] summary::after { content: '\2212'; }

/* --- GRILLE DES GUIDES --- */
.pd-grille { display: grid; grid-template-columns: repeat(var(--pd-cols, 3), minmax(0, 1fr)); gap: 1.5vw; margin: 0; padding: 0; list-style: none; }
.pd-carte { border: 1px solid var(--pd-black); background: var(--pd-white); margin: 0; transition: background-color .25s ease; }
.pd-carte:hover { background: var(--pd-grey-bg); }
.pd-carte-lien { display: flex; flex-direction: column; height: 100%; color: var(--pd-black) !important; text-decoration: none !important; }
.pd-carte-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pd-grey-bg); border-bottom: 1px solid var(--pd-black); }
.pd-carte-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pd-carte:hover .pd-carte-image img { transform: scale(1.03); }
.pd-carte-corps { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 28px; }
.pd-carte-theme { margin-bottom: 10px; }
.pd-carte-titre { font-family: var(--pd-sans); font-size: 24px; font-weight: 200; line-height: 1.25; margin: 0 0 12px; color: var(--pd-black); }
.pd-carte-extrait { font-family: var(--pd-serif); font-size: 17px; font-weight: 300; line-height: 1.45; color: var(--pd-grey-text); margin: 0 0 20px; }
.pd-carte-plus { margin-top: auto; align-self: flex-start; font-family: var(--pd-sans); font-size: 14px; font-weight: 300; border-bottom: 1px solid var(--pd-black); padding-bottom: 2px; }
.pd-grille-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 6vh 0 0; }
.pd-grille-pagination .page-numbers { min-width: 44px; padding: 10px 14px; text-align: center; border: 1px solid var(--pd-black); color: var(--pd-black); text-decoration: none; font-family: var(--pd-sans); }
.pd-grille-pagination .page-numbers.current,
.pd-grille-pagination a.page-numbers:hover { background: var(--pd-black); color: var(--pd-white); }
.pd-grille-pagination .page-numbers.dots { border: none; }
.pd-grille-vide { font-family: var(--pd-serif); font-size: 20px; color: var(--pd-grey-text); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .pd-guide .pd-guide-inner { grid-column: 1 / span 12; }
  .pd-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
  .pd-guides .pd-guides-header { grid-column: 1 / span 12; }
  .pd-guide-titre, .pd-guides-titre { font-size: 36px; }
  .pd-article-content { font-size: 18px; }
  .pd-article-content h2 { font-size: 26px; }
  .pd-box-essentiel, .pd-tldr { padding: 22px; }
  .pd-cta-button { padding: 14px 28px; }
  .pd-grille { grid-template-columns: 1fr; }
}
