/* ============================================================
   L'Echo Patrimoine â Main Stylesheet
   Design: Libre Baskerville (serif) + Work Sans (sans-serif)
   Palette: Navy #1b2a4a | Red #c0392b | Grays
   ============================================================ */

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: #fff;
  color: #1d1d1f;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1a5276;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Top Bar (Market Ticker) --- */
.topbar {
  background: #1b2a4a;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticker {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

.tick {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.tick b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.tick .up { color: #34a853; }
.tick .dn { color: #ea4335; }

.topbar-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Site Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1b2a4a;
  letter-spacing: -0.5px;
}

.logo span {
  color: #c0392b;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #1b2a4a;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 12px;
  color: #999;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #c0392b;
}

.breadcrumb .sep {
  margin: 0 6px;
  color: #ccc;
}

/* --- Content Layout --- */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
}

article {
  max-width: 700px;
}

/* --- Category Label --- */
.category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* --- Article Title --- */
article h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: #1d1d1f;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

/* --- Lead / Subtitle --- */
.lead {
  font-size: 18px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 400;
}

/* --- Meta Bar --- */
.meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1b2a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.author-role {
  font-size: 11px;
  color: #999;
}

.meta-sep {
  width: 1px;
  height: 20px;
  background: #e0e0e0;
}

.meta-info {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 14px;
}

/* --- Article Hero Visual --- */
.article-visual {
  width: 100%;
  background: linear-gradient(135deg, #1b2a4a 0%, #243656 50%, #2c3e6a 100%);
  border-radius: 4px;
  margin: 0 0 32px;
  position: relative;
  overflow: hidden;
  padding: 32px 20px 28px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-col:last-child {
  border: none;
}

.visual-col svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.visual-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 3px;
}

.visual-perf {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.img-credit {
  text-align: right;
  margin-top: 14px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
}

/* --- Article Body Text --- */
article p {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 22px;
}

article p strong {
  font-weight: 700;
  color: #1d1d1f;
}

.first-p::first-letter {
  float: left;
  font-size: 58px;
  line-height: 0.82;
  padding: 4px 10px 0 0;
  font-weight: 700;
  color: #1b2a4a;
  font-family: 'Libre Baskerville', serif;
}

article h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 38px 0 16px;
  line-height: 1.3;
}

article h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1b2a4a;
  margin: 28px 0 10px;
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid #1b2a4a;
  padding: 20px 24px;
  margin: 28px 0;
  background: #f7f8fa;
}

blockquote p {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  font-style: italic;
  color: #333;
  line-height: 1.7;
  margin-bottom: 6px;
}

blockquote cite {
  font-size: 13px;
  color: #777;
  font-style: normal;
  font-family: 'Work Sans', sans-serif;
}

/* --- Data Panel --- */
.data-panel {
  background: #f7f8fa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 24px;
  margin: 28px 0;
}

.data-panel h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.data-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-cell {
  text-align: center;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 3px;
}

.data-cell .val {
  font-size: 24px;
  font-weight: 700;
  color: #1b2a4a;
  letter-spacing: -0.5px;
}

.data-cell .val.gold   { color: #96720a; }
.data-cell .val.green  { color: #1a7a3a; }
.data-cell .val.orange { color: #b45309; }
.data-cell .val.red    { color: #c0392b; }

.data-cell .lbl {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* --- Comparison Table --- */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.comp-table th {
  background: #f7f8fa;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #e5e5e5;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ebebeb;
  color: #333;
}

.comp-table tr:last-child td {
  border: none;
}

.comp-table .up {
  color: #1a7a3a;
  font-weight: 600;
}

.comp-table .asset {
  font-weight: 600;
  color: #1d1d1f;
}

/* --- Expert Panel --- */
.expert-panel {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f7f8fa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 22px;
  margin: 28px 0;
}

.expert-pic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1b2a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.expert-panel h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 1px;
}

.expert-panel .exp-role {
  font-size: 11px;
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 8px;
}

.expert-panel p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  font-family: 'Work Sans', sans-serif;
  margin: 0;
}

/* --- Pillar Cards --- */
.pillars-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.pillar-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 22px 16px;
  text-align: center;
  background: #fff;
}

.pillar-card .pc-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-card .pc-icon.gold   { background: #fef3c7; }
.pillar-card .pc-icon.crypto { background: #fff7ed; }
.pillar-card .pc-icon.bourse { background: #ecfdf5; }

.pillar-card .pc-icon svg {
  width: 20px;
  height: 20px;
}

.pillar-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1d1d1f;
}

.pillar-card .pc-perf {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pillar-card .pc-perf.gold   { color: #96720a; }
.pillar-card .pc-perf.orange { color: #b45309; }
.pillar-card .pc-perf.green  { color: #1a7a3a; }

.pillar-card .pc-year {
  font-size: 11px;
  color: #999;
}

.pillar-card .pc-desc {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
  line-height: 1.5;
}

/* --- Text CTA Block --- */
.text-cta {
  text-align: center;
  padding: 24px;
  margin: 28px 0;
  border: 2px solid #1b2a4a;
  border-radius: 4px;
}

.text-cta h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.text-cta p {
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
  font-family: 'Work Sans', sans-serif;
}

.text-cta .btn {
  display: inline-block;
  padding: 11px 28px;
  background: #1b2a4a;
  color: #fff;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.text-cta .btn:hover {
  background: #0f1d36;
  text-decoration: none;
}

/* --- Registration Section --- */
.reg-section {
  background: #1b2a4a;
  border-radius: 4px;
  padding: 40px 36px;
  margin: 36px 0;
  position: relative;
}

.reg-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.reg-section h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.reg-section > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  line-height: 1.5;
  font-family: 'Work Sans', sans-serif;
}

.reg-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reg-form .span2 {
  grid-column: 1 / -1;
}

.reg-form input,
.reg-form select {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  font-family: 'Work Sans', sans-serif;
  transition: border-color 0.2s;
}

.reg-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.reg-form select {
  color: rgba(255, 255, 255, 0.35);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.reg-form select option {
  background: #1b2a4a;
  color: #fff;
}

.reg-form input:focus,
.reg-form select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.reg-form button {
  grid-column: 1 / -1;
  padding: 14px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.reg-form button:hover {
  background: #a93226;
}

.reg-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}

.reg-meta span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.reg-privacy {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  margin-top: 10px;
  line-height: 1.5;
}

.reg-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.reg-success.show {
  display: block;
}

.reg-success .check-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a7a3a;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-success .check-icon svg {
  width: 28px;
  height: 28px;
}

.reg-success h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reg-success p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* --- Tags --- */
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.tag-item {
  padding: 4px 12px;
  background: #f7f8fa;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

/* --- Share Bar --- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 28px;
}

.share-bar span {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-icon {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  transition: background 0.2s;
}

.share-icon:hover {
  background: #f7f8fa;
}

.share-icon svg {
  width: 14px;
  height: 14px;
  fill: #777;
}

/* --- Sidebar --- */
.sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.side-card {
  background: #f7f8fa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 20px;
}

.side-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: #1d1d1f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

/* --- Side CTA Box --- */
.side-cta-box {
  background: #1b2a4a;
  border-radius: 4px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.side-cta-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.side-cta-box p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.side-cta-box input {
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  font-family: 'Work Sans', sans-serif;
  margin-bottom: 8px;
}

.side-cta-box input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.side-cta-box input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.side-cta-box button {
  width: 100%;
  padding: 11px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  transition: background 0.2s;
}

.side-cta-box button:hover {
  background: #a93226;
}

.side-cta-box .priv {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 8px;
}

.side-success {
  display: none;
  padding: 16px 0;
  text-align: center;
}

.side-success.show {
  display: block;
}

.side-success p {
  color: #34a853;
  font-size: 13px;
  font-weight: 600;
}

/* --- Trending Items --- */
.trend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.trend-item:last-child {
  border: none;
}

.trend-num {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #c0392b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.trend-text h5 {
  font-size: 13px;
  color: #1d1d1f;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.trend-text h5:hover {
  color: #c0392b;
}

.trend-text span {
  font-size: 10px;
  color: #999;
}

/* --- Live Prices --- */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.price-row:last-child {
  border: none;
}

.price-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.price-val {
  text-align: right;
}

.price-val .pv {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.price-val .pc {
  font-size: 11px;
  font-weight: 600;
}

.price-val .pc.up { color: #1a7a3a; }
.price-val .pc.dn { color: #c0392b; }

/* --- Footer --- */
footer {
  background: #1b2a4a;
  padding: 36px 24px;
  margin-top: 48px;
  text-align: center;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  margin: 0 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

footer .copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.legal-box {
  max-width: 700px;
  margin: 14px auto 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1.6;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

/* --- Sparkline Charts --- */
.spark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.spark-row:last-child {
  border: none;
}

.spark-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  min-width: 70px;
}

.spark-canvas {
  flex: 1;
  height: 32px;
  margin: 0 10px;
}

.spark-change {
  font-size: 11px;
  font-weight: 600;
  min-width: 55px;
  text-align: right;
}

.spark-change.up { color: #1a7a3a; }
.spark-change.dn { color: #c0392b; }

/* --- Phone validation --- */
.reg-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(192, 57, 43, 0.5);
}

.reg-form input:valid:not(:placeholder-shown) {
  border-color: rgba(26, 122, 58, 0.4);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .content-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .visual-grid {
    grid-template-columns: 1fr;
  }
  .pillars-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav { display: none; }
  .logo { font-size: 22px; }
  .data-row { grid-template-columns: 1fr 1fr; }
  .expert-panel { flex-direction: column; }
  .reg-form { grid-template-columns: 1fr; }
  .reg-form .span2 { grid-column: 1; }
  .reg-section { padding: 28px 20px; }
  article h1 { font-size: 26px; }
}
