/* ============================================================
   PAGES INTERNES — Cap Horizon
   Styles communs à toutes les pages (locales, piliers, FAQ)
   ============================================================ */

/* ── HERO PAGE INTERNE ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #122340 60%, #1a3558 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(196,150,49,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(146,169,200,.08) 0%, transparent 50%);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.page-hero__breadcrumb a:hover { color: var(--gold-light); }
.page-hero__breadcrumb i { font-size: .65rem; }
.page-hero__breadcrumb span { color: var(--gold-light); }

.page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,150,49,.15);
  border: 1px solid rgba(196,150,49,.35);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.page-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-hero__title span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 640px;
}

.page-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── CONTENU ARTICLE ─────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
  padding: 72px 0;
}

.article-body h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--navy);
  font-weight: 700;
  margin: 40px 0 16px;
  line-height: 1.25;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: var(--navy-mid);
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-body p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: .97rem;
}

.article-body strong { color: var(--navy); }

.article-body ul, .article-body ol {
  margin: 16px 0 24px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ul li, .article-body ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
}

.article-body ul li::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter);
  width: 24px; height: 24px;
  background: var(--navy);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Encadré info / alerte */
.article-callout {
  background: rgba(196,150,49,.07);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-callout p { margin: 0; color: var(--navy); }
.article-callout strong { color: var(--navy); }

/* Encadré CTA inline */
.article-cta-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  margin: 36px 0;
  text-align: center;
}

.article-cta-box h3 {
  color: var(--white);
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 100px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card__title {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.sidebar-contact { background: var(--navy); border-color: var(--navy); }
.sidebar-contact .sidebar-card__title { color: var(--white); border-bottom-color: var(--gold); }

.sidebar-contact .contact__details { margin: 0; }
.sidebar-contact .contact__details li i { background: rgba(255,255,255,.1); color: var(--gold); }
.sidebar-contact .contact__details li a,
.sidebar-contact .contact__details li span { color: rgba(255,255,255,.8); }

.sidebar-nav ul { display: flex; flex-direction: column; gap: 6px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-light);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(196,150,49,.08);
  color: var(--navy);
}
.sidebar-nav a i { color: var(--gold); font-size: .75rem; width: 14px; }

/* ── CARDS SERVICES (réutilisable) ───────────────────────── */
.services-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.service-mini-card {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.service-mini-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-mini-card i {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: block;
}

.service-mini-card h4 {
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.service-mini-card p {
  font-size: .83rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* ── SECTION AUTRES COMMUNES ─────────────────────────────── */
.communes-section {
  background: var(--off-white);
  padding: 56px 0;
  border-top: 1px solid var(--gray-200);
}

.communes-section .section__header { margin-bottom: 32px; }

.communes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.commune-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--navy);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.commune-link i { color: var(--gold); font-size: .75rem; }

.commune-link:hover {
  border-color: var(--gold);
  background: rgba(196,150,49,.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.commune-link.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  cursor: default;
}

.commune-link.current i { color: var(--gold); }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open { box-shadow: var(--shadow); border-color: rgba(196,150,49,.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--ff-sans);
  transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-100); }
.faq-item.open .faq-question { background: var(--gray-100); color: var(--navy); }

.faq-question i {
  color: var(--gold);
  font-size: .85rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer__inner {
  padding: 0 24px 24px;
  color: var(--text-light);
  font-size: .93rem;
  line-height: 1.75;
}

.faq-answer__inner p { margin-bottom: 12px; }
.faq-answer__inner p:last-child { margin-bottom: 0; }
.faq-answer__inner strong { color: var(--navy); }

/* ── TABLE COMPARAISON ───────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
}

.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text-light);
  background: var(--white);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--off-white); }

.compare-table .highlight td {
  background: rgba(196,150,49,.07) !important;
  color: var(--navy);
  font-weight: 500;
}

/* ── PAGES LÉGALES ───────────────────────────────────────── */
.page-hero--light {
  background: linear-gradient(135deg, var(--navy) 0%, #0e1f38 100%);
  padding: 120px 0 60px;
}

.legal-content { color: var(--text); }

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-section h2 i { color: var(--gold); font-size: 1.1rem; }

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 20px 0 10px;
}

.legal-section p, .legal-section li {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.legal-table th, .legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.legal-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--navy);
  font-size: .85rem;
  width: 35%;
}
.legal-table td {
  background: var(--white);
  color: var(--text-light);
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }

.legal-rights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.legal-right {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.legal-right > i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.legal-right strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: 4px;
}
.legal-right p {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ── HIGHLIGHT GRID (TNS / Placements pages) ─────────────── */
.article-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.highlight-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.highlight-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.highlight-card__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 14px;
}

.highlight-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.highlight-card p,
.highlight-card li {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

.highlight-card ul {
  padding-left: 16px;
  margin: 0;
}
.highlight-card li { margin-bottom: 4px; }

/* ── ARTICLE STEPS ───────────────────────────────────────── */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.article-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
}

.article-step__num {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 40px;
  line-height: 1;
  padding-top: 2px;
}

.article-step__body h4 {
  font-family: var(--ff-sans);
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.article-step__body p {
  font-size: .9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.65;
}

/* ── VITICULTEUR HERO VARIANT ────────────────────────────── */
.page-hero--viti::before {
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(146,169,200,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(196,150,49,.1) 0%, transparent 50%);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .page-hero { padding: 110px 0 60px; }
  .page-hero__actions { flex-direction: column; }
  .communes-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { padding: 48px 0; }
}
