/* Modal d'estimation epo-forms — cacher le bouton trigger natif (notre <a> sert de trigger via data-epo-popup-target) */
.epo-presse__modal-holder { display: contents; }
.epo-presse__modal-holder > .epo-form__open { display: none !important; }

/* Helper a11y — texte visible uniquement pour les screen readers */
.epo-presse .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Byline nom = bouton interactif (ouvre la modal boutique) */
.epo-presse__byline-name--btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    display: inline;
}
.epo-presse__byline-name--btn::after {
    content: " ›";
    color: #C9A24A;
    font-weight: 700;
    margin-left: 0.15em;
    opacity: 0.7;
    transition: opacity .2s, transform .2s;
    display: inline-block;
}
.epo-presse__byline-name--btn:hover { color: #C9A24A; }
.epo-presse__byline-name--btn:hover::after,
.epo-presse__byline-name--btn:focus-visible::after {
    opacity: 1;
    transform: translateX(2px);
}
.epo-presse__byline-name--btn:focus-visible {
    outline: 2px solid #C9A24A;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Modal byline = module boutique */
.epo-presse__byline-modal {
    border: none;
    border-radius: 14px;
    padding: 0;
    max-width: 1100px;
    width: calc(100% - 2rem);
    max-height: 92vh;
    overflow: auto;
    background: transparent; /* le shortcode boutique fournit son propre fond */
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}
.epo-presse__byline-modal::backdrop {
    background: rgba(15, 39, 68, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.epo-presse__byline-modal-inner {
    border-radius: 14px;
    overflow: hidden;
}
.epo-presse__byline-modal-inner .epb,
.epo-presse__byline-modal-inner .epb--dark {
    border-radius: 14px;
}
.epo-presse__byline-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.95);
    color: #0F2744;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: background .2s, transform .2s;
}
.epo-presse__byline-modal-close:hover {
    background: #fff;
    transform: scale(1.05);
}
.epo-presse__byline-modal-close:focus-visible {
    outline: 2px solid #C9A24A;
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .epo-presse__byline-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        background: #0F2744; /* matche le fond marine du module .epb--dark pour éviter le gap blanc en haut */
    }
    .epo-presse__byline-modal-inner,
    .epo-presse__byline-modal-inner .epb,
    .epo-presse__byline-modal-inner .epb--dark {
        border-radius: 0;
    }
    /* Décale le contenu vers le bas pour laisser la place au bouton X sans masquer le logo */
    .epo-presse__byline-modal-inner {
        padding-top: 56px;
    }
    .epo-presse__byline-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    }
}

/**
 * Template article v2.1 — "Presse sobre cohérence /achat-or/" (B0-1.3)
 * Palette marine + doré + sable. Typo Lato unique (pas de Jakarta, pas de Cormorant).
 * Scope strict : tout préfixé .epo-presse__* pour ne pas polluer le reste du site.
 *
 * @package flatsome-child
 * @version 2.1.0 (2026-05-26)
 */

.epo-presse {
  /* Palette alignée /achat-or/ */
  --marine: #0F2744;
  --marine-soft: #2a4868;
  --ink: #4A4742;
  --ink-soft: #6E6A62;
  --gold: #C9A24A;
  --gold-deep: #A6852E;
  --gold-pale: #DBBC7C;
  --sand: #F1F1F1;
  --sand-soft: #F8F6F2;
  --rule: #E5E2DC;
  --white: #FFFFFF;

  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

.epo-presse *,
.epo-presse *::before,
.epo-presse *::after {
  box-sizing: border-box;
}

/* ─── Container ─── */
.epo-presse__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.epo-presse__article {
  padding: 40px 0 80px;
}

/* ─── Breadcrumb (Yoast) ─── */
.epo-presse__breadcrumb {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.epo-presse__breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.epo-presse__breadcrumb a:hover { color: var(--gold-deep); }
.epo-presse__breadcrumb .breadcrumb_last,
.epo-presse__breadcrumb span[aria-current="page"] {
  color: var(--marine);
}
.epo-presse__breadcrumb-sep {
  margin: 0 10px;
  color: var(--rule);
}

/* ─── Header article ─── */
.epo-presse__header {
  max-width: 800px;
  margin: 0 auto 52px;
}

.epo-presse__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.epo-presse__title {
  font-family: inherit;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--marine);
  margin: 0 0 26px;
  letter-spacing: -1px;
}

.epo-presse__chapo {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.epo-presse__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.epo-presse__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
}
.epo-presse__meta strong {
  color: var(--marine);
  font-weight: 700;
}

/* ─── Featured image hero (si présente) ─── */
.epo-presse__hero-figure {
  max-width: 960px;
  margin: 0 auto 48px;
}
.epo-presse__hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ─── TOC inline déroulable ─── */
.epo-presse__toc {
  max-width: 720px;
  margin: 0 auto 40px;
  background: var(--sand-soft);
  border: 1px solid var(--rule);
}
.epo-presse__toc-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--marine);
}
.epo-presse__toc-summary::-webkit-details-marker { display: none; }
.epo-presse__toc-summary::after {
  content: "+";
  font-size: 20px;
  color: var(--gold-deep);
  font-weight: 400;
}
.epo-presse__toc[open] .epo-presse__toc-summary::after { content: "−"; }

.epo-presse__toc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.epo-presse__toc-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.epo-presse__toc-list {
  list-style: none;
  margin: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--rule);
}
.epo-presse__toc-list li {
  margin: 0;
  padding: 0;
}
.epo-presse__toc-list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}
.epo-presse__toc-list a:hover {
  color: var(--marine);
  border-bottom-color: var(--gold);
  padding-left: 6px;
}
.epo-presse__toc-num {
  display: inline-block;
  width: 28px;
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 13px;
}

