/* ══ CSS VARS ══ */
:root {
  --eod-gold: #D4BC7A;
  --eod-gold-d: #9E7E3F;
  --eod-gold-l: #E5D4A0;
  --eod-gold-4: #EFE2B8;
  --eod-gold-grad: linear-gradient(135deg, #C4A559 0%, #D4BC7A 40%, #E5D4A0 70%, #EFE2B8 100%);
  --eod-ok: #22c55e;
  --eod-red: #dc2626;
  --eod-t1: #1a1a1a;
  --eod-t2: #6B6660;
  --eod-t3: #2C2A26;
  --eod-bg-card: #fff;
  --eod-bd: rgba(0,0,0,0.06);
  --eod-sh: 0 4px 20px rgba(0,0,0,0.03);
  --eod-sh-hero: 0 8px 30px rgba(0,0,0,0.08);
}

/* ══ PAGE RESET ══ */
.eod-page { min-height: 100vh; background: #FFFFFF; font-family: 'Geist', system-ui, sans-serif; color: var(--eod-t1); }
.eod-page * { box-sizing: border-box; }
.eod-page button { cursor: pointer; border: none; background: none; font-family: inherit; }
.eod-page a { text-decoration: none; color: inherit; }
/* Tailwind preflight met svg{display:block} -> icones meta passaient au-dessus du texte. On les remet inline. */
.eod-page .eod-hero-meta svg,
.eod-page .eod-sidebar-row-value svg,
.eod-page .eod-related-meta svg,
.eod-page .ds-chip svg { display: inline-block; vertical-align: -2px; }

/* ══ BREADCRUMB ══ */
.eod-breadcrumb {
  max-width: 1240px; margin: 0 auto; padding: 20px 32px 0;
  font-size: 12px; color: var(--eod-t2);
}
.eod-breadcrumb-link {
  background: none; border: none; color: var(--eod-gold-d);
  cursor: pointer; font-weight: 600; font-family: inherit; font-size: 12px;
  text-decoration: none;
}
.eod-breadcrumb-link:hover { text-decoration: underline; }
.eod-breadcrumb-sep { margin: 0 8px; opacity: 0.5; }

/* ══ HERO ══ */
.eod-hero-wrap { max-width: 1240px; margin: 0 auto; padding: 16px 32px 0; }
.eod-hero {
  position: relative; height: 320px; border-radius: 16px;
  overflow: hidden; box-shadow: var(--eod-sh-hero);
}
.eod-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.eod-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 100%);
}
.eod-hero-badges {
  position: absolute; top: 18px; left: 18px;
  display: flex; gap: 8px; z-index: 2;
}
/* Hero badges now use ds-chip, ds-badge-red, ds-badge-gold from design system */
.eod-hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px; color: #fff; z-index: 2;
}
.eod-hero-estab {
  font-size: 13px; opacity: 0.9; font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.eod-hero-estab-verified { color: #7ED957; }
.eod-hero-title {
  font-family: 'Geist',system-ui,sans-serif;
  font-size: 34px; font-weight: 700; line-height: 1.15;
  margin: 0 0 10px; max-width: 800px; letter-spacing: -0.5px;
}
.eod-hero-meta {
  display: flex; gap: 18px; font-size: 13px; font-weight: 600;
}

/* ══ BODY GRID ══ */
.eod-body {
  max-width: 1240px; margin: 0 auto; padding: 28px 32px 60px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
.eod-left { display: flex; flex-direction: column; gap: 18px; }
.eod-right { display: flex; flex-direction: column; gap: 16px; }

/* ══ CARD ══ */
.eod-card {
  background: var(--eod-bg-card); border-radius: 14px; padding: 22px;
  border: 1px solid var(--eod-bd); box-shadow: var(--eod-sh);
}
.eod-card-title {
  font-family: 'Geist',system-ui,sans-serif;
  font-size: 18px; font-weight: 700; color: var(--eod-t1);
  margin-bottom: 14px; letter-spacing: -0.3px;
}
/* Format editorial homogeneise avec les annonces (01 — / titre) */
.eod-card-label { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--eod-gold-d); margin-bottom: 4px; }
.eod-card-title.editorial { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 16px; }

/* ══ DESCRIPTION ══ */
.eod-desc-text {
  font-size: 14px; color: var(--eod-t3); line-height: 1.75; margin-bottom: 16px;
}
.eod-desc-text:last-of-type { margin-bottom: 0; }
.eod-info-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 18px;
}
.eod-info-block {
  padding: 14px; background: #FAFAFA; border-radius: 10px;
}
.eod-info-block.highlight {
  background: linear-gradient(135deg, rgba(163,133,67,0.08), rgba(163,133,67,0.03));
  border: 1px solid rgba(163,133,67,0.2);
}
.eod-info-label {
  font-size: 10px; font-weight: 700; color: hsl(var(--brand-gold-main, 38 74% 44%));
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.eod-info-main { font-size: 14px; font-weight: 800; color: var(--eod-t1); }
.eod-info-main.highlight { font-size: 15px; }
.eod-info-sub { font-size: 11px; color: var(--eod-t2); margin-top: 2px; }

/* ══ DELIVERABLES ══ */
.eod-del-list { display: flex; flex-direction: column; gap: 8px; }
.eod-del-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: #FAFAFA; border-radius: 10px;
  font-size: 13.5px; line-height: 1.6; color: var(--eod-t3);
}
.eod-del-icon { font-size: 16px; flex-shrink: 0; }

/* ══ PROFILE SEARCHED ══ */
.eod-prof-list { display: flex; flex-direction: column; gap: 10px; }
.eod-prof-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--eod-t3);
}
.eod-prof-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--eod-gold-grad); color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.eod-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.eod-tag {
  padding: 5px 11px; background: #F8F4ED; border: 1px solid #E8D89B;
  border-radius: 100px; font-size: 11px; font-weight: 700; color: #A38543;
}

