/* Edjare Magazine — refonte frontend */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ej-purple: #5d0081;
  --ej-magenta: #9d1f7e;
  --ej-orange: #f15a24;
  --ej-yellow: #ffcc00;
  --ej-ink: #1a0f24;
  --ej-muted: #6e6278;
  --ej-bg: #f7f4fa;
  --ej-card: #ffffff;
  --ej-radius: 16px;
  --ej-gradient: linear-gradient(120deg, #5d0081, #9d1f7e 45%, #f15a24 85%);
}

* { box-sizing: border-box; }

body.ej-magazine {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--ej-bg);
  color: var(--ej-ink);
  margin: 0;
  line-height: 1.5;
}

.ej-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.ej-header {
  background: #fff;
  border-bottom: 1px solid rgba(93, 0, 129, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(93, 0, 129, 0.06);
}

.ej-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.ej-logo img { height: 44px; width: auto; }

.ej-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.ej-nav a {
  color: var(--ej-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.ej-nav a:hover {
  background: rgba(93, 0, 129, 0.08);
  color: var(--ej-purple);
}

.ej-nav a.active {
  color: var(--ej-purple);
  background: rgba(93, 0, 129, 0.1);
  position: relative;
}

.ej-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--ej-gradient);
}

.ej-search input {
  border: 2px solid rgba(93, 0, 129, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  min-width: 180px;
}

.ej-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.ej-search input:focus {
  outline: none;
  border-color: var(--ej-purple);
}

.ej-search-btn {
  border: 2px solid var(--ej-purple);
  border-left: none;
  background: var(--ej-purple);
  color: #fff;
  border-radius: 0 999px 999px 0;
  padding: 8px 14px;
  cursor: pointer;
  margin-left: -2px;
}

.ej-search input {
  border-radius: 999px 0 0 999px;
}

/* Bandeau pub discret */
.ej-ad-strip {
  background: #fff;
  border: 1px dashed rgba(157, 31, 126, 0.3);
  border-radius: var(--ej-radius);
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ej-muted);
  margin: 16px 0;
}

.ej-ad-strip a { color: var(--ej-orange); font-weight: 700; }

/* Hero une */
.ej-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin: 28px 0 32px;
}

@media (max-width: 900px) {
  .ej-hero { grid-template-columns: 1fr; }
}

.ej-hero-main {
  position: relative;
  border-radius: var(--ej-radius);
  overflow: hidden;
  min-height: 380px;
  background: var(--ej-gradient);
}

.ej-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.ej-hero-main .ej-hero-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 15, 36, 0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}

.ej-hero-main .ej-tag {
  display: inline-block;
  background: var(--ej-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.ej-hero-main h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
}

.ej-hero-main h1 a { color: #fff; text-decoration: none; }
.ej-hero-main h1 a:hover { color: var(--ej-yellow); }

.ej-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ej-hero-side .ej-mini-card {
  flex: 1;
  display: flex;
  gap: 14px;
  background: var(--ej-card);
  border-radius: var(--ej-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(93, 0, 129, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.ej-hero-side .ej-mini-card:hover { transform: translateX(4px); }

.ej-mini-card img {
  width: 110px;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.ej-mini-card .ej-mini-body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ej-mini-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}

.ej-mini-card .ej-meta {
  font-size: 0.75rem;
  color: var(--ej-muted);
}

/* Section titre */
.ej-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid;
  border-image: var(--ej-gradient) 1;
}

.ej-section-title h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: var(--ej-purple);
}

/* Grille articles */
.ej-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

@media (max-width: 992px) { .ej-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .ej-grid { grid-template-columns: 1fr; } }

.ej-card {
  background: var(--ej-card);
  border-radius: var(--ej-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(93, 0, 129, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.ej-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(93, 0, 129, 0.14);
}

.ej-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--ej-gradient);
}

.ej-card-img img { width: 100%; height: 100%; object-fit: cover; }

.ej-card-body { padding: 18px; }

.ej-card .ej-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ej-magenta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ej-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.3;
}

.ej-card p {
  font-size: 0.85rem;
  color: var(--ej-muted);
  margin: 0;
}

.ej-card .ej-meta {
  font-size: 0.75rem;
  color: var(--ej-muted);
  margin-top: 10px;
}

/* Catégories pills */
.ej-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ej-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(93, 0, 129, 0.15);
  color: var(--ej-purple);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.ej-pill:hover {
  background: var(--ej-purple);
  color: #fff;
  border-color: var(--ej-purple);
}

/* Article détail */
.ej-article-header {
  margin: 32px 0 24px;
}

.ej-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ej-ink);
}