/* ─── Body ─── */
.epo-presse__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.epo-presse__body p {
  margin: 0 0 24px;
}

.epo-presse__body h2 {
  font-family: inherit;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--marine);
  margin: 56px 0 8px;
  letter-spacing: -0.5px;
}
.epo-presse__body h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 14px 0 24px;
}

.epo-presse__body h3 {
  font-family: inherit;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--marine);
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}

.epo-presse__body h4 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--marine);
  margin: 28px 0 12px;
}

.epo-presse__body a {
  color: var(--marine);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s;
}
.epo-presse__body a:hover { color: var(--gold-deep); }

.epo-presse__body ul,
.epo-presse__body ol {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
.epo-presse__body ul li,
.epo-presse__body ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}
.epo-presse__body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.epo-presse__body ol { counter-reset: list-counter; }
.epo-presse__body ol li { counter-increment: list-counter; }
.epo-presse__body ol li::before {
  content: counter(list-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 14px;
}

.epo-presse__body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  font-style: italic;
  color: var(--marine);
}

.epo-presse__body strong,
.epo-presse__body b {
  font-weight: 700;
  color: var(--marine);
}

/* Neutralise les span font-weight:400 hérités de l'éditeur WP classique */
.epo-presse__body span[style*="font-weight: 400"] {
  font-weight: 400 !important;
}

.epo-presse__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

.epo-presse__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.epo-presse__body table th,
.epo-presse__body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.epo-presse__body table th {
  background: var(--sand-soft);
  font-weight: 700;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

/* ─── CTA inline ─── */
.epo-presse__cta-inline {
  max-width: 720px;
  margin: 56px auto;
  padding: 36px 40px;
  background: var(--sand-soft);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
}
.epo-presse__cta-inline-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.epo-presse__cta-inline-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--marine);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}
.epo-presse__cta-inline-text {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.6;
}
.epo-presse__cta-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Boutons ─── */
.epo-presse__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.epo-presse__btn--primary {
  background: var(--gold);
  color: var(--marine);
  border-color: var(--gold);
}
.epo-presse__btn--primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--white);
}
.epo-presse__btn--ghost {
  background: transparent;
  color: var(--marine);
  border-color: var(--marine);
}
.epo-presse__btn--ghost:hover {
  background: var(--marine);
  color: var(--white);
}

/* ─── Footer article ─── */
.epo-presse__footer {
  max-width: 800px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.epo-presse__byline {
  display: flex;
  align-items: center;
  gap: 14px;
}
.epo-presse__byline-mark {
  width: 46px;
  height: 46px;
  background: var(--marine);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.epo-presse__byline-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.epo-presse__byline-role {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Bloc avis Google compact (markup maison) */
.epo-presse__avis {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--sand-soft);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.epo-presse__avis:hover {
  border-color: var(--gold);
  background: var(--white);
}
.epo-presse__avis-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}
.epo-presse__avis-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
}
.epo-presse__avis-text strong {
  color: var(--marine);
  font-weight: 800;
  font-size: 13px;
}
.epo-presse__avis-text small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  margin-top: 2px;
}

.epo-presse__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.epo-presse__tag {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  background: var(--sand);
  color: var(--marine);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.2s;
}
.epo-presse__tag:hover {
  background: var(--gold);
  color: var(--marine);
}

/* ─── "Pour aller plus loin" ─── */
.epo-presse__more {
  background: var(--sand);
  padding: 80px 0;
  margin-top: 80px;
}
.epo-presse__more-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.epo-presse__more-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.epo-presse__more-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--marine);
  margin: 0;
  letter-spacing: -0.5px;
}
.epo-presse__more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.epo-presse__more-card {
  display: block;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: all 0.2s;
}
.epo-presse__more-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.08);
}
.epo-presse__more-card-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sand-soft) 0%, var(--rule) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  color: var(--gold);
  overflow: hidden;
}
.epo-presse__more-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.epo-presse__more-card-body {
  padding: 22px 24px 26px;
}
.epo-presse__more-card-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.epo-presse__more-card-title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--marine);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.epo-presse__more-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* ─── Bandeau CTA final ─── */
.epo-presse__cta-final {
  background: var(--marine);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.epo-presse__cta-final-inner {
  max-width: 800px;
  margin: 0 auto;
}
.epo-presse__cta-final-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.epo-presse__cta-final-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 14px;
  max-width: 680px;
  letter-spacing: -0.5px;
}
.epo-presse__cta-final-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 32px;
  max-width: 560px;
  line-height: 1.6;
}
.epo-presse__cta-final-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.epo-presse__cta-final .epo-presse__btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.epo-presse__cta-final .epo-presse__btn--ghost:hover {
  background: var(--white);
  color: var(--marine);
  border-color: var(--white);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .epo-presse__more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .epo-presse { font-size: 16px; }
  .epo-presse__article { padding: 28px 0 60px; }
  .epo-presse__title { font-size: 36px; }
  .epo-presse__chapo { font-size: 18px; }
  .epo-presse__body { font-size: 16px; }
  .epo-presse__body h2 { font-size: 26px; margin-top: 44px; }
  .epo-presse__body h3 { font-size: 20px; }
  .epo-presse__cta-inline { padding: 28px 24px; }
  .epo-presse__cta-inline-title { font-size: 20px; }
  .epo-presse__cta-final-title { font-size: 28px; }
  .epo-presse__more-title { font-size: 28px; }
  .epo-presse__footer { flex-direction: column; align-items: flex-start; }
}