/* ══ RELATED ══ */
.eod-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.eod-related-card {
  text-align: left; background: #fff;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  padding: 0; overflow: hidden; cursor: pointer;
  font-family: inherit; transition: all 0.2s; display: block;
  text-decoration: none; color: inherit;
}
.eod-related-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.eod-related-img {
  width: 100%; height: 110px; object-fit: cover; display: block;
}
.eod-related-body { padding: 12px; }
.eod-related-title {
  font-size: 12px; font-weight: 700; color: var(--eod-t1);
  line-height: 1.35; margin-bottom: 6px;
}
.eod-related-meta { font-size: 11px; color: var(--eod-t2); }

/* ══ SIDEBAR ══ */
.eod-sidebar {
  background: #fff; border-radius: 14px; padding: 22px;
  border: 1px solid var(--eod-bd);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: sticky; top: 80px;
}
/* Pay label now uses ds-section-label from design system */
.eod-sidebar-pay-val {
  font-family: 'Geist',system-ui,sans-serif;
  font-size: 26px; font-weight: 700; color: var(--eod-t1);
  margin-bottom: 14px; letter-spacing: -0.5px;
}
.eod-sidebar-details {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--eod-bd);
  border-bottom: 1px solid var(--eod-bd);
  margin-bottom: 16px;
}
.eod-sidebar-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px;
}
.eod-sidebar-row-label { color: var(--eod-t2); font-weight: 600; }
.eod-sidebar-row-value { color: var(--eod-t1); font-weight: 700; text-align: right; }

/* CTA buttons */
.eod-cta-apply {
  width: 100%; margin-bottom: 10px; justify-content: center;
  border-radius: 9999px; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #422D05 0%, #7F6734 100%) !important;
  color: #fff !important; padding: 14px 24px;
  box-shadow: 0 2px 8px rgba(66,45,5,.25);
  transition: opacity .2s;
}
.eod-cta-apply:hover { opacity: .9; }
.eod-cta-apply.applied {
  background: var(--eod-ok) !important; color: #fff !important; cursor: default;
}
.eod-cta-save {
  width: 100%; justify-content: center;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  background: #1a1a1a !important; color: #fff !important;
  padding: 14px 24px;
  transition: opacity .2s;
}
.eod-cta-save:hover { opacity: .9; }
/* « Enregistrer l'opportunité » présent comme la maquette mais indisponible : grisé. */
.eod-cta-soon { opacity: .5; cursor: not-allowed; filter: grayscale(.35); }
.eod-cta-soon:hover { opacity: .5; }
.eod-cta-save .eod-brick-badge { background: rgba(255,255,255,.16); color: #E8D49A; }
.eod-sidebar-stat {
  margin-top: 14px; padding: 12px;
  background: hsl(var(--brand-gold-50, 42 68% 95%));
  border-radius: 10px; font-size: 11.5px;
  color: hsl(var(--brand-gold-main, 38 74% 44%));
  line-height: 1.5; text-align: center; font-weight: 600;
}

/* ══ ESTABLISHMENT CARD ══ */
.eod-estab-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.eod-estab-logo {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--eod-gold-grad); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist',system-ui,sans-serif;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.eod-estab-name {
  font-size: 13.5px; font-weight: 800; color: var(--eod-t1); margin-bottom: 2px;
}
.eod-estab-verified { color: var(--eod-ok); margin-left: 6px; }
.eod-estab-sub { font-size: 11px; color: var(--eod-t2); }
.eod-estab-footer { font-size: 12.5px; color: var(--eod-t3); line-height: 1.6; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .eod-body { grid-template-columns: 1fr; }
  .eod-hero { height: 240px; }
  .eod-hero-title { font-size: 26px; }
  .eod-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .eod-breadcrumb { padding: 16px 16px 0; }
  .eod-hero-wrap { padding: 12px 16px 0; }
  .eod-body { padding: 20px 16px 40px; }
  .eod-hero { height: 200px; }
  .eod-hero-bottom { padding: 18px; }
  .eod-hero-title { font-size: 22px; }
  .eod-hero-meta { flex-wrap: wrap; gap: 10px; }
}

