/* Argent — dmoz.fr/argent/
   Assurances, budget, finances personnelles.
   Design aligné sur dmoz.fr/people/ (fond blanc, quiz natif), chemins /argent/.
   Créé : rubrique evergreen */

/* === Reset & Variables === */
:root {
  --c-accent:    #2f5aae;
  --c-link:      #0d6b42;
  --c-green-dk:  #1c670a;
  --c-text:      #272626;
  --c-muted:     #6b7280;
  --c-light-bg:  #f4f5f7;
  --c-border:    #e5e7eb;
  --font-body:   'Source Sans Pro', system-ui, -apple-system, sans-serif;
  --font-head:   'Playfair Display', Georgia, serif;
  --max-w:       740px;
  --radius:      8px;
}

/* Fonts hosted locally */
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: normal; font-display: swap; src: url('/argent/fonts/playfair-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-weight: 400; font-style: normal; font-display: swap; src: url('/argent/fonts/ssp-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-weight: 600; font-style: normal; font-display: swap; src: url('/argent/fonts/ssp-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-weight: 700; font-style: normal; font-display: swap; src: url('/argent/fonts/ssp-700-latin.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: #fff; color: var(--c-text); line-height: 1.7; font-size: 16px; }

/* === Liens article === */
a { color: var(--c-link); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--c-link); padding: 0 2px; transition: background-color .3s; }
a:hover { background-color: rgba(30, 156, 107, 0.1); }

/* === Header site === */
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); padding: 12px 20px; }
.site-header-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo { height: 50px; width: auto; }
.site-tagline { font-family: var(--font-body); font-size: 14px; color: var(--c-muted); flex: 1; }
.site-cta { font-size: 13px; color: var(--c-accent); font-weight: 600; border: 1px solid var(--c-accent); padding: 6px 14px; border-radius: 4px; white-space: nowrap; }
.site-cta:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* === Breadcrumb === */
.breadcrumb { max-width: var(--max-w); margin: 0 auto; font-size: 13px; color: var(--c-muted); padding: 14px 20px 0; }
.breadcrumb a { color: var(--c-muted); font-weight: 400; border: none; padding: 0; }
.breadcrumb a:hover { color: var(--c-text); background: none; }

/* === Main content === */
main { max-width: var(--max-w); margin: 0 auto; padding: 32px 20px 48px; }
article { max-width: 100%; }

h1 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; color: var(--c-text); margin-bottom: 14px; }
h2 { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--c-text); margin: 36px 0 14px; line-height: 1.25; }
h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--c-text); margin: 24px 0 10px; }
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-text); }
ul, ol { margin: 0 0 18px 22px; }
li { margin-bottom: 8px; }

/* Image hero — 1200×675 (16:9) */
.hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* Lead / intro */
.lead { font-size: 18px; line-height: 1.75; color: var(--c-text); margin-bottom: 28px; font-weight: 400; }

