/* Evorit — feuille de style partagée des pages /article/ (guides SEO statiques). */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; background: #0b0b0c; color: #e9e6dd;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 22px 100px; }

/* ---------- Header / topbar ---------- */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0 4px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 17px; }
.brand .mono, .foot-brand .mono { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #e9b949; font-weight: 800; font-size: 15px; flex-shrink: 0; overflow: hidden; }

/* ---------- Contenu multilingue (data-lang) ---------- */
[data-lang] { display: none; }
[data-lang].on { display: block; }
span[data-lang].on, a[data-lang].on { display: inline; }
.lang-switch button[data-lang] { display: inline-flex; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: 4px; }
.site-nav a { color: #b9b6ad; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: inline-flex; gap: 3px; background: #141416; border: 1px solid #232326; border-radius: 8px; padding: 3px; position: relative; }
.lang-switch button {
  appearance: none; background: transparent; border: none; color: #8c8c88; font: inherit; font-size: 12px; font-weight: 700;
  padding: 5px 8px; border-radius: 5px; cursor: pointer; letter-spacing: .02em;
}
.lang-switch button:hover { color: #d3d0c7; }
.lang-switch button.on { background: #e9b949; color: #1a1400; }
.lang-menu { display: contents; }
.lang-trigger { display: none; }
@media (max-width: 640px) {
  .lang-switch { background: transparent; border: none; padding: 0; }
  .lang-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    background: #141416; border: 1px solid #232326; border-radius: 8px;
    color: #e9e6dd; font: inherit; font-size: 12px; font-weight: 700;
    padding: 7px 10px; cursor: pointer; letter-spacing: .02em; appearance: none;
  }
  .lang-trigger::after {
    content: ""; width: 0; height: 0; margin-left: 1px;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #8c8c88;
  }
  .lang-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
    flex-direction: column; gap: 2px; min-width: 68px; background: #141416; border: 1px solid #232326;
    border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  }
  .lang-switch.open .lang-menu { display: flex; }
  .lang-menu button { text-align: left; }
}
.login-btn {
  color: #e9e6dd; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 1px solid #333335; padding: 8px 14px; border-radius: 9px;
}
.login-btn:hover { border-color: rgba(233,185,73,.5); color: #f2ca63; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  background: #e9b949; color: #1a1400; font-weight: 700; font-size: 14px; border: 1px solid #333335;
  cursor: pointer; appearance: none; padding: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Avatar wrapper + dropdown */
.avatar-wrap { position: relative; }
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #1a1a1c; border: 1px solid #2e2e32; border-radius: 12px;
  padding: 5px; min-width: 174px; z-index: 99;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.avatar-wrap.open .user-dropdown { display: block; }
.user-dropdown a, .user-dropdown .ddout {
  display: block; width: 100%; text-align: left; padding: 9px 13px; border-radius: 8px;
  color: #d3d0c7; text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: none; cursor: pointer; font-family: inherit; box-sizing: border-box;
}
.user-dropdown a:hover, .user-dropdown .ddout:hover { background: #232326; color: #fff; }
.user-dropdown .ddout { color: #c47f7f; }
.user-dropdown .ddout:hover { color: #e09090; background: rgba(196,127,127,.1); }
.crumb { color: #77767a; font-size: 13px; margin: 22px 0 0; }
.crumb a { color: #a9a7a0; text-decoration: none; }
.crumb a:hover { color: #e9b949; }

/* ---------- Hero ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 20px 0 14px;
  background: rgba(233,185,73,.12); border: 1px solid rgba(233,185,73,.3); color: #f2ca63;
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
h1 { font-size: 32px; line-height: 1.22; margin: 0 0 14px; color: #fff; letter-spacing: -.01em; }
.lead { font-size: 17.5px; color: #d3d0c7; margin: 0 0 18px; }
.lead b { color: #fff; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #b7d9c0;
  background: rgba(127,206,155,.1); border: 1px solid rgba(127,206,155,.28); padding: 6px 11px; border-radius: 999px;
}
.badge svg { width: 13px; height: 13px; color: #7fce9b; flex-shrink: 0; }

/* ---------- Alerte compte à rebours ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(233,185,73,.14), rgba(233,185,73,.05));
  border: 1px solid rgba(233,185,73,.35); border-radius: 14px; padding: 16px 18px; margin: 0 0 24px;
}
.alert svg { width: 20px; height: 20px; color: #e9b949; flex-shrink: 0; margin-top: 1px; }
.alert p { margin: 0; font-size: 15px; color: #f0e4c4; }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 8px; background: #e9b949; color: #1a1400; font-weight: 700;
  text-decoration: none; padding: 14px 24px; border-radius: 12px; font-size: 15.5px;
  box-shadow: 0 8px 24px -8px rgba(233,185,73,.5);
}
.cta svg { width: 17px; height: 17px; }
.cta.ghost { background: transparent; color: #e9b949; border: 1px solid rgba(233,185,73,.45); box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.cta-banner {
  text-align: center; margin: 40px 0; padding: 30px 24px; border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(233,185,73,.16), transparent 70%), #141416;
  border: 1px solid #232326;
}
.cta-banner h3 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.cta-banner p { margin: 0 0 18px; color: #b9b6ad; font-size: 14.5px; }

/* ---------- Sections ---------- */
h2 { font-size: 21px; margin: 42px 0 6px; color: #fff; letter-spacing: -.01em; }
h2 .sub { display: block; font-size: 14px; font-weight: 500; color: #77767a; margin-top: 3px; }
p, li { font-size: 15.5px; color: #c8c5bc; }
a { color: #f2ca63; }
ul.plain { padding-left: 20px; }

/* ---------- Grille de features (cartes) ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { background: #141416; border: 1px solid #232326; border-radius: 14px; padding: 16px 17px; }
.feat-card .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.06); color: #a9a7a0; display: grid; place-items: center; margin-bottom: 10px; }
.feat-card .ic svg { width: 18px; height: 18px; }
.feat-card h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.feat-card p { margin: 0; font-size: 13.8px; color: #a9a7a0; }

/* ---------- Tableau comparatif ---------- */
.cmp-wrap { border: 1px solid #232326; border-radius: 14px; overflow: hidden; margin: 18px 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.3px; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #1c1c1f; }
table.cmp thead th { background: #141416; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover td { background: #131315; }
table.cmp td:first-child { color: #d3d0c7; font-weight: 500; }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes { color: #7fce9b; } .no { color: #c47f7f; }
.yes svg, .no svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- FAQ (accordéon natif <details>) ---------- */
.faq { margin: 16px 0 8px; }
.faq details {
  background: #141416; border: 1px solid #232326; border-radius: 12px; padding: 4px 16px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 13px 0; font-weight: 600; color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 18px; height: 18px; color: #77767a; flex-shrink: 0; transition: transform .18s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); color: #e9b949; }
.faq details p { margin: 0 0 14px; color: #b9b6ad; font-size: 14.5px; }

/* ---------- Cartes de guides liés ---------- */
.related { display: grid; gap: 10px; margin: 16px 0 6px; }
.rel-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: #141416; border: 1px solid #232326; border-radius: 14px; padding: 16px 18px;
  transition: border-color .15s ease;
}
.rel-card:hover { border-color: rgba(233,185,73,.5); }
.rel-card .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); color: #a9a7a0; display: grid; place-items: center; flex-shrink: 0; }
.rel-card .ic svg { width: 19px; height: 19px; }
.rel-card h3 { margin: 0 0 2px; font-size: 15.5px; color: #fff; }
.rel-card p { margin: 0; font-size: 13.6px; color: #a9a7a0; }
.rel-card .go { margin-left: auto; color: #77767a; width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Footer ---------- */
footer.site { margin-top: 48px; padding-top: 28px; border-top: 1px solid #1c1c1f; color: #77767a; font-size: 13px; }
footer.site a { color: #a9a7a0; text-decoration: none; }
footer.site a:hover { color: #e9b949; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; margin-bottom: 26px; }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.foot-col h4 { margin: 0 0 10px; color: #d3d0c7; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col p { margin: 0 0 8px; color: #8c8c88; font-size: 13.5px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.foot-social { display: flex; gap: 8px; margin-top: 4px; }
.social-ic {
  width: 34px; height: 34px; border-radius: 9px; background: #141416; border: 1px solid #232326;
  display: grid; place-items: center; color: #a9a7a0;
}
.social-ic:hover { color: #e9b949; border-color: rgba(233,185,73,.4); }
.social-ic svg { width: 16px; height: 16px; }
.foot-bottom { padding-top: 18px; border-top: 1px solid #1c1c1f; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; }
