/* =========================================
   page.css — Styles pour les pages secondaires
   ========================================= */

/* ---- Page Hero ---- */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0;
  color: var(--white);
}
.page-hero--blue {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
}
.page-hero--light {
  background: var(--gray-50);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  margin: 12px 0 16px;
  color: inherit;
}
.page-hero--light .page-hero__title { color: var(--gray-900); }
.page-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.88;
  max-width: 600px;
  margin-bottom: 28px;
}
.page-hero--light .page-hero__lead { color: var(--gray-500); opacity: 1; }
.page-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.page-hero--light .breadcrumb { color: var(--gray-400); }
.page-hero--light .breadcrumb a { color: var(--gray-500); }
.page-hero--light .breadcrumb a:hover { color: var(--blue-700); }

/* ---- Key facts bar ---- */
.key-facts {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
.key-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.key-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--gray-200);
  gap: 4px;
}
.key-fact:last-child { border-right: none; }
.key-fact__icon { font-size: 22px; }
.key-fact__label { font-size: 12px; color: var(--gray-500); }
.key-fact__value { font-size: 15px; font-weight: 600; color: var(--gray-900); }

/* ---- Page content layout ---- */
.page-content { padding: clamp(40px, 6vw, 72px) 0; }
.page-content__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ---- Article body ---- */
.page-body { min-width: 0; }
.content-section { margin-bottom: 48px; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}
.content-section p { color: var(--gray-700); line-height: 1.75; margin-bottom: 12px; }

/* ---- Conditions list ---- */
.condition-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.condition-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.condition-item--ok { border-left: 3px solid #22c55e; }
.condition-item--warn { border-left: 3px solid #f59e0b; }
.condition-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.condition-item strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--gray-900); }
.condition-item p { margin: 0; font-size: 14px; color: var(--gray-500); }

/* ---- Docs ---- */
.doc-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.doc-category {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}
.doc-category h3 { font-size: 14px; font-weight: 600; color: var(--blue-700); margin-bottom: 10px; }
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.doc-list li { font-size: 13px; color: var(--gray-600); padding-left: 14px; position: relative; }
.doc-list li::before { content: '·'; position: absolute; left: 0; color: var(--blue-500); font-weight: 700; }

/* ---- Info box ---- */
.info-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.65;
  margin-top: 16px;
}
.info-box--blue { background: var(--blue-50); border: 1px solid #bfdbfe; color: #1e40af; }
.info-box--warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.info-box--green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }

/* ---- Process steps ---- */
.process-steps { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.process-step {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.process-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-step__content h3 { font-size: 16px; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; margin-top: 8px; }
.process-step__content p { font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.65; }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.faq__item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.faq__question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; font-size: 18px; color: var(--blue-700); flex-shrink: 0; }
details[open] .faq__question::after { content: '−'; }
.faq__answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Sidebar ---- */
.page-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-cta {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-cta h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sidebar-cta p { font-size: 14px; opacity: 0.8; line-height: 1.6; }
.sidebar-services {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-services h4 { font-size: 13px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.sidebar-services ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-services a { font-size: 14px; color: var(--gray-700); transition: color 0.15s; }
.sidebar-services a:hover { color: var(--blue-700); }

/* ---- Review cards on service pages ---- */
.mini-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .page-content__inner { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .key-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .key-fact:nth-child(2) { border-right: none; }
  .doc-categories { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .key-facts__grid { grid-template-columns: 1fr 1fr; }
  .breadcrumb { font-size: 12px; }
}
