/* RoadCommunity — cohérence typographique et navigation globale, v0.12.36.
   CSS chargé APRÈS tous les modules pour garder quatre niveaux lisibles. */
:root {
    --rc-type-title: clamp(1.75rem, 1.5rem + 1vw, 2.3rem);
    --rc-type-section: clamp(1.25rem, 1.12rem + .35vw, 1.55rem);
    --rc-type-body: 1rem;
    --rc-type-small: .875rem;
}
html { font-size: 100%; }
body { font-size: var(--rc-type-body); line-height: 1.55; }
/* Titres, sous-titres et descriptions : tailles adaptées aux écrans classiques. */
h1, .page-header h1, .forum-dashboard-heading h1,
.carpool-page h1, .carpool-detail-page h1,
.profile-dashboard-identity h1, .hero h1 {
    font-size: var(--rc-type-title);
    font-weight: 700;
    letter-spacing: -.018em;
    line-height: 1.22;
    text-wrap: pretty;
    overflow-wrap: break-word;
    hyphens: manual;
}
h2, .card-header h2, .rt-admin-settings-card > .card-header h2,
.rt-general-stats-heading h2, .rt-maintenance-detail-header h2 {
    font-size: var(--rc-type-section);
    font-weight: 650;
    letter-spacing: -.012em;
    line-height: 1.3;
    text-wrap: pretty;
}
h3, .card-header h3, .activity-list .card-header h3,
.vehicle-feed .card-header h3, .planner-demo-copy h3,
.fuel-price-demo-copy h3, .home-visitor-pulse .card-header h3 {
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: normal;
    line-height: 1.35;
}
h4, h5, h6 { font-weight: 650; line-height: 1.35; }
/* Paragraphes et méta-descriptions. Ne pas réduire les contenus des formulaires. */
p, .card-body, .card-body p, .form-help, .page-header p,
.page-header-copy p, .field, input, textarea, select,
.carpool-journey-meta, .carpool-detail-side p { font-size: var(--rc-type-body); }
small, .small, .text-small, .muted small,
.stat-card > small, .activity-stat-card small,
.carpool-home-card small, .carpool-demo-row small,
.carpool-journey-meta span, .carpool-home-meta span,
.carpool-kind-label, .carpool-status,
.rt-maintenance-detail-meta span, .rt-maintenance-detail-note,
.rt-followup-list small, .admin-hub-card nav span {
    font-size: var(--rc-type-small);
    line-height: 1.45;
}
/* Navigation et sous-menus : tailles normales, lisibles, non surchargées en gras. */
.header-inner{flex-wrap:wrap}
.main-nav > a, .nav-dropdown > summary, .admin-bar a,
.admin-subbar a, .site-section-link,
.nav-dropdown-panel a, .nav-dropdown-panel strong,
.community-more-menu > summary strong,
.community-more-panel > a strong,
.community-carpool-main strong, .community-carpool-title {
    font-size: var(--rc-type-body);
    font-weight: 550;
    letter-spacing: normal;
    text-transform: none;
}
.nav-dropdown-panel a span, .community-more-menu > summary span,
.community-more-panel > a span { font-size: var(--rc-type-small); font-weight: 400; line-height: 1.42; }
/* Liens des menus et sous-menus sans cadres individuels. */
.admin-subbar a, .admin-subbar a.active,
.admin-subbar a:hover, .admin-subbar a:focus-visible,
.nav-dropdown-panel a, .nav-dropdown-panel a:hover,
.community-more-panel > a, .community-more-panel > a:hover,
.community-more-panel > a:focus-visible {
    border: 0 !important;
    box-shadow: none;
    border-radius: 8px !important;
}
.community-more-panel { gap: 2px; padding: 4px 0 0 12px; }
.community-more-panel > a { padding: 9px 11px !important; background: transparent; }
.community-more-panel > a:hover, .community-more-panel > a:focus-visible {
    background: var(--surface-3);
    color: var(--text);
}
.admin-subbar a.active, .admin-subbar a.active:hover,
.admin-subbar a.active:focus-visible {
    background: var(--primary-soft) !important;
    color: var(--link) !important;
    font-weight: 650;
    box-shadow: inset 0 -2px 0 var(--primary) !important;
}
.admin-subbar a:not(.active):hover, .admin-subbar a:not(.active):focus-visible {
    background: var(--surface-2) !important;
    color: var(--text) !important;
}
/* Les survols gardent un texte adapté au fond : clair sur fond plein,
   foncé sur les fonds adoucis, y compris l'onglet actif. */
