/* Page-specific styles for primevoiture-aides-locales.html (prefixed al-) */

.al-hero-section {
  background: var(--bg-gray);
  padding: 28px 24px 64px;
}

.al-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--navy-muted);
  margin: 0 0 36px;
}
.al-breadcrumb a { color: var(--navy-muted); text-decoration: underline; text-underline-offset: 3px; }
.al-breadcrumb .current { color: var(--navy); font-weight: 600; }

.al-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
}

.al-hero-grid h1 {
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.al-hero-text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-light);
  max-width: 600px;
  margin: 0 0 30px;
  text-wrap: pretty;
}

.al-hero-visual { display: flex; justify-content: center; align-items: center; }

.al-blob-wrap { position: relative; width: min(100%, 466px); aspect-ratio: 1; }
.al-blob-bg { position: absolute; left: 11%; top: 13%; width: 84%; aspect-ratio: 1; border-radius: 50%; background: #FFE1D3; }
.al-blob-photo { position: absolute; left: 4%; top: 4%; width: 80%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--pastel-blue); }
.al-blob-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; display: block; }
.al-blob-dot-1 { position: absolute; left: -1%; top: -3%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--pastel-green); opacity: .85; }
.al-blob-dot-2 { position: absolute; left: 83%; top: 7%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--pastel-yellow); opacity: .9; }
.al-blob-dot-3 { position: absolute; left: 13%; top: 1%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--pastel-blue); opacity: .85; }

/* Two-column layout: sticky TOC + article */
.al-layout-section { padding: 0; }

.al-layout {
  padding: 64px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 56px;
  align-items: start;
}

.al-sidebar { position: sticky; top: 96px; max-width: 260px; }
.al-sidebar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.al-toc { display: flex; flex-direction: column; border-left: 2px solid var(--border); }
.al-toc a { padding: 8px 0 8px 16px; font-size: 15px; line-height: 1.35; color: var(--navy-light); }
.al-toc a:hover { color: var(--navy); }

.al-article {
  grid-column: span 3;
  min-width: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.al-block { scroll-margin-top: 96px; }
.al-block h2 {
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.al-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-light);
  margin: 0 0 22px;
  text-wrap: pretty;
}

/* Conditions list */
.al-conditions { display: grid; gap: 10px; margin-bottom: 22px; }
.al-condition {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--bg-gray);
  border-radius: 16px;
  padding: 18px 20px;
}
.al-condition-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Schibsted Grotesk';
  font-weight: 800;
  font-size: 16px;
}
.al-condition-body { padding-top: 2px; }
.al-condition-body b { font-family: 'Schibsted Grotesk'; font-size: 17px; }
.al-condition-text { font-size: 15px; line-height: 1.55; color: var(--navy-light); margin-top: 3px; text-wrap: pretty; }

.al-callout {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  padding: 16px 20px;
  background: var(--pastel-yellow-light);
  border-radius: 14px;
  text-wrap: pretty;
}

