/* =========================================================
   EHTYMODEL — Espace Membres · CSS Frontend
   ========================================================= */

:root {
  --em-rose:       #CDAFAF;
  --em-rose-dark:  #b89090;
  --em-black:      #000000;
  --em-white:      #ffffff;
  --em-off-white:  #f9f4f4;
  --em-grey:       #888;
  --em-card-bg:    #0d0d0d;
  --em-border:     rgba(205,175,175,0.12);
}

/* ── Reset wrap ── */
.ehtym-wrap * { box-sizing: border-box; }
.ehtym-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--em-white);
  background: var(--em-black);
  min-height: 100vh;
  margin: 0 auto;
}

/* ========================================================
   PAGE DE CONNEXION
   ======================================================== */
.ehtym-hero {
  min-height: 70vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 80px 24px 60px;
  background: var(--em-black);
}
.ehtym-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(205,175,175,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.ehtym-hero-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 80vw); height: min(500px, 80vw);
  border-radius: 50%;
  border: 1px solid rgba(205,175,175,0.06);
  animation: emRingPulse 4s ease-in-out infinite;
  pointer-events: none;
}
.ehtym-hero-ring--2 {
  width: min(720px, 95vw); height: min(720px, 95vw);
  animation-delay: 1.5s; border-color: rgba(205,175,175,0.03);
}
@keyframes emRingPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity:1; }
  50%      { transform: translate(-50%,-50%) scale(1.04); opacity:0.5; }
}
.ehtym-eyebrow {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--em-rose); margin-bottom: 20px;
}
.ehtym-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 900; line-height: 0.92;
  text-transform: uppercase; color: var(--em-white);
}
.ehtym-hero-title span { color: var(--em-rose); }
.ehtym-hero-sub {
  margin-top: 24px; font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,0.5); max-width: 480px; line-height: 1.75;
}
.ehtym-hero-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--em-rose), transparent);
  margin: 36px auto 0;
}

/* Login form */
.ehtym-login-section {
  padding: 64px 24px 96px;
  display: flex; justify-content: center;
}
.ehtym-login-card {
  background: #0a0a0a;
  border: 1px solid var(--em-border);
  padding: 48px;
  width: 100%; max-width: 520px;
}
.ehtym-section-label {
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--em-rose); margin-bottom: 12px; display: block;
}
.ehtym-login-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 700;
  color: var(--em-white); line-height: 1.2; margin-bottom: 12px;
}
.ehtym-login-sub {
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin-bottom: 32px; line-height: 1.6;
}
.ehtym-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ehtym-field label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.ehtym-field input {
  background: #181818; border: 1px solid rgba(205,175,175,0.18);
  color: var(--em-white); font-family: 'DM Sans', sans-serif;
  font-size: 15px; padding: 14px 18px; outline: none;
  transition: border-color 0.2s;
}
.ehtym-field input:focus { border-color: var(--em-rose); }
.ehtym-field input::placeholder { color: rgba(255,255,255,0.2); }
.ehtym-btn-primary {
  width: 100%; background: var(--em-rose); color: var(--em-black);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; padding: 16px; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.ehtym-btn-primary:hover { background: var(--em-rose-dark); transform: translateY(-1px); }
.ehtym-login-error {
  margin-top: 16px; padding: 14px 18px;
  background: rgba(220,60,60,0.1); border-left: 3px solid #dc3c3c;
  font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.ehtym-login-error a { color: var(--em-rose); }

/* ========================================================
   DASHBOARD
   ======================================================== */

/* Banner test */
.ehtym-test-banner {
  background: #e07020; color: #fff;
  text-align: center; padding: 12px 24px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
}
.ehtym-test-banner a { color: #fff; font-weight: 700; }

/* Header */
.ehtym-dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--em-border);
  position: sticky; top: 0; z-index: 100;
}
.ehtym-header-left { display: flex; align-items: center; gap: 24px; }
.ehtym-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.25em;
  color: var(--em-rose); text-transform: uppercase;
}
.ehtym-welcome { font-size: 14px; color: rgba(255,255,255,0.7); }
.ehtym-session-info {
  font-size: 11px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em; margin-left: 12px;
}
.ehtym-header-right { display: flex; align-items: center; gap: 12px; }
.ehtym-tutorial-relaunch {
  background: none; border: 1px solid var(--em-border);
  color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 0.1em;
  padding: 8px 14px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.ehtym-tutorial-relaunch:hover { color: var(--em-rose); border-color: var(--em-rose); }
.ehtym-logout-btn {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1); padding: 8px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.ehtym-logout-btn:hover { color: var(--em-rose); border-color: var(--em-rose); }

/* Stats bar */
.ehtym-stats-bar {
  background: var(--em-rose); padding: 20px 32px;
  display: flex; align-items: center; gap: 32px;
}
.ehtym-stat-item { display: flex; align-items: center; gap: 10px; }
.ehtym-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900; color: var(--em-black); line-height: 1;
}
.ehtym-stat-label {
  font-size: 12px; color: rgba(0,0,0,0.6); text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ehtym-stat-divider {
  width: 1px; height: 32px; background: rgba(0,0,0,0.15);
}

/* Filtres */
.ehtym-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 24px 32px; border-bottom: 1px solid var(--em-border);
}
.ehtym-filter-btn {
  font-size: 12px; letter-spacing: 0.08em;
  padding: 8px 16px; text-decoration: none;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(205,175,175,0.15);
  transition: all 0.2s;
}
.ehtym-filter-btn:hover,
.ehtym-filter-btn.active {
  color: var(--em-black); background: var(--em-rose);
  border-color: var(--em-rose);
}

