/* Amber Atlas — Conseils, FAQ and CMS public styles */
.footer-inner {
  align-items: center;
  flex-wrap: wrap;
}
.footer-copy { color: rgba(255,255,255,.62); }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .9rem; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(227,167,68,.52);
  border-radius: 10px;
  color: #f4c879;
  background: rgba(227,167,68,.06);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.footer-login:hover { color: var(--aa-ink); background: linear-gradient(135deg,#f7e7c6,#dba24b); transform: translateY(-1px); }

.content-hub-page { background: var(--aa-bg); }
.content-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 9vw, 126px) 0 clamp(66px, 8vw, 104px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(227,167,68,.26), transparent 28%),
    linear-gradient(135deg, #0d1726, #18263a 62%, #273850);
}
.content-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.08) 49% 50%, transparent 51% 100%);
  background-size: 42px 42px;
  pointer-events: none;
}
.content-hero .kicker { color: #efbd6b; }
.content-hero h1 { max-width: 940px; color: #fff; font-size: clamp(2.5rem, 5.4vw, 5.15rem); }
.content-hero p { max-width: 780px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.8; }
.content-main { padding: clamp(58px, 7vw, 100px) 0; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--aa-line);
  border-radius: var(--aa-radius);
  background: var(--aa-surface);
  box-shadow: var(--aa-shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--aa-shadow-md); border-color: rgba(199,137,45,.32); }
.article-card-media { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg,#e9edf2,#f8fafc); }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card-media img { transform: scale(1.035); }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--aa-muted); font-size: .8rem; font-weight: 650; }
.article-card h2 { margin: 14px 0 12px; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; }
.article-card p { margin: 0 0 22px; color: var(--aa-muted); line-height: 1.7; }
.article-card-link { margin-top: auto; color: var(--aa-amber-dark); font-weight: 800; }
.empty-state { padding: clamp(34px,6vw,64px); text-align: center; border: 1px dashed var(--aa-line-strong); border-radius: var(--aa-radius-lg); background: rgba(255,255,255,.7); }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { max-width: 650px; margin: 0 auto; color: var(--aa-muted); line-height: 1.75; }

.article-shell { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
.article-header { margin-bottom: 34px; }
.article-header h1 { color: var(--aa-ink); font-size: clamp(2.3rem,5vw,4.6rem); }
.article-header .article-meta { margin-top: 18px; }
.article-lead { margin-top: 20px; color: var(--aa-muted); font-size: 1.12rem; line-height: 1.85; }
.article-cover { width: 100%; max-height: 560px; margin: 34px 0; object-fit: cover; border-radius: var(--aa-radius-lg); box-shadow: var(--aa-shadow-md); }
.article-content { padding: clamp(28px,5vw,58px); border: 1px solid var(--aa-line); border-radius: var(--aa-radius-lg); background: #fff; box-shadow: var(--aa-shadow-sm); }
.article-content p, .article-content li { color: var(--aa-text); font-size: 1.04rem; line-height: 1.9; }
.article-content h2 { margin: 2.2em 0 .7em; font-size: clamp(1.65rem,3vw,2.45rem); }
.article-content h3 { margin: 1.9em 0 .6em; font-size: clamp(1.3rem,2.2vw,1.75rem); }
.article-content h2:first-child, .article-content h3:first-child { margin-top: 0; }
.article-content ul, .article-content ol { padding-left: 1.35rem; }
.article-content blockquote { margin: 1.8rem 0; padding: 20px 24px; border-left: 4px solid var(--aa-amber); border-radius: 0 14px 14px 0; background: var(--aa-amber-soft); color: var(--aa-ink); }
.article-content a { color: var(--aa-amber-dark); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs { margin-bottom: 24px; color: var(--aa-muted); font-size: .88rem; }
.breadcrumbs a { color: var(--aa-amber-dark); }
.article-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.faq-list { display: grid; gap: 15px; width: min(980px,100%); margin-inline: auto; }
.faq-item { overflow: hidden; border: 1px solid var(--aa-line); border-radius: 16px; background: #fff; box-shadow: var(--aa-shadow-sm); }
.faq-item summary { position: relative; padding: 22px 60px 22px 24px; cursor: pointer; list-style: none; color: var(--aa-ink); font-family: var(--aa-font-display); font-weight: 760; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--aa-amber-dark); font-size: 1.7rem; font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--aa-muted); line-height: 1.82; }
.faq-answer p:first-child { margin-top: 0; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-image { width: min(540px,100%); margin-top: 18px; border-radius: 14px; }

.content-cta { margin-top: clamp(44px,6vw,78px); }
.not-found { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }

@media (max-width: 980px) { .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
  .content-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; }
  .footer-links { justify-content: center; }
  .article-actions .btn { width: 100%; }
  .faq-item summary { padding-right: 54px; }
}

/* Social sharing — article pages */
.article-share {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(199, 137, 45, .26);
  border-radius: var(--aa-radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(227, 167, 68, .22), transparent 28%),
    linear-gradient(135deg, #0d1726 0%, #17263a 66%, #21354d 100%);
  box-shadow: var(--aa-shadow-md);
}

.article-share::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, .025),
    0 0 0 64px rgba(255, 255, 255, .018);
  pointer-events: none;
}

.article-share-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.article-share .kicker {
  margin-bottom: 7px;
  color: #efbd6b;
}

.article-share h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
}

.article-share p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
}

.article-share-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.share-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  font: inherit;
  font-size: .9rem;
  font-weight: 760;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease;
}

.share-button:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 189, 107, .58);
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.share-button:focus-visible {
  outline: 3px solid rgba(239, 189, 107, .42);
  outline-offset: 3px;
}

.share-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: currentColor;
}

.share-facebook {
  border-color: rgba(91, 136, 220, .5);
  background: rgba(45, 89, 170, .28);
}

.share-instagram {
  border-color: rgba(226, 96, 145, .43);
  background: linear-gradient(135deg, rgba(125, 54, 175, .29), rgba(211, 66, 112, .23));
}

.share-tiktok {
  border-color: rgba(108, 229, 224, .35);
  background: rgba(2, 12, 22, .44);
}

.share-native {
  color: #111b2a;
  border-color: transparent;
  background: linear-gradient(135deg, #f7e7c6, #dba24b);
}

.share-native:hover {
  color: #111b2a;
  border-color: transparent;
  background: linear-gradient(135deg, #fff0d2, #e8b65f);
}

.share-copy {
  border-color: rgba(227, 167, 68, .42);
  color: #f4c879;
}

.share-toast {
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: #f7d99e;
  font-size: .86rem;
  font-weight: 650;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity .2s ease,
    transform .2s ease,
    max-height .2s ease,
    margin-top .2s ease;
}

.share-toast.is-visible {
  max-height: 80px;
  margin-top: 15px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 680px) {
  .article-share {
    padding: 24px 19px;
  }

  .article-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-button {
    width: 100%;
    padding-inline: 10px;
  }

  .share-native {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .article-share-buttons {
    grid-template-columns: 1fr;
  }

  .share-native {
    grid-column: auto;
  }
}