.ej-article-cover {
  border-radius: var(--ej-radius);
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 480px;
}

.ej-article-cover img { width: 100%; height: auto; display: block; }

.ej-prose {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 32px;
  box-shadow: 0 8px 24px rgba(93, 0, 129, 0.06);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Contenu article (HTML riche) */
.ej-prose h2, .ej-prose h3, .ej-prose h4 {
  color: var(--ej-purple);
  font-weight: 800;
  margin: 1.5em 0 0.6em;
  line-height: 1.25;
}

.ej-prose p { margin: 0 0 1.1em; }

.ej-prose ul, .ej-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.ej-prose li { margin-bottom: 0.35em; }

.ej-prose a {
  color: var(--ej-magenta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ej-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2em 0;
}

.ej-prose blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--ej-orange);
  background: rgba(93, 0, 129, 0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.ej-prose pre, .ej-prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.ej-prose pre {
  background: var(--ej-ink);
  color: #e8dff0;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

/* Article page layout */
.ej-article { margin-bottom: 48px; }

.ej-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--ej-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.ej-article-meta i { color: var(--ej-magenta); margin-right: 6px; }

.ej-cat-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ej-magenta);
  text-decoration: none;
  margin-bottom: 10px;
}

.ej-cat-link:hover { color: var(--ej-purple); }

.ej-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .ej-article-layout { grid-template-columns: 1fr; }
}

.ej-share-box {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(93, 0, 129, 0.08);
  position: sticky;
  top: 90px;
}

.ej-share-box h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--ej-purple);
}

.ej-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ej-share {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ej-share:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); }

.ej-share-facebook { background: #1877f2; }
.ej-share-twitter { background: #1da1f2; }
.ej-share-linkedin { background: #0a66c2; }
.ej-share-whatsapp { background: #25d366; }
.ej-share-copy { background: var(--ej-ink); }

.ej-share-hint {
  font-size: 0.8rem;
  color: var(--ej-magenta);
  margin: 10px 0 0;
  font-weight: 600;
}

.ej-tags-box { margin-top: 20px; }
.ej-tags-box h4 { font-size: 0.85rem; color: var(--ej-muted); margin: 0 0 8px; }

.ej-tag-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(93, 0, 129, 0.08);
  color: var(--ej-purple);
  border-radius: 999px;
  font-size: 0.8rem;
  margin: 0 6px 6px 0;
}

.ej-related { margin-top: 16px; }

/* Page contact */
.ej-contact-page { padding: 24px 0 56px; }

.ej-contact-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.ej-contact-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(93, 0, 129, 0.1);
  color: var(--ej-purple);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.ej-contact-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--ej-purple);
  margin: 0 0 12px;
}

.ej-contact-hero p { color: var(--ej-muted); margin: 0; }

.ej-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .ej-contact-grid { grid-template-columns: 1fr; }
}

.ej-contact-card {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(93, 0, 129, 0.06);
}

.ej-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ej-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ej-contact-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ej-purple); }
.ej-contact-card p { margin: 0; color: var(--ej-muted); font-size: 0.95rem; }
.ej-contact-card a { color: var(--ej-magenta); font-weight: 600; text-decoration: none; }
.ej-contact-card a:hover { text-decoration: underline; }

.ej-contact-social span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ej-muted);
  margin-bottom: 10px;
}

.ej-contact-social div {
  display: flex;
  gap: 10px;
}

.ej-contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ej-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ej-contact-form-wrap {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 32px;
  box-shadow: 0 12px 40px rgba(93, 0, 129, 0.1);
}

.ej-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 576px) {
  .ej-form-row { grid-template-columns: 1fr; }
}

.ej-form-group { margin-bottom: 18px; }

.ej-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ej-ink);
  margin-bottom: 6px;
}

