/* ============================================================
   AVENIR METIER — STYLES PAGES INTERIEURES
   interior.css — styles spécifiques aux pages de contenu
   ============================================================ */

/* ── 1. CONTENU ÉDITORIAL ─────────────────────────────────── */
.editorial h2:first-of-type {
  margin-top: 0;
}

.editorial h2 {
  padding-top: 0.5rem;
  border-top: 2px solid var(--primary-pale);
}

.editorial h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.editorial a {
  color: var(--primary);
  font-weight: 500;
  text-underline-offset: 2px;
}

.editorial a:hover { color: var(--primary-light); }

.editorial ul, .editorial ol {
  margin-bottom: 1.25rem;
}

.editorial li {
  line-height: 1.75;
}

.editorial blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
  background: #fff9f5;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── 2. PAGE WRAPPER ──────────────────────────────────────── */
.page-body {
  padding: 3rem 0 4rem;
}

.page-body-alt {
  padding: 3rem 0 4rem;
  background: var(--bg-alt);
}

/* ── 3. SECTION INDEX ─────────────────────────────────────── */
.index-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 720px;
  line-height: 1.85;
  margin-bottom: 3rem;
}

/* ── 4. GRILLE SECTEURS INDEX ─────────────────────────────── */
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ── 5. GRILLE MÉTIERS ────────────────────────────────────── */
.metiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── 6. PAGE SECTEUR ──────────────────────────────────────── */
.secteur-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 0;
}

.secteur-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.secteur-stat-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 140px;
}

.secteur-stat-value {
  display: block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.secteur-stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── 7. TABLEAU DE COMPARAISON ────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}

.compare-table th {
  background: var(--dark);
  color: #fff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
}

.compare-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tr:nth-child(even) td { background: var(--bg-alt); }

.compare-ok   { color: #2e7d32; font-weight: 600; }
.compare-ko   { color: #c62828; font-weight: 600; }
.compare-warn { color: #e65100; font-weight: 600; }

/* ── 8. TEMOIGNAGE ────────────────────────────────────────── */
.temoignage-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  margin: 2rem 0;
}

.temoignage-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.temoignage-quote::before {
  content: '\201C';
  font-size: 3rem;
  font-family: var(--font-title);
  color: var(--primary-pale);
  line-height: 0;
  vertical-align: -1rem;
  margin-right: 0.2rem;
}

.temoignage-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.temoignage-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── 9. GRILLE FORMATIONS ─────────────────────────────────── */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── 10. GRILLE RECONVERSION ──────────────────────────────── */
.reconv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── 11. ENCART ALERTE / AVERTISSEMENT ────────────────────── */
.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.warning-box-title {
  font-weight: 700;
  color: #e65100;
  margin-bottom: 0.5rem;
}

/* ── 12. SEPARATEUR AVEC LABEL ────────────────────────────── */
.divider-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── 13. TAGS PROFIL ──────────────────────────────────────── */
.profile-tag-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.profile-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-tag-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  min-width: 90px;
}

/* ── 14. RÉSUMÉ / ABSTRACT ────────────────────────────────── */
.page-abstract {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  padding: 1.75rem 2rem;
  background: var(--primary-pale);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--primary);
}

/* ── 15. RESPONSIVE INTERIOR ──────────────────────────────── */
@media (max-width: 768px) {
  .page-body, .page-body-alt { padding: 2rem 0 3rem; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.9rem; }
  .temoignage-block { padding: 1.5rem; }
  .cta-banner { text-align: center; }
}