/* Encadré chiffre clé */
.key-fact { background: var(--c-light-bg); border-left: 4px solid var(--c-accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.key-fact strong { font-size: 20px; color: var(--c-accent); display: block; margin-bottom: 4px; }
.key-fact p { color: var(--c-text); font-size: 15px; margin: 0; }

/* Sources */
#sources { background: var(--c-light-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px 24px; margin: 32px 0; }
#sources h2 { font-size: 18px; margin-top: 0; margin-bottom: 12px; color: var(--c-text); }
#sources ol { padding-left: 20px; }
#sources li { font-size: 14px; color: var(--c-muted); margin-bottom: 8px; line-height: 1.5; }

/* === Quiz interactif « Testez-vous » — une question après l'autre, le visiteur clique === */
.quiz-argent { background: #eef3fb; border: 1px solid #c7d6ef; border-radius: var(--radius); padding: 24px; margin: 24px 0 32px; }
.quiz-argent h2 { font-family: var(--font-head); color: var(--c-accent); font-size: 24px; margin: 0 0 6px; }
.quiz-argent .quiz-lead { font-size: 15px; color: #3a4252; margin-bottom: 16px; }

/* Étapes : seule l'étape active est visible. Sans JS, tout reste affiché (contenu indexable). */
.quiz-step { display: none; background: #fff; border: 1px solid var(--c-border); border-radius: 6px; padding: 18px 18px 20px; }
.quiz-step.is-active { display: block; }
.quiz .quiz-step + .quiz-step { margin-top: 0; }
/* repli no-JS : si le script ne tourne pas, on montre tout */
.no-js .quiz-step { display: block; margin-bottom: 10px; }

.quiz-progress { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); font-weight: 700; margin-bottom: 8px; }
.quiz-q { font-size: 17px; font-weight: 700; color: var(--c-text); margin-bottom: 14px; }
.quiz-choices { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.quiz-choice { flex: 1 1 120px; background: #fff; border: 2px solid var(--c-border); border-radius: 6px; padding: 12px 16px; font: inherit; font-weight: 700; color: var(--c-text); cursor: pointer; transition: border-color .2s, background-color .2s; }
.quiz-choice:hover:not(:disabled) { border-color: var(--c-accent); background: #f4f7fd; }
.quiz-choice:disabled { cursor: default; opacity: 1; }
.quiz-choice.correct { border-color: #0d6b42; background: #e7f5ee; color: #0d6b42; }
.quiz-choice.wrong { border-color: #c0392b; background: #fdecea; color: #c0392b; }
.quiz-answer { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-border); }
.quiz-answer p { font-size: 14.5px; color: #3a4252; margin-bottom: 14px; }
.quiz-next { background: var(--c-accent); color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.quiz-next:hover { background: #244a91; }
.quiz-result { text-align: center; }
.quiz-score { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--c-accent); margin-bottom: 10px; }
.quiz-result .verdict { font-size: 15px; color: #3a4252; font-weight: 600; margin-bottom: 16px; }

/* CTA bouton (ancre exacte « devis assurance santé ») */
.cta-devis { text-align: center; margin: 4px 0 2px; }
.cta-devis a { display: inline-block; background: var(--c-accent); color: #fff; font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 6px; border: none; }
.cta-devis a:hover { background: #244a91; color: #fff; }

/* === À lire aussi (maillage interne) === */
.read-also { margin: 32px 0; padding: 18px 22px; background: var(--c-light-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
.read-also h2 { font-size: 18px; margin: 0 0 8px; }
.read-also p { font-size: 15px; color: #4b5563; margin: 0; }

/* === FAQ === */
.faq-block { margin: 36px 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.faq-block h2 { padding: 18px 20px 12px; border-bottom: 1px solid var(--c-border); font-size: 20px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--c-border); padding: 18px 20px; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 17px; color: var(--c-text); margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: #4b5563; margin: 0; }

/* === AdSense bloc unique en bas === */
.ad-slot { margin: 36px 0 8px; text-align: center; min-height: 90px; }
.ad-slot small { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 6px; letter-spacing: .04em; }

/* === Footer === */
footer { background: var(--c-green-dk); color: #fff; text-align: center; padding: 24px 20px; font-size: 13px; }
footer a { color: rgba(255,255,255,.85); border: none; font-weight: 400; padding: 0; }
footer a:hover { color: #fff; background: none; text-decoration: underline; }
footer .footer-trademark { font-weight: 700; margin: 10px 0 6px; max-width: 700px; margin-left: auto; margin-right: auto; }
footer .footer-disclaimer { color: rgba(255,255,255,.7); font-size: 12px; max-width: 700px; margin: 0 auto; }
footer .footer-nav { margin-bottom: 8px; }

/* === Index page rubrique (grille de cartes image + titre, modèle /people/) === */
h1.page-title { font-size: 32px; margin-bottom: 8px; }
p.intro { color: var(--c-muted); font-size: 16px; margin-bottom: 32px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 24px 0 48px; }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.card a { text-decoration: none; color: inherit; display: block; border: none; padding: 0; }
.card a:hover { background: none; }
.card-image { position: relative; width: 100%; aspect-ratio: 16/9; background: #f1f5f9; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px 14px; }
.card-title { font-family: var(--font-head); font-size: 16px; line-height: 1.3; color: var(--c-text); margin: 0; }
@media (max-width: 520px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-title { font-size: 14px; }
  .card-body { padding: 10px 12px; }
}

/* === Responsive === */
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .quiz-argent { padding: 18px 16px; }
  .faq-item { padding: 14px 16px; }
  .site-tagline { display: none; }
}
