/* /css/fiches.css */
/* Spécifique à /societe/rechauffement-climatique.php */

/* =========================
   Wrapper / base
========================= */

.page-fiche main{
  padding:22px 0 34px;
}

.page-fiche .wrapper{
  max-width:1160px;
  margin:0 auto;
  padding:0 18px;
}

/* =========================
   HERO
========================= */

.hero-section{
  background:#ffffff;
  border-radius:26px;
  padding:18px 22px;
  margin:24px 0 18px;
  box-shadow:0 22px 50px rgba(15,23,42,.10);
  border:1px solid rgba(15,23,42,.04);
}

.hero-topline{margin-bottom:10px;}

.hero-breadcrumb{
  font-size:.83rem;
  color:var(--muted-2);
}
.hero-breadcrumb a{
  color:var(--muted-2);
  text-decoration:none;
}
.hero-breadcrumb a:hover{text-decoration:underline;}

/* IMPORTANT : ta page utilise hero-layout-row (pas hero-layout) */
.hero-layout-row{
  display:grid;
  grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
@media (max-width:900px){
  .hero-layout-row{grid-template-columns:1fr;}
}

.hero-main h1{
  margin:0 0 6px;
  font-size:clamp(1.9rem, 3vw, 2.55rem);
  color:var(--accent-strong);
  letter-spacing:-.02em;
}

.hero-subtitle{
  margin:0 0 12px;
  color:var(--muted);
  max-width:760px;
  font-size:.98rem;
  line-height:1.55;
}

.hero-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.hero-tagline-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#991b1b;
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:var(--muted);
  font-size:.9rem;
}

/* =========================
   Sommaire (à droite)
========================= */

/* IMPORTANT : ta page utilise hero-toc-card + hero-toc-list */
.hero-toc-card{
  background:#ffffff;
  border-radius:18px;
  padding:14px 16px;
  border:1px solid rgba(229,231,235,.95);
  box-shadow:0 14px 32px rgba(15,23,42,.10);
}

.hero-toc-card h2{
  margin:0 0 8px;
  font-size:.92rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  border:none;
  padding:0;
}

.hero-toc-list{
  list-style:none;
  padding:0;
  margin:0;
  font-size:.92rem;
}
.hero-toc-list li{
  margin:6px 0;
}
.hero-toc-list a{
  color:#111827;
  text-decoration:none;
  border-bottom:1px dashed #e5e7eb;
  padding-bottom:2px;
}
.hero-toc-list a:hover{
  border-bottom-style:solid;
}

/* =========================
   Cartes génériques (dans la page)
========================= */

.card{
  background:#ffffff;
  border-radius:18px;
  padding:16px 18px;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 14px 32px rgba(15,23,42,.08);
  margin:0 0 18px;
}

.card h2{
  margin:0 0 10px;
}

.tagline{
  font-weight:500;
  font-size:.98rem;
  color:var(--muted);
  margin:0;
  line-height:1.6;
}

.highlight{
  margin-top:12px;
  background:var(--accent-soft);
  border-left:4px solid var(--accent);
  padding:10px 14px;
  border-radius:12px;
  font-size:.95rem;
  color:#7f1d1d;
  line-height:1.6;
}

/* =========================
   Image / visuel
========================= */

.topic-visual{margin:0 0 18px;}

.topic-image{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  border:1px solid rgba(15,23,42,.06);
}

.topic-image img{
  display:block;
  width:100%;
  height:auto;
}

.topic-image figcaption{
  padding:8px 14px 10px;
  background:rgba(15,23,42,.92);
  color:#e5e7eb;
  font-size:.82rem;
  line-height:1.45;
}
.topic-image figcaption span{
  display:block;
  opacity:.75;
  margin-top:4px;
}

/* =========================
   Layout principal + sidebar
========================= */

/* IMPORTANT : ta page utilise .grid (pas .page-grid) */
.grid{
  display:grid;
  grid-template-columns:minmax(0,2.2fr) minmax(0,1.2fr);
  gap:24px;
  align-items:start;
}
@media (max-width:980px){
  .grid{grid-template-columns:1fr;}
}

/* =========================
   Listes / contenu
========================= */

.en-bref-list{
  list-style:none;
  margin:0;
  padding:0;
}
.en-bref-list li{
  position:relative;
  padding-left:18px;
  margin:8px 0;
  font-size:.96rem;
  line-height:1.55;
}
.en-bref-list li::before{
  content:"●";
  position:absolute;
  left:0;
  top:.2em;
  font-size:.65rem;
  color:var(--accent);
}