/* Disclaimer */
.ehtym-disclaimer {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 32px;
  background: rgba(205,175,175,0.05);
  border-bottom: 1px solid var(--em-border);
  font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6;
}
.ehtym-disclaimer strong { color: rgba(255,255,255,0.65); }

/* Grille annonces */
.ehtym-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 32px;
}

/* Carte annonce */
.ehtym-post-card {
  background: var(--em-card-bg);
  border: 1px solid var(--em-border);
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  transition: border-color 0.2s;
  position: relative;
}
.ehtym-post-card:hover { border-color: rgba(205,175,175,0.25); }
.ehtym-post-card.ehtym-expired { opacity: 0.6; }

/* Badges */
.ehtym-post-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ehtym-badge {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.ehtym-badge--new { background: rgba(205,175,175,0.15); color: var(--em-rose); }
.ehtym-badge--pin { background: rgba(255,200,0,0.1); color: #c9a84c; }
.ehtym-badge--expired { background: rgba(220,60,60,0.1); color: #e07070; }
.ehtym-badge--interne { background: rgba(76,175,128,0.1); color: #4caf80; }
.ehtym-badge--externe { background: rgba(100,100,255,0.1); color: #8888ff; }

.ehtym-post-cat {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--em-rose);
}
.ehtym-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--em-white);
  line-height: 1.3; margin: 0;
}

/* Images */
.ehtym-post-images {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.ehtym-post-images img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}

/* Contenu */
.ehtym-post-content {
  font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.75;
}
.ehtym-post-content p { margin-bottom: 10px; }

/* Meta */
.ehtym-post-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--em-border); padding-top: 14px;
}
.ehtym-meta-item {
  font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}
.ehtym-meta-expired { color: #e07070; }

/* Footer carte */
.ehtym-post-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
}
.ehtym-post-stats { display: flex; align-items: center; gap: 14px; }
.ehtym-stat-vue {
  font-size: 13px; color: rgba(255,255,255,0.35); letter-spacing: 0.05em;
}
.ehtym-like-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--em-border);
  color: rgba(255,255,255,0.5); font-size: 13px;
  padding: 6px 14px; cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.ehtym-like-btn:hover,
.ehtym-like-btn.liked { border-color: var(--em-rose); color: var(--em-rose); }
.ehtym-like-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ehtym-btn-postuler {
  background: var(--em-rose); color: var(--em-black);
  text-decoration: none; padding: 10px 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; transition: background 0.2s;
}
.ehtym-btn-postuler:hover { background: var(--em-rose-dark); }
.ehtym-post-disclaimer {
  font-size: 11px; color: rgba(255,255,255,0.25);
  padding-top: 12px; border-top: 1px solid var(--em-border);
  font-style: italic;
}

/* Vide */
.ehtym-empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 24px;
  color: rgba(255,255,255,0.3);
}
.ehtym-empty span { font-size: 48px; display: block; margin-bottom: 16px; }
.ehtym-empty p { font-size: 15px; line-height: 1.6; }

/* Ressources */
.ehtym-resources {
  padding: 48px 32px;
  border-top: 1px solid var(--em-border);
  background: #080808;
}
.ehtym-resources-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--em-white);
  margin: 8px 0 24px;
}
.ehtym-resources-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.ehtym-resource-link {
  background: #0d0d0d; border: 1px solid var(--em-border);
  color: rgba(255,255,255,0.6); text-decoration: none;
  padding: 12px 18px; font-size: 13px;
  transition: color 0.2s, border-color 0.2s;
}
.ehtym-resource-link:hover { color: var(--em-rose); border-color: var(--em-rose); }