.site-section-bar-secondary .site-section-link:is(.active,.is-active,[aria-pressed="true"]):is(:hover,:focus-visible),
.site-section-bar-secondary .site-section-link.emphasis:is(:hover,:focus-visible) {
    background: var(--rc-link-tone);
    color: #fff;
    border-color: transparent;
}
.site-section-bar-secondary .site-section-link:not(.active):not(.is-active):not(.emphasis):hover {
    color: var(--link);
    background: var(--rc-link-soft);
    border-color: transparent;
}
.button.button-primary:is(:hover,:focus-visible) { color: var(--on-primary); }
.button.button-secondary:is(:hover,:focus-visible) { color: var(--on-secondary); }
.button.button-success:is(:hover,:focus-visible) { color: var(--on-success); }
.button.button-danger:is(:hover,:focus-visible) { color: var(--on-danger); }
.button.button-ghost:is(:hover,:focus-visible) { color: var(--text); }
/* Statistiques : libellés sobres et nombres mis en évidence. */
.stat-card > span, .activity-stat-card span,
.home-public-stats-grid span, .rt-technical-kpis small,
.rt-price-kpi > span, .rt-demo-kpis small {
    font-size: var(--rc-type-small);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
.stat-card > strong, .activity-stat-card strong,
.home-public-stats-grid strong {
    font-size: clamp(1.15rem, 1.1rem + .5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
}
/* Titres des tuiles de covoiturage : ne pas traiter les méta-informations comme des titres. */
.carpool-home-card h3 { font-size: 1.0625rem; font-weight: 650; }
.carpool-home-card footer, .carpool-home-meta span,
.carpool-journey-meta span { font-weight: 500; }
.carpool-home-card footer b { font-weight: 650; }
.carpool-kind-label, .carpool-status { font-weight: 650; letter-spacing: .01em; }
.carpool-detail-side strong, .carpool-detail-side b { font-weight: 650; }
/* Les badges d'alerte et les chiffres clés peuvent, eux, rester en gras. */
.nav-carpool-alert, .community-carpool-alert, .nav-summary-badge { font-weight: 700; }
:where(a, button, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}
@media (max-width: 700px) {
    :root { --rc-type-title: 1.65rem; --rc-type-section: 1.22rem; }
    .main-nav > a, .nav-dropdown > summary, .admin-bar a, .admin-subbar a,
    .site-section-link, .nav-dropdown-panel a { font-size: 1rem; }
}

/* Pages de réservation, résultats et services : les petites légendes restent lisibles. */
.carpool-hero h1, .route-energy-hero h1,
.registration-success-banner h1, .forum-intro h1 {
    font-size: var(--rc-type-title);
    font-weight: 700;
    line-height: 1.23;
}
.route-address-option small, .route-station-search > small,
.route-station-price small, .route-station-public-note p,
.route-station-public-note strong, .route-disclaimer,
.route-choice-switch span, .route-repeat-summary,
.route-results-heading p, .route-stop-copy span,
.route-road-options > p, .route-option-label,
.route-empty-garage p, .route-energy-hero p,
.fuel-station-tariff, .fuel-station-services span,
.fuel-favorite-price small, .fuel-price-updated,
.fuel-filter-kicker, .fuel-filter-empty,
.fuel-admin-message, .fuel-station-public-note p,
.fuel-station-public-note strong, .fuel-community-label,
.fuel-suggestion-heading, .fuel-address-suggestions button strong {
    font-size: var(--rc-type-small);
    line-height: 1.45;
}
.eyebrow, .carpool-detail-side .eyebrow,
.rt-maintenance-detail-group h3 { font-weight: 650; }
/* Les éléments d'information ne doivent pas avoir une graisse de titre. */
.carpool-detail-side p, .carpool-journey-meta,
.rt-maintenance-detail-note, .route-results-heading p,
.route-energy-hero p { font-weight: 400; }

/* Les statistiques de la page membre ont une spécificité plus forte dans le thème. */
.activity-stats-member .activity-stat-card span {
    font-size: var(--rc-type-small);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
}
.activity-stats-member .activity-stat-card strong {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}


/* 0.12.37 — tons d'alertes cohérents sur tout le thème.
   Les contours reprennent toujours la teinte foncée du fond pastel. */
:where(.alert-warning,.badge-warning,.flash-warning,.is-warning,
       .carpool-pending-request,.carpool-archive-state.is-pending,
       .rt-followup-stat.is-warning,.rt-followup-row.is-warning,
       .rt-maintenance-detail-status.is-pending,.rt-maintenance-detail-status.is-postponed,
       .rt-statistics-filter-warning,.rt-checklist-close-panel) {
    border-color: var(--warning-text);
}
:where(.alert-error,.alert-danger,.badge-danger,.flash-error,.is-danger,
       .rt-followup-stat.is-danger,.rt-followup-row.is-danger,
       .rt-maintenance-detail-status.is-not_done,.member-deadline-critical,
       .admin-system-card-danger) {
    border-color: var(--danger-text);
}
.alert-warning { background: var(--warning-soft); color: var(--warning-text); border: 1px solid var(--warning-text); }
.alert-error,.alert-danger { background: var(--danger-soft); color: var(--danger-text); border: 1px solid var(--danger-text); }
.alert-info { background: var(--primary-soft); color: var(--text); border: 1px solid var(--link); }
/* Éviter les angles carrés lorsqu'un élément coloré occupe le bas d'une carte. */
:where(.alert-warning,.alert-error,.alert-danger,.alert-info,
       .rt-followup-stat,.rt-followup-row,.rt-checklist-close-panel) { border-radius: var(--radius-sm); }
@media (max-width: 600px) {
    .page-header { gap: 10px; }
    .page-header h1 { font-size: 1.6rem; }
    .card-header h2 { font-size: 1.2rem; }
    .card, .page-header { min-width: 0; }
    :where(.card,.page-header) :where(h1,h2,h3,p,strong,small) { overflow-wrap: anywhere; }
}

/* v1.6.7: coherent navigation hierarchy, clean admin tabs and accessible states. */
:root { --rc-surface-hover: var(--surface-2); }
/* The main white header and the blue module bar are NOT the navigation of a page. */
.main-nav > a, .main-nav .nav-dropdown > summary {font-weight:700!important;}
.nav-dropdown-panel a, .community-carpool-title,
.site-section-bar-primary .site-section-link {font-weight:500!important;}
/* The white navigation of an extension IS a set of functional tabs. */
.site-section-bar-secondary .site-section-link,
.admin-subbar a {font-weight:700 !important;font-size:.92rem !important;letter-spacing:0;}
.section-carpool .site-section-bar-secondary .site-section-bar-inner{gap:3px;min-height:56px}
.section-carpool .site-section-bar-secondary .site-section-link{padding:8px 10px;min-height:38px}
/* Admin secondary nav: no underline or bottom border even for active/hover. */
.admin-subbar a, .admin-subbar a.active, .admin-subbar a:hover,
.admin-subbar a:focus-visible {border:0!important;border-bottom:0!important;box-shadow:none!important;outline-offset:2px;}
.admin-subbar a.active {background:var(--primary-soft)!important;color:var(--link)!important;}
.admin-subbar a.active:is(:hover,:focus-visible) {background:var(--surface-3)!important;color:var(--text)!important;}
/* No light-on-light / dark-on-dark action states. */
.site-section-bar-secondary .site-section-link:is(.active,.is-active,.emphasis):is(:hover,:focus-visible) {color:#fff!important;background:var(--rc-link-tone)!important;}
.site-section-bar-secondary .site-section-link:not(.active):not(.is-active):not(.emphasis):is(:hover,:focus-visible){background:var(--rc-link-soft)!important;color:var(--text)!important;}
.button[disabled], button[disabled] {cursor:not-allowed;opacity:1;}
.carpool-selection-panel [data-selection-book]:disabled {background:#fce8eb!important;color:#a11e30!important;border:1px solid #b42335!important;box-shadow:none!important;}
.carpool-selection-panel [data-selection-book]:disabled:is(:hover,:focus-visible){background:#f9d8dd!important;color:#921827!important;border-color:#981a2a!important;}
.carpool-selection-panel [data-selection-status].is-error {background:#fce8eb;color:#a11e30;border:1px solid #b42335;border-radius:10px;padding:10px 12px;font-weight:650;}
.carpool-selection-panel [data-selection-status].is-error:hover{background:#f9d8dd;color:#921827;}
/* Compact, borderless garage reminders with a clear information hierarchy. */
.member-deadline-list{display:grid;gap:9px;padding:15px 18px!important}
.member-deadline,.member-deadline:last-child{border:0!important;border-radius:13px;padding:13px 15px;background:var(--surface-2);box-shadow:0 1px 2px rgba(12,38,63,.04);gap:8px}
.member-deadline:hover,.member-deadline:focus-visible {border:0!important;background:var(--surface-3);color:var(--text);box-shadow:0 3px 10px rgba(12,38,63,.08)}
.member-deadline-marker {display:block!important;align-self:center;width:9px;height:9px;background:var(--deadline-color);border-radius:100%}
.member-deadline{grid-template-columns:9px minmax(0,1fr) auto}
.member-deadline-topline{gap:8px;flex-wrap:wrap;align-items:center}
.member-deadline-topline strong{flex:1 1 160px;min-width:0;font-weight:650;font-size:.92rem;overflow:visible;white-space:normal;line-height:1.4}
.member-deadline-topline b{border:0!important;border-radius:20px;padding:2px 8px;background:var(--surface);color:var(--deadline-color);font-size:.76rem;font-weight:700}
.member-deadline-primary{font-size:.88rem!important;font-weight:600!important;line-height:1.4}
.member-deadline-copy small{font-size:.84rem;line-height:1.4;margin:0}
.member-deadline-copy{gap:3px}
.member-deadline.is-overdue,.member-deadline-overdue {background:var(--danger-soft)}
@media(max-width:760px){.section-carpool .site-section-bar-secondary .site-section-bar-inner{gap:2px}.section-carpool .site-section-bar-secondary .site-section-link{padding-inline:8px;font-size:.85rem!important}.member-deadline-list{padding:10px!important}}

/* Preserve normal button dimensions on standalone reservation validation. */
.carpool-selection-panel [data-selection-book]{width:fit-content;max-width:100%;justify-self:start}
@media(max-width:760px){
  .member-deadline-list .member-deadline,
  .member-deadline-list .member-deadline:last-child{display:grid;grid-template-columns:9px minmax(0,1fr) auto!important;gap:10px;align-items:start;padding:12px!important}
  .member-deadline .member-deadline-topline{flex-direction:column;align-items:flex-start;gap:6px}
  .member-deadline .member-deadline-topline strong{flex:0 1 auto;max-width:100%;overflow-wrap:anywhere}
  .member-deadline .member-deadline-copy{grid-column:2;grid-row:1}
  .member-deadline .member-deadline-marker{grid-column:1;grid-row:1;align-self:start;margin-top:8px}
  .member-deadline>span:last-child{grid-column:3;grid-row:1;align-self:center}
}


/* v1.6.8 — same typography in Community menu, all extension tabs, and accessible states. */
.community-nav-panel .community-carpool-main .community-carpool-title,
.community-nav-panel .forum-nav-link strong {
  font-family:inherit!important;
  font-size: 1rem !important; font-weight: 500 !important; line-height:1.4!important;
  letter-spacing:normal!important; text-transform:none!important; color:var(--text)!important;
}
.community-nav-panel .community-carpool-main,
.community-nav-panel .forum-nav-link {min-height:42px!important;padding:10px 12px!important;border:0!important;border-radius:8px!important;display:flex;align-items:center;}
.community-nav-panel .community-carpool-main:is(:hover,:focus-visible),
.community-nav-panel .forum-nav-link:is(:hover,:focus-visible) {background:var(--surface-2)!important;color:var(--text)!important;}
/* Unified spacing on administration AND extension tab bars. */
.site-section-bar-secondary .site-section-bar-inner {gap:8px!important;min-height:58px;}
.site-section-bar-secondary .site-section-link {min-height:38px;padding:9px 13px!important;font-weight:700!important;letter-spacing:0;}
.section-carpool .site-section-bar-secondary .site-section-bar-inner{gap:8px!important;min-height:58px;}
.section-carpool .site-section-bar-secondary .site-section-link{padding:9px 13px!important;min-height:38px;}
.admin-subbar a,.admin-subbar a.active,.admin-subbar a:hover,.admin-subbar a:focus-visible{border-bottom:0!important;box-shadow:none!important;}
@media(max-width:760px){
  .site-section-bar-secondary .site-section-bar-inner{gap:7px!important;min-height:0;}
  .site-section-bar-secondary .site-section-link,
  .section-carpool .site-section-bar-secondary .site-section-link{padding:9px 10px!important;font-size:.92rem!important;}
}
/* POI, address and commune are distinct *pill badges*, never just a subtitle. */
.rc-place-kind{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:max-content;min-height:23px;padding:3px 8px;margin-right:7px;border:1px solid var(--border-strong);border-radius:999px;background:var(--primary-soft);color:var(--text);font-size:.69rem!important;font-weight:750!important;letter-spacing:.035em;line-height:1.1;white-space:nowrap;}
.rc-place-kind.is-poi{background:#e6f5ed;border-color:#247a50;color:#125a39;}
.rc-place-kind.is-city{background:#f0e8fa;border-color:#77539d;color:#54337f;}
.rc-place-kind.is-address{background:var(--primary-soft);border-color:var(--border-strong);color:var(--text);}
:where(.carpool-suggestions,.carpool-address-suggestions,.carpool-selection-suggestions,[data-carpool-suggestions],[data-selection-suggestions],[data-carpool-search-suggestions]) button .rc-place-kind{flex:0 0 auto;}
:where(.carpool-suggestions,.carpool-address-suggestions,.carpool-selection-suggestions,[data-carpool-suggestions],[data-selection-suggestions],[data-carpool-search-suggestions]) button:is(:hover,:focus-visible) .rc-place-kind{filter:brightness(.94);}
:where(.carpool-suggestions,.carpool-address-suggestions,.carpool-selection-suggestions,[data-carpool-suggestions],[data-selection-suggestions],[data-carpool-search-suggestions]) button:is(:hover,:focus-visible){background:var(--surface-2);color:var(--text);}
/* Button hover/focus must remain readable even in disabled state. */
button:disabled,a.button[aria-disabled="true"] {cursor:not-allowed;}
button:disabled:is(:hover,:focus-visible){filter:none;}


/* v1.6.9 — identical left alignment and rhythm for Community dropdown links. */
.community-nav-panel > .community-carpool-entry{margin:0!important;padding:0!important;display:block!important;min-height:0!important;background:transparent!important;}
.community-nav-panel > .community-carpool-entry > .community-carpool-main,
.community-nav-panel > .forum-nav-link.community-primary-link{box-sizing:border-box!important;margin:0!important;width:100%!important;min-height:46px!important;padding:11px 14px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;line-height:1.4!important;}
.community-nav-panel > .community-carpool-entry > .community-carpool-main .community-carpool-title,
.community-nav-panel > .forum-nav-link.community-primary-link > strong{margin:0!important;padding:0!important;font-size:1rem!important;font-weight:500!important;line-height:1.4!important;letter-spacing:normal!important;}
.community-nav-panel > .community-carpool-entry > .community-carpool-pending{margin:3px 0 7px!important;}
.carpool-list-section{scroll-margin-top:120px;}
@media(max-width:760px){.carpool-list-section{scroll-margin-top:76px;}}

/* v1.6.11 — Forum : éviter le débordement des compteurs Sujets/Messages.
   Correction ciblée : aucune modification des autres vues ni des menus. */
.forum-category .forum-row {
    grid-template-columns: minmax(0, 1fr) 224px minmax(0, .82fr) 38px;
    column-gap: 16px;
}
.forum-category .forum-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 5px;
}
.forum-category .forum-counts > div {
    min-width: 0;
    padding-inline: 4px;
}
.forum-category .forum-counts dt {
    max-width: 100%;
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.35;
    white-space: nowrap;
    text-align: center;
}
.forum-category .forum-counts dd {
    max-width: 100%;
    margin: 3px 0 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.forum-category .forum-last {
    min-width: 0;
}
@media (min-width: 681px) and (max-width: 980px) {
    .forum-category .forum-row {
        grid-template-columns: minmax(0, 1fr) 210px 38px;
        column-gap: 12px;
    }
}
@media (max-width: 680px) {
    .forum-category .forum-row {
        grid-template-columns: minmax(0, 1fr) 36px;
        column-gap: 12px;
    }
    .forum-category .forum-counts {
        grid-column: 1 / -1;
    }
}