.ej-input {
  width: 100%;
  border: 2px solid rgba(93, 0, 129, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ej-input:focus {
  outline: none;
  border-color: var(--ej-purple);
  box-shadow: 0 0 0 3px rgba(93, 0, 129, 0.12);
}

.ej-textarea { resize: vertical; min-height: 140px; }

.ej-btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

.ej-btn-lg i { margin-right: 8px; }

.ej-alert {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.ej-alert-success {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.ej-alert p { margin: 0; }

/* Footer */
.ej-footer {
  background: linear-gradient(165deg, #1a0f24 0%, #2d1540 100%);
  color: #d4c8e0;
  margin-top: 56px;
  padding: 56px 0 28px;
}

.ej-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .ej-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .ej-footer-grid { grid-template-columns: 1fr; }
}

.ej-footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.ej-footer-tagline {
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.ej-footer-location {
  font-size: 0.9rem;
  margin: 0 0 16px;
  opacity: 0.85;
}

.ej-footer-location i { color: var(--ej-yellow); margin-right: 6px; }

.ej-footer-social {
  display: flex;
  gap: 10px;
}

.ej-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.ej-footer-social a:hover {
  background: var(--ej-orange);
  transform: translateY(-2px);
  color: #fff;
}

.ej-footer-col h5 {
  color: var(--ej-yellow);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ej-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ej-footer-col li { margin-bottom: 8px; }

.ej-footer-col a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s, padding-left 0.15s;
}

.ej-footer-col a:hover {
  color: var(--ej-yellow);
  padding-left: 4px;
}

.ej-footer-contact-list a i { margin-right: 8px; }

.ej-btn-footer { margin-top: 12px; }

.ej-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.ej-footer-bottom p {
  margin: 0 0 4px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.ej-footer-note { font-size: 0.75rem !important; opacity: 0.55 !important; }

.ej-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ej-gradient);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border: none;
}

.ej-placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--ej-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Animations */
@keyframes ej-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ej-animate {
  animation: ej-fade-up 0.65s ease-out both;
}

.ej-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.ej-reveal.ej-visible {
  opacity: 1;
  transform: translateY(0);
}

.ej-page-home .ej-hero-main {
  animation: ej-fade-up 0.7s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .ej-animate,
  .ej-reveal,
  .ej-page-home .ej-hero-main {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Recherche */
.ej-search-page { padding: 28px 0 48px; }

.ej-search-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.ej-search-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ej-purple);
  margin: 0 0 8px;
}

.ej-search-count { color: var(--ej-muted); margin: 0 0 20px; }

.ej-search-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ej-search-inline input {
  flex: 1;
  min-width: 220px;
  border: 2px solid rgba(93, 0, 129, 0.15);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 1rem;
}

.ej-search-inline input:focus {
  outline: none;
  border-color: var(--ej-purple);
}

.ej-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--ej-radius);
  box-shadow: 0 8px 24px rgba(93, 0, 129, 0.06);
}

.ej-empty-state i {
  font-size: 3rem;
  color: var(--ej-magenta);
  opacity: 0.5;
  margin-bottom: 16px;
}

.ej-empty-state h2 { margin: 0 0 8px; color: var(--ej-purple); }

/* Annonceurs */
.ej-advertisers-page { padding: 24px 0 56px; }

.ej-advertisers-hero {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--ej-radius);
  background: var(--ej-gradient);
  color: #fff;
  margin-bottom: 32px;
}

.ej-advertisers-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.ej-advertisers-hero p {
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 24px;
}

.ej-advertisers-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .ej-advertisers-stats { grid-template-columns: 1fr; }
}

.ej-stat-card {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(93, 0, 129, 0.08);
}

.ej-stat-card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--ej-purple);
  margin-bottom: 6px;
}

.ej-stat-card span { font-size: 0.85rem; color: var(--ej-muted); }

.ej-advertisers-formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .ej-advertisers-formats { grid-template-columns: 1fr; }
}

.ej-format-card {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(93, 0, 129, 0.08);
  transition: transform 0.2s;
}

.ej-format-card:hover { transform: translateY(-4px); }

