/* =====================================================================
   Page Top 100 ClimaScore : /top-100/{hub_slug}
   Linkable asset (classement national). Externalise depuis top100.html
   pour cache navigateur + crawl plus rapide.
   Charte STRICTE : tous les tokens via _tokens.css (var(--cs-*)).
   Aucun token local, aucun #hex, aucune font-family en dur.
   ===================================================================== */
.t100-page {
    background: var(--cs-bg);
    color: var(--cs-ink);
    padding-bottom: 4rem;
}

/* Hero ----------------------------------------------------------------- */
.t100-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}
.t100-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cs-teal);
    background: var(--cs-teal-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.t100-hero h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--cs-ink);
}
.t100-lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--cs-mute);
    max-width: 760px;
    margin: 0 auto 1.5rem;
}
.t100-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--cs-mute);
    margin-bottom: 1.75rem;
}
.t100-meta span { white-space: nowrap; }

/* Partage social ------------------------------------------------------- */
.t100-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--cs-bg-elevated);
    border: 1px solid var(--cs-line);
    border-radius: 12px;
    max-width: 720px;
    margin: 0 auto;
}
.t100-share h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0.5rem 0 0;
    color: var(--cs-ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.t100-share a, .t100-share button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cs-teal);
    background: var(--cs-bg-subtle);
    border: 1px solid var(--cs-line);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.t100-share a:hover, .t100-share button:hover {
    background: var(--cs-teal);
    color: var(--color-text-inverse);
    border-color: var(--cs-teal);
}

/* Section générique --------------------------------------------------- */
.t100-section {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}
.t100-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--cs-ink);
}

/* Carte ---------------------------------------------------------------- */
#t100-map-canvas {
    height: 480px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--cs-line);
    background: var(--cs-bg-subtle);
}
.t100-map-legend {
    font-size: 0.8125rem;
    color: var(--cs-mute);
    margin-top: 0.5rem;
}
.t100-map-empty {
    padding: 1rem;
    color: var(--cs-mute);
    font-size: 0.875rem;
}

/* Tableau -------------------------------------------------------------- */
.t100-table-wrap {
    overflow-x: auto;
    background: var(--cs-bg-elevated);
    border: 1px solid var(--cs-line);
    border-radius: 12px;
    margin-top: 1rem;
}
.t100-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.t100-table thead {
    background: var(--cs-bg-subtle);
}
.t100-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cs-mute);
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--cs-line);
    white-space: nowrap;
}
.t100-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cs-line);
    vertical-align: middle;
}
.t100-table tr:last-child td { border-bottom: none; }
.t100-table tr:hover { background: var(--cs-teal-soft); }
.t100-table td.rank {
    font-family: var(--cs-font-mono);
    font-weight: 700;
    color: var(--cs-teal);
    width: 4.5rem;
}
.t100-table td a {
    color: var(--cs-ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}
.t100-table td a:hover {
    color: var(--cs-teal);
    border-bottom-color: var(--cs-teal);
}
.t100-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--cs-accent) !important;
    font-weight: 600;
}

/* Méthodologie --------------------------------------------------------- */
.t100-methodology {
    background: var(--cs-bg-subtle);
    border-left: 4px solid var(--cs-teal);
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 8px;
    margin-top: 2.5rem;
}
.t100-methodology p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
    color: var(--cs-ink);
}
.t100-methodology a {
    color: var(--cs-teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* CTA analyse adresse -------------------------------------------------- */
.t100-cta {
    margin-top: 3rem;
    padding: 2.25rem 1.5rem;
    background: linear-gradient(135deg, var(--cs-teal), var(--cs-teal-deep));
    color: var(--color-text-inverse);
    border-radius: 14px;
    text-align: center;
}
.t100-cta h2 { color: var(--color-text-inverse); margin: 0 0 0.75rem; }
.t100-cta p {
    font-size: 1rem;
    margin: 0 auto 1.25rem;
    max-width: 600px;
    opacity: 0.92;
}
.t100-cta form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 620px;
    margin: 0 auto;
}
.t100-cta input[type="text"] {
    flex: 1 1 280px;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}
.t100-cta button {
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: var(--cs-accent);
    color: var(--color-text-inverse);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.15s;
}
.t100-cta button:hover { filter: brightness(1.08); }

/* CTA rapport PDF (monétisation) --------------------------------------- */
.t100-rapport-cta {
    background: linear-gradient(180deg, var(--cs-bg-subtle) 0%, var(--cs-bg) 100%);
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}
.t100-rapport-cta__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cs-accent);
    background: var(--cs-accent-soft);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
.t100-rapport-cta h2 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--cs-ink);
}
.t100-rapport-cta__desc {
    margin: 0 0 0.65rem;
    color: var(--cs-mute);
    line-height: 1.55;
    font-size: 0.95rem;
}
.t100-rapport-cta__fine {
    margin: 0;
    font-size: 0.85rem;
    color: var(--cs-mute);
}
.t100-rapport-cta__price {
    text-align: center;
}
.t100-rapport-cta__price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cs-mute);
    margin-bottom: 0.25rem;
}
.t100-rapport-cta__price-value {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cs-ink);
    font-variant-numeric: tabular-nums;
}
.t100-rapport-cta__delay {
    font-size: 0.8rem;
    color: var(--cs-mute);
    margin: 0.4rem 0 0.9rem;
}
.t100-rapport-cta__btn {
    display: inline-block;
    background: var(--cs-accent);
    color: var(--color-text-inverse);
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* Autres classements --------------------------------------------------- */
.t100-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.625rem;
}
.t100-related li a {
    display: block;
    padding: 0.875rem 1rem;
    background: var(--cs-bg-elevated);
    border: 1px solid var(--cs-line);
    border-radius: 8px;
    color: var(--cs-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: border-color 0.15s, background 0.15s;
}
.t100-related li a:hover {
    border-color: var(--cs-teal);
    background: var(--cs-teal-soft);
    color: var(--cs-teal);
}

/* Popup carte (généré en JS) ------------------------------------------- */
.t100-popup {
    font-family: inherit;
    font-size: 0.875rem;
}
.t100-popup a {
    color: var(--cs-teal);
    font-weight: 600;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 680px) {
    .t100-rapport-cta { grid-template-columns: 1fr; text-align: left; }
    .t100-rapport-cta__price { text-align: left; }
}
@media (max-width: 640px) {
    .t100-hero { padding: 2rem 1rem 1.5rem; }
    .t100-hero h1 { font-size: 1.5rem; }
    .t100-lead { font-size: 0.9375rem; }
    .t100-share { padding: 0.625rem 0.75rem; gap: 0.375rem; }
    .t100-share h3 { font-size: 0.75rem; width: 100%; text-align: center; }
    #t100-map-canvas { height: 360px; }
    .t100-table { font-size: 0.875rem; }
    .t100-table th, .t100-table td { padding: 0.625rem 0.75rem; }
    .t100-cta { padding: 1.75rem 1rem; }
    .t100-cta form { flex-direction: column; }
}
@media (max-width: 420px) {
    .t100-table thead th:nth-child(4),
    .t100-table tbody td:nth-child(4) { display: none; }
    .t100-table thead th:nth-child(6),
    .t100-table tbody td:nth-child(6) { display: none; }
}