/* Client feedback sidebar polish */
.eod-sidebar-details{background:#fff;border:1px solid rgba(0,0,0,.05);border-radius:12px;padding:12px;}
.eod-sidebar-stat,.eod-card{box-shadow:0 2px 14px rgba(0,0,0,.04);}

/* ── Real-data additions (Brick 1, R11.4) — respond state + future-brick ── */
/* Respond button "sent" confirmation (idempotent). */
.eod-cta-applied {
  width: 100%; margin-bottom: 10px; justify-content: center;
  border-radius: 9999px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  background: var(--eod-ok); color: #fff; padding: 14px 24px;
  box-shadow: 0 2px 8px rgba(34,197,94,.25); cursor: default;
}
.eod-respond-form { margin: 0; }
.eod-respond-msg {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 76px;
  margin-bottom: 10px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--eod-bd); font-family: inherit; font-size: 12.5px;
  color: var(--eod-t3); line-height: 1.5; background: #FAFAFA;
}
.eod-respond-msg:focus {
  outline: none; border-color: rgba(163,133,67,.4);
  box-shadow: 0 0 0 3px rgba(163,133,67,.08); background: #fff;
}
.eod-respond-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--eod-gold-d); margin-bottom: 6px; display: block;
}

/* ── Modale « Postuler » (R11.4) — formulaire de réponse en overlay ── */
.eod-dialog {
  border: none; border-radius: 16px; padding: 0; max-width: 480px; width: 90vw;
  position: fixed; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  margin: 0; box-shadow: 0 24px 80px rgba(0,0,0,.2); overflow: hidden;
}
.eod-dialog::backdrop { background: rgba(20,18,14,.5); backdrop-filter: blur(4px); }
.eod-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.eod-dialog-title { font-size: 15px; font-weight: 800; color: var(--eod-t1); }
.eod-dialog-close {
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--eod-t3); cursor: pointer; padding: 0 4px;
}
.eod-dialog-body { padding: 20px 22px; }
.eod-dialog-body .eod-respond-msg { margin-bottom: 0; min-height: 120px; }
.eod-dialog-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px; border-top: 1px solid rgba(0,0,0,.06);
}
.eod-btn-cancel {
  padding: 10px 18px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1.5px solid rgba(0,0,0,.1); color: var(--eod-t1);
  cursor: pointer; font-family: inherit;
}
.eod-dialog-submit { width: auto; margin: 0; }
/* Note sous le bouton de candidature désactivé (profil non validé / suspendu). */
.eod-respond-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--eod-t3); text-align: center; }

/* Future-brick callouts: AI match (Brique 3), contact/messaging (Brique 3/4). */
.eod-brick-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 11px; font-weight: 600; line-height: 1.5; text-align: center;
  color: #9a8a5e; background: rgba(184,151,90,.06);
  border: 1px dashed rgba(184,151,90,.28);
}
.eod-cta-disabled {
  width: 100%; justify-content: center; border-radius: 10px;
  font-size: 13px; font-weight: 700; padding: 14px 24px; margin-top: 4px;
  background: repeating-linear-gradient(45deg,#ededed,#ededed 5px,#f5f5f5 5px,#f5f5f5 10px);
  color: #9a9a9a; cursor: not-allowed; border: 1px solid #e4e4e4;
}
.eod-brick-badge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .4px;
  padding: 2px 7px; border-radius: 6px; margin-left: 6px;
  background: rgba(184,151,90,.12); color: #8C6D34;
}
.ds-badge-gold.brick3 {
  background: repeating-linear-gradient(45deg,#e3e3e3,#e3e3e3 4px,#efefef 4px,#efefef 8px) !important;
  color: #8f8f8f !important;
}