/* Footer dashboard */
.ehtym-dashboard-footer {
  padding: 32px;
  border-top: 1px solid var(--em-border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  background: #050505;
}
.ehtym-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 13px; letter-spacing: 0.25em;
  color: var(--em-rose); text-transform: uppercase;
  flex: 1;
}
.ehtym-footer-copy { font-size: 12px; color: #fff; flex: 1; text-align: center; }
.ehtym-footer-links {
  display: flex; gap: 20px; flex: 1; justify-content: flex-end;
}
.ehtym-footer-links a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s;
}
.ehtym-footer-links a:hover { color: var(--em-rose); }

/* ========================================================
   TUTORIEL
   ======================================================== */
.ehtym-tutorial-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.ehtym-tutorial-box {
  background: #0d0d0d; border: 1px solid var(--em-rose);
  padding: 48px; max-width: 480px; width: 100%;
  text-align: center;
}
.ehtym-tutorial-step { display: none; }
.ehtym-tutorial-step.active { display: block; }
.ehtym-tutorial-icon { font-size: 48px; margin-bottom: 16px; }
.ehtym-tutorial-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--em-white); margin-bottom: 12px;
}
.ehtym-tutorial-box p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.ehtym-tutorial-nav {
  display: flex; justify-content: space-between; align-items: center; margin-top: 36px;
}
.ehtym-tutorial-dots { display: flex; gap: 8px; }
.ehtym-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(205,175,175,0.2); cursor: pointer; transition: background 0.2s;
}
.ehtym-dot.active { background: var(--em-rose); }
.ehtym-btn-tutorial {
  background: var(--em-rose); color: var(--em-black);
  border: none; padding: 12px 24px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s;
}
.ehtym-btn-tutorial:hover { background: var(--em-rose-dark); }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
  .ehtym-posts-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .ehtym-dashboard-header { padding: 16px 20px; }
  .ehtym-filters { padding: 16px 20px; }
  .ehtym-stats-bar { padding: 16px 20px; }
  .ehtym-disclaimer { padding: 12px 20px; }
  .ehtym-resources { padding: 36px 20px; }
  .ehtym-dashboard-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .ehtym-footer-copy { text-align: left; }
  .ehtym-footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ehtym-posts-grid { grid-template-columns: 1fr; }
  .ehtym-login-card { padding: 28px 20px; }
  .ehtym-hero-title { font-size: clamp(44px, 14vw, 80px); }
  .ehtym-welcome { display: none; }
  .ehtym-session-info { display: none; }
}

/* ========================================================
   FULL PAGE (sans thème WordPress)
   ======================================================== */
html, body { margin: 0; padding: 0; background: #000; }
body.ehtym-full-page { overflow-x: hidden; }

/* ── Hero dashboard ── */
.ehtym-dash-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  background: var(--em-black);
  padding-bottom: 80px;
}
.ehtym-dash-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px;
  position: relative; z-index: 10;
  border-bottom: 1px solid var(--em-border);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
}
.ehtym-dash-topbar-right {
  display: flex; align-items: center; gap: 12px;
}
.ehtym-dash-hero-content {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 60px 24px 0;
  position: relative; z-index: 5;
}

/* ── Marquee ── */
.ehtym-hero-marquee-wrap {
  position: absolute; bottom: 28px; left: 0; right: 0;
  overflow: hidden; z-index: 5;
}
.ehtym-hero-marquee {
  display: flex; gap: 48px; white-space: nowrap;
  animation: emMarquee 22s linear infinite;
}
.ehtym-hero-marquee span {
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(205,175,175,0.25); flex-shrink: 0;
}
.ehtym-dot { color: var(--em-rose) !important; opacity: 0.4; letter-spacing: 0 !important; }
@keyframes emMarquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Footer HTML ── */
.ehtym-full-footer {
  background: #050505;
  border-top: 1px solid var(--em-border);
  padding: 32px 48px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.ehtym-full-footer .ehtym-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 14px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--em-rose); flex: 1;
}
.ehtym-full-footer .ehtym-footer-copy {
  font-size: 12px; color: #ffffff; flex: 1; text-align: center;
}
.ehtym-full-footer .ehtym-footer-links {
  display: flex; gap: 20px; flex: 1; justify-content: flex-end;
}
.ehtym-full-footer .ehtym-footer-links a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s;
}
.ehtym-full-footer .ehtym-footer-links a:hover { color: var(--em-rose); }

/* Dots tutoriel (renommés pour éviter conflit) */
.ehtym-dot-nav {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(205,175,175,0.2); cursor: pointer;
  display: inline-block; transition: background 0.2s;
}
.ehtym-dot-nav.active { background: var(--em-rose); }

@media (max-width: 560px) {
  .ehtym-full-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .ehtym-full-footer .ehtym-footer-copy { text-align: left; }
  .ehtym-full-footer .ehtym-footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .ehtym-dash-topbar { padding: 14px 16px; }
}