.ej-format-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(93, 0, 129, 0.1);
  color: var(--ej-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.ej-format-card h3 {
  margin: 0 0 8px;
  color: var(--ej-purple);
  font-size: 1.1rem;
}

.ej-format-card p { margin: 0; color: var(--ej-muted); font-size: 0.95rem; }

.ej-advertisers-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .ej-advertisers-cta { grid-template-columns: 1fr; }
}

.ej-advertisers-cta ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.ej-advertisers-cta li {
  margin-bottom: 10px;
  color: var(--ej-muted);
}

.ej-advertisers-cta li i {
  color: var(--ej-orange);
  margin-right: 8px;
}

.ej-advertisers-contact-box {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 28px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(93, 0, 129, 0.1);
}

.ej-advertisers-contact-box h3 { color: var(--ej-purple); margin: 0 0 12px; }

.ej-advertisers-contact-box a { color: var(--ej-magenta); font-weight: 600; }

/* Confirmation contact */
.ej-success-page {
  padding: 64px 0 80px;
  display: flex;
  justify-content: center;
}

.ej-success-card {
  background: #fff;
  border-radius: var(--ej-radius);
  padding: 48px 40px;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(93, 0, 129, 0.12);
}

.ej-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.ej-success-card h1 {
  font-size: 1.5rem;
  color: var(--ej-purple);
  margin: 0 0 12px;
}

.ej-success-card p { color: var(--ej-muted); margin: 0 0 28px; }

.ej-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ej-btn-outline {
  background: transparent !important;
  color: var(--ej-purple) !important;
  border: 2px solid var(--ej-purple);
}

/* ——— Mobile & tablettes (responsive + touch) ——— */
.ej-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ej-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 2px solid rgba(93, 0, 129, 0.15);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.ej-nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--ej-purple);
  transition: transform 0.2s, opacity 0.2s;
}

body.ej-nav-open .ej-nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.ej-nav-open .ej-nav-toggle-bar:nth-child(2) { opacity: 0; }
body.ej-nav-open .ej-nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.ej-nav-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(26, 15, 36, 0.45);
  z-index: 99;
}

@media (min-width: 993px) {
  .ej-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .ej-header-top { flex: 0 0 auto; }

  .ej-header-panel {
    display: contents;
  }

  .ej-nav { flex: 1 1 auto; justify-content: center; }
  .ej-search { flex: 0 1 220px; }
}

@media (max-width: 992px) {
  .ej-wrap { padding: 0 16px; }

  .ej-nav-toggle { display: flex; }

  .ej-header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .ej-header-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  body.ej-nav-open .ej-header-panel {
    max-height: 520px;
    opacity: 1;
    padding-bottom: 12px;
  }

  body.ej-nav-open { overflow: hidden; }

  .ej-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 12px;
  }

  .ej-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .ej-search {
    width: 100%;
  }

  .ej-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    min-height: 48px;
    padding: 12px 16px;
  }

  .ej-search-btn {
    min-width: 48px;
    min-height: 48px;
  }

  .ej-hero-main { min-height: 280px; }
  .ej-hero-main .ej-hero-content { padding: 20px; }
  .ej-hero-side { min-height: 200px; }

  .ej-share-box { position: static; }
  .ej-article-header h1 { font-size: clamp(1.35rem, 5vw, 1.85rem); }
  .ej-article-meta { flex-direction: column; gap: 8px; align-items: flex-start; }

  .ej-contact-form-wrap { padding: 20px; }
}

@media (max-width: 768px) {
  .ej-logo img { height: 38px; }
  .ej-card-thumb { aspect-ratio: 16 / 10; }
}

@media (max-width: 576px) {
  .ej-hero-main { min-height: 240px; }
  .ej-footer { padding: 40px 0 24px; }
  .ej-success-card { padding: 32px 24px; margin: 0 8px; }
}

.ej-prose img,
.ej-article-cover img,
.ej-card img {
  max-width: 100%;
  height: auto;
}

img { max-width: 100%; height: auto; }

a, button, .ej-btn, .ej-share {
  -webkit-tap-highlight-color: rgba(93, 0, 129, 0.12);
}

@supports (padding: max(0px)) {
  .ej-footer-bottom {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