/* Timeline */
.timeline-list{
  list-style:none;
  margin:0;
  padding:0;
}
.timeline-list li{
  margin:10px 0;
  line-height:1.55;
}
.timeline-year{
  display:inline-block;
  min-width:110px;
  font-weight:900;
  color:var(--accent-strong);
}

/* Notes */
.note{
  font-size:.86rem;
  color:var(--muted);
  margin:10px 0 0;
  line-height:1.55;
}

/* =========================
   Table
========================= */

table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  font-size:.95rem;
}

th,td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  line-height:1.5;
}

th{
  background:#f9fafb;
  font-weight:800;
}

tbody tr:nth-child(even) td{
  background:#fcfcfd;
}

/* =========================
   Sidebar
========================= */

.stats-list{
  list-style:none;
  margin:0;
  padding:0;
}
.stats-list li{
  margin:0 0 12px;
  padding:10px 0;
  border-top:1px solid var(--border);
}
.stats-list li:first-child{border-top:none;}

.stat-number{
  font-weight:900;
  font-size:1.15rem;
  color:var(--accent-strong);
}
.stat-label{
  font-size:.93rem;
  color:#111827;
  line-height:1.5;
}
.stat-source{
  font-size:.8rem;
  color:var(--muted);
  margin-top:4px;
}

.quote-list{
  list-style:none;
  margin:0;
  padding:0;
}
.quote-list li{
  margin:0 0 12px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.quote-list li:first-child{
  padding-top:0;
  border-top:none;
}

blockquote{
  margin:0;
  padding:10px 12px;
  border-left:3px solid var(--accent);
  background:#f9fafb;
  border-radius:12px;
  font-size:.95rem;
  font-style:italic;
  color:#111827;
  line-height:1.55;
}
.quote-author{
  margin-top:6px;
  font-size:.85rem;
  color:var(--muted);
}

/* FAQ */
details{
  border-radius:14px;
  border:1px solid var(--border);
  padding:10px 14px;
  background:#f9fafb;
  margin-bottom:8px;
}
summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
}
summary::-webkit-details-marker{display:none;}
summary::before{
  content:"+";
  display:inline-block;
  margin-right:6px;
  font-weight:900;
  color:var(--accent);
}
details[open] summary::before{content:"-";}
details p{
  margin:10px 0 0;
  font-size:.95rem;
  color:#111827;
  line-height:1.55;
}

/* =========================
   Graphique
========================= */

.chart-wrapper{margin-top:6px;}
.chart-title{
  font-weight:900;
  margin:0 0 10px;
  font-size:.95rem;
}
.chart-caption{
  margin:10px 0 0;
  font-size:.86rem;
  color:var(--muted);
  line-height:1.55;
}
#tempChart{
  width:100% !important;
  height:280px !important;
  display:block;
}

/* =========================
   Quiz
========================= */

.card-quiz{margin-top:24px;}
.quiz-progress{
  font-size:.95rem;
  color:var(--muted);
  margin:10px 0 12px;
  font-weight:700;
}
.quiz-step{display:none;}
.quiz-step.active{display:block;}
.quiz-question p{
  margin:0 0 8px;
  font-weight:900;
  font-size:1.02rem;
}

.quiz-options label{
  display:block;
  padding:10px 12px;
  margin:10px 0;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  line-height:1.35;
}
.quiz-options label:hover{
  background:#f9fafb;
}
.quiz-options input{margin-right:8px;}

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  margin-top:10px;
}
.btn-primary:hover{filter:brightness(.95);}

.quiz-result{margin-top:12px;font-weight:900;}
.quiz-errors{margin-top:8px;color:var(--muted);font-size:.92rem;}

/* Fil d’Ariane bas : style graphique uniquement (aucun placement) */
.page-fiche .bottom-breadcrumb-ui{
  font-family:inherit;
  font-size:.83rem;
  line-height:1.45;
  font-weight:400;
  color:var(--muted-2);
  letter-spacing:0;
}

.page-fiche .bottom-breadcrumb-ui a{
  color:inherit;
  text-decoration:none;
}

.page-fiche .bottom-breadcrumb-ui a:hover{
  text-decoration:underline;
}

.page-fiche .bottom-breadcrumb-ui .sep{
  color:inherit;
  opacity:1;
}

.page-fiche .bottom-breadcrumb-ui span{
  color:inherit;
}



/* =========================
   Info grid (bas de page)
========================= */

.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
  margin-top:18px;
}
@media (max-width:980px){
  .info-grid{grid-template-columns:1fr;}
}

.info-plain h2{
  margin:0 0 8px;
}
.info-plain p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}