/* Overview table */
.al-table-note { font-size: 15px; color: var(--navy-muted); margin: 0 0 20px; }
.al-table-wrap { overflow-x: auto; background: var(--bg-gray); border-radius: 20px; padding: 8px 20px; }
.al-table { min-width: 720px; display: grid; }
.al-table-head,
.al-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) 44px;
  gap: 16px;
  padding: 14px 0;
  align-items: center;
}
.al-table-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.al-table-row { border-bottom: 1px solid var(--border); }
.al-table-row:last-child { border-bottom: none; }
.al-table-name { display: flex; align-items: center; gap: 12px; font-family: 'Schibsted Grotesk'; font-weight: 700; font-size: 16px; line-height: 1.25; }
.al-table-name img { width: 40px; height: auto; flex: none; }
.al-table-max { font-family: 'Schibsted Grotesk'; font-weight: 800; font-size: 17px; line-height: 1.3; }
.al-table-revenu { font-size: 15px; }
.al-table-ancien { font-size: 15px; color: var(--navy-light); }
.al-table-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.al-table-link:hover { background: var(--navy); color: #FFFFFF; }
.al-table-caption { font-size: 14px; line-height: 1.6; color: var(--navy-muted); margin: 14px 0 0; }

/* Per-collectivity fiches */
.al-fiches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.al-fiche { scroll-margin-top: 96px; border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.al-fiche-blue { background: var(--pastel-blue-light); }
.al-fiche-orange { background: var(--pastel-orange-light); }
.al-fiche-yellow { background: var(--pastel-yellow-light); }
.al-fiche-purple { background: #F3EEFF; }
.al-fiche-green { background: var(--pastel-green-light); }

.al-fiche-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.al-fiche-head img { width: 64px; height: auto; flex: none; }
.al-fiche-head h3 { font-weight: 700; font-size: 23px; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
.al-fiche-dispositif { font-size: 15px; font-weight: 600; color: var(--navy-light); margin-top: 4px; }

.al-fiche-lines { display: grid; background: #FFFFFF; border-radius: 16px; padding: 4px 20px; }
.al-fiche-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.al-fiche-line:last-child { border-bottom: none; }
.al-fiche-k { font-size: 13px; font-weight: 600; color: var(--navy-muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.al-fiche-v { grid-column: span 3; font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.al-bareme-wrap { margin-top: 12px; background: #FFFFFF; border-radius: 16px; padding: 4px 20px; overflow-x: auto; }
.al-bareme { min-width: 380px; display: grid; }
.al-bareme-head,
.al-bareme-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

@media (max-width: 640px) {
  .al-bareme-wrap { padding: 4px 10px; }
  .al-bareme { min-width: 0; }
  .al-bareme-head, .al-bareme-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
  .al-bareme-head span, .al-bareme-row span { overflow-wrap: break-word; }
  .al-bareme-head span { font-size: 11px; }
  .al-bareme-row { font-size: 12px; }
  .al-bareme-row .al-n, .al-bareme-row .al-o { font-size: 14px; }
}
.al-bareme-head {
  padding: 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.al-bareme-row { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.al-bareme-row:last-child { border-bottom: none; }
.al-bareme-row .al-n,
.al-bareme-row .al-o { font-family: 'Schibsted Grotesk'; font-weight: 800; font-size: 17px; }

.al-fiche-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 16px; }
.al-fiche-foot a { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Autres collectivites (dark card) */
.al-dark-card { background: var(--navy); color: #FFFFFF; border-radius: 22px; padding: clamp(24px, 3.5vw, 36px); }
.al-dark-card h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 0 0 14px; }
.al-dark-card p { font-size: 16px; line-height: 1.65; color: var(--footer-text); margin: 0 0 20px; text-wrap: pretty; }
.al-dark-card .al-btn-white {
  display: inline-block;
  background: #FFFFFF;
  color: var(--navy);
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 22px;
}
.al-dark-card .al-btn-white:hover { background: var(--pastel-yellow); color: var(--navy); }
.al-dark-card .al-note { font-size: 15px; line-height: 1.6; color: var(--footer-text-dim); margin: 0; }

/* Cumul */
.al-cumul { display: grid; gap: 14px; }
.al-cumul-card { border-radius: 18px; padding: 24px; }
.al-cumul-blue { background: var(--pastel-blue-light); }
.al-cumul-green { background: var(--pastel-green-light); }
.al-cumul-tag { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.al-cumul-tag-blue { background: var(--pastel-blue); }
.al-cumul-tag-green { background: var(--pastel-green); }
.al-cumul-card p { font-size: 16px; line-height: 1.65; margin: 0; text-wrap: pretty; }
.al-cumul-link { display: inline-block; margin-top: 20px; font-weight: 600; font-size: 16px; color: var(--blue); }

/* Reassurance section spacing override (reuses shared .reassurance-grid/.reassurance-card/.simulateur-card) */
.al-reassurance-section { margin-top: 56px; }

@media (max-width: 900px) {
  .al-layout { grid-template-columns: 1fr; }
  .al-sidebar { position: static; max-width: none; margin-bottom: 8px; }
}

@media (max-width: 640px) {
  .al-fiche-line { grid-template-columns: 1fr; gap: 4px; }
  .al-fiche-v { grid-column: 1; }
}
