/*
 * ResaCamino — Calculateur d'étapes
 * Styles du widget front-end
 */

/* =========================================================
 * RESET & BASE
 * ======================================================= */

.rc-calculateur *,
.rc-calculateur *::before,
.rc-calculateur *::after {
    box-sizing: border-box;
}

.rc-calculateur {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    max-width: 720px;
    margin: 0 auto;
    /* ── Couleurs ResaCamino alignées sur Elementor ────────────────
     * Accent principal  = --e-global-color-accent  = #274769 (bleu marine)
     * Vert ResaCamino   = --e-global-color-af0dd0e = #016630
     * Vert clair        = --e-global-color-dad98bc = #B9F8CF
     * Bordure           = --e-global-color-e059b45 = #EBEBEB
     * Fond gris clair   = --e-global-color-b8078b6 = #F8F8F8
     * Bleu info foncé   = --e-global-color-c419c1a = #0C447C
     * Bleu info clair   = --e-global-color-af45f1e = #E6F1FB
     * Avertissement txt = --e-global-color-e6660d2 = #9F2D00
     * Avertissement bg  = --e-global-color-e028961 = #FFD6A7
     * ──────────────────────────────────────────────────────── */
    --rc-navy:        var(--e-global-color-accent,    #274769);
    --rc-green:       var(--e-global-color-af0dd0e,   #016630);
    --rc-green-light: var(--e-global-color-dad98bc,   #B9F8CF);
    --rc-border:      var(--e-global-color-e059b45,   #EBEBEB);
    --rc-bg:          var(--e-global-color-b8078b6,   #F8F8F8);
    --rc-info-dark:   var(--e-global-color-c419c1a,   #0C447C);
    --rc-info-light:  var(--e-global-color-af45f1e,   #E6F1FB);
    --rc-warn-text:   var(--e-global-color-e6660d2,   #9F2D00);
    --rc-warn-bg:     var(--e-global-color-e028961,   #FFD6A7);
    --rc-orange:      var(--e-global-color-d71f0ea,   #CE7B4A);
    /* Alias pour compatibilité interne */
    --rc-accent:      var(--rc-navy);
    --rc-accent-dark: var(--rc-navy);
    --rc-bg-green:    var(--rc-green-light);
}

/* =========================================================
 * LOADING
 * ======================================================= */

.rc-calc__loading {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* =========================================================
 * CARTE FORMULAIRE
 * ======================================================= */

.rc-calc__form-card {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* =========================================================
 * CHAMPS
 * ======================================================= */

.rc-calc__field {
    margin-bottom: 1.1rem;
}

.rc-calc__field:last-child {
    margin-bottom: 0;
}

.rc-calc__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 7px;
}

/* =========================================================
 * PILLS (voies + variantes)
 * ======================================================= */

.rc-calc__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rc-calc__pill {
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--rc-border);
    cursor: pointer;
    color: #555;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
    line-height: 1.4;
}

.rc-calc__pill:hover {
    border-color: var(--rc-accent);
    color: var(--rc-accent);
}

.rc-calc__pill--active {
    background: var(--rc-green) !important;
    background: var(--rc-accent) !important;
    border-color: var(--rc-green) !important;
    border-color: var(--rc-accent) !important;
    color: #fff !important;
    font-weight: 600;
}

.rc-calc__pill:not(.rc-calc__pill--active):not(.rc-calc__pill--inactive):hover {
    border-color: var(--rc-green);
    border-color: var(--rc-accent);
    color: var(--rc-green);
    color: var(--rc-accent);
    background: #fff;
}

.rc-calc__pill--variante {
    font-size: 12px;
    padding: 4px 11px;
    background: #f5f5f3;
}

.rc-calc__pill--variante.rc-calc__pill--active {
    background: var(--rc-info-light);
    border-color: var(--rc-info-dark);
    color: #0c447c;
}

/* Sous-sélecteur variantes */
.rc-calc__variantes {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8f8f6;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
}

.rc-calc__variantes.is-visible {
    display: block;
}

.rc-calc__sub-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    display: block;
}

/* =========================================================
 * TOGGLE DIRECTION
 * ======================================================= */

.rc-calc__direction {
    display: inline-flex;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.rc-calc__dir-btn {
    font-size: 13px;
    padding: 8px 20px;
    cursor: pointer;
    color: #555;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.12s, color 0.12s;
    line-height: 1;
    white-space: nowrap;
}

.rc-calc__dir-btn + .rc-calc__dir-btn {
    border-left: 1px solid rgba(0,0,0,0.12);
}

.rc-calc__dir-btn:hover:not(.rc-calc__dir-btn--active) {
    background: #f5f5f3;
    color: #333;
}

/* Bouton actif : bleu info aligné sur les pills voies inactives */
.rc-calc__dir-btn--active {
    background: var(--rc-info-dark) !important;
    background: var(--rc-info-text, var(--rc-info-dark)) !important;
    color: #fff !important;
    font-weight: 600;
}

/* =========================================================
 * CHAMP TEXTE (autocomplete)
 * ======================================================= */

.rc-calc__input-wrap {
    position: relative;
}

.rc-calc__input-icon {
    display: none;
}

.rc-calc__input {
    width: 100%;
    padding: 8px 44px 8px 14px;
    border: 1px solid var(--rc-border);
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
    font-family: inherit;
}

.rc-calc__input:focus {
    border-color: var(--rc-accent);
    box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12);
}

.rc-calc__hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Dropdown autocomplete */
.rc-calc__autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px var(--rc-border);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.rc-calc__autocomplete.is-open {
    display: block;
}

.rc-calc__autocomplete-item {
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.1s;
}

.rc-calc__autocomplete-item:last-child {
    border-bottom: none;
}

.rc-calc__autocomplete-item:hover,
.rc-calc__autocomplete-item--active {
    background: #f0faf5;
}

.rc-calc__autocomplete-item svg {
    flex-shrink: 0;
    color: #aaa;
}

/* =========================================================
 * SLIDER DISTANCE
 * ======================================================= */

.rc-calc__slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-calc__slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.rc-calc__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rc-accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.rc-calc__slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.rc-calc__slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rc-accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.rc-calc__slider-val {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 52px;
    text-align: right;
}

/* =========================================================
 * BOUTON PRINCIPAL
 * ======================================================= */

.rc-calc__btn-submit {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--rc-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.rc-calc__btn-submit:hover {
    background: var(--rc-accent-dark);
}

.rc-calc__btn-submit:active {
    transform: scale(0.99);
}

.rc-calc__btn-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
 * ALERTE "TROP LOIN"
 * ======================================================= */

.rc-calc__warn {
    background: var(--rc-warn-bg);
    border: 1px solid var(--rc-warn-text);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--rc-warn-text);
    margin-bottom: 1rem;
    display: none;
    gap: 8px;
    align-items: flex-start;
}

.rc-calc__warn.is-visible {
    display: flex;
}

.rc-calc__warn svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =========================================================
 * BARRE RÉSULTATS
 * ======================================================= */

.rc-calc__results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.rc-calc__results-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.rc-calc__results-meta {
    font-size: 12px;
    color: #888;
}

/* Toggle liste / carte */
.rc-calc__view-toggle {
    display: flex;
    border: 1px solid var(--rc-border);
    border-radius: 8px;
    overflow: hidden;
}

.rc-calc__view-btn {
    font-size: 12px;
    padding: 6px 13px;
    cursor: pointer;
    color: #555;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.rc-calc__view-btn:hover {
    background: #f0f0ee;
}

.rc-calc__view-btn--active {
    background: #f5f5f3;
    color: #1a1a1a;
    font-weight: 600;
}

/* =========================================================
 * VUE CARTE LEAFLET
 * ======================================================= */

.rc-calc__map {
    height: 320px;
    border-radius: 10px;
    border: 1px solid var(--rc-border);
    margin-bottom: 1rem;
    display: none;
    overflow: hidden;
}

.rc-calc__map.is-visible {
    display: block;
}

/* Popup Leaflet */
.rc-calc-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    min-width: 160px;
}

.rc-calc-popup__name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.rc-calc-popup__type {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.rc-calc-popup__link {
    display: inline-block;
    font-size: 12px;
    color: var(--rc-accent);
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--rc-accent);
    border-radius: 6px;
    margin-top: 4px;
    transition: background 0.15s;
}

.rc-calc-popup__link:hover {
    background: var(--rc-bg-green);
}

/* Marqueur personnalisé */
.rc-calc-marker {
    background: var(--rc-accent);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.rc-calc-marker--featured {
    background: var(--rc-info-dark);
}

/* =========================================================
 * LISTE HÉBERGEMENTS
 * ======================================================= */

.rc-calc__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-calc__heb-card {
    background: #fff;
    border: 1px solid var(--rc-border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.rc-calc__heb-card:hover {
    border-color: var(--rc-accent);
    box-shadow: 0 2px 8px rgba(15, 110, 86, 0.1);
}

.rc-calc__heb-card--featured {
    border-color: var(--rc-accent);
    border-width: 1.5px;
}

/* En-tête carte hébergement */
.rc-calc__heb-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rc-calc__heb-km {
    font-size: 11px;
    font-weight: 600;
    color: var(--rc-accent);
    background: var(--rc-bg-green);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.rc-calc__heb-km--retour {
    color: var(--rc-info-dark);
    background: var(--rc-info-light);
}

.rc-calc__heb-info {
    flex: 1;
    min-width: 0;
}

.rc-calc__heb-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rc-calc__heb-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.rc-calc__featured-badge {
    font-size: 10px;
    background: var(--rc-bg-green);
    color: var(--rc-accent-dark);
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.rc-calc__heb-loc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.rc-calc__heb-price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

.rc-calc__heb-price small {
    font-size: 10px;
    color: #aaa;
    font-weight: 400;
    display: block;
    text-align: right;
}

/* Tags services */
.rc-calc__tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.rc-calc__tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid var(--rc-border);
    color: #666;
    white-space: nowrap;
}

.rc-calc__tag--type-gite        { background: #eaf3de; border-color: #639922; color: #3b6d11; }
.rc-calc__tag--type-chambre      { background: var(--rc-info-light); border-color: #378add; color: var(--rc-info-dark); }
.rc-calc__tag--type-auberge      { background: #eeedfe; border-color: #7f77dd; color: #3c3489; }
.rc-calc__tag--type-hotel        { background: #fbeaf0; border-color: #d4537e; color: #993556; }
.rc-calc__tag--type-camping      { background: #eaf3de; border-color: #97c459; color: #3b6d11; }
.rc-calc__tag--type-religieux    { background: var(--rc-warn-bg); border-color: var(--rc-warn-text); color: #854f0b; }
.rc-calc__tag--type-insolite     { background: #faece7; border-color: #d85a30; color: #712b13; }
.rc-calc__tag--pmr               { background: var(--rc-warn-bg); border-color: var(--rc-warn-text); color: #854f0b; }
.rc-calc__tag--cb                { background: var(--rc-info-light); border-color: #378add; color: var(--rc-info-dark); }

/* Indicateur mois d'ouverture */
.rc-calc__months {
    display: flex;
    gap: 2px;
    margin-top: 7px;
}

.rc-calc__month {
    width: 18px;
    height: 5px;
    border-radius: 2px;
    background: #e8e8e6;
    flex-shrink: 0;
}

.rc-calc__month--open {
    background: #1d9e75;
}

/* Pied de carte hébergement */
.rc-calc__heb-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    gap: 8px;
    flex-wrap: wrap;
}

.rc-calc__heb-capacity {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rc-calc__heb-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.rc-calc__btn-action {
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid var(--rc-border);
    background: #fff;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.12s, border-color 0.12s;
    font-family: inherit;
    white-space: nowrap;
}

.rc-calc__btn-action:hover {
    background: #f5f5f3;
}

.rc-calc__btn-action--wa {
    background: var(--rc-bg-green);
    border-color: var(--rc-accent);
    color: var(--rc-accent-dark);
}

.rc-calc__btn-action--wa:hover {
    background: #c8eddf;
}

/* =========================================================
 * PAGINATION "VOIR PLUS"
 * ======================================================= */

.rc-calc__more-btn {
    width: 100%;
    padding: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--rc-border);
    background: #fff;
    color: #333;
    margin-top: 0.75rem;
    transition: background 0.12s;
    font-family: inherit;
}

.rc-calc__more-btn:hover {
    background: #f5f5f3;
}

/* =========================================================
 * ÉTAT VIDE
 * ======================================================= */

.rc-calc__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #888;
    font-size: 14px;
    display: none;
}

.rc-calc__empty.is-visible {
    display: block;
}

.rc-calc__empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* =========================================================
 * SPINNER
 * ======================================================= */

.rc-calc__spinner {
    display: none;
    justify-content: center;
    padding: 1.5rem;
}

.rc-calc__spinner.is-visible {
    display: flex;
}

.rc-calc__spinner::after {
    content: "";
    width: 28px;
    height: 28px;
    border: 3px solid var(--rc-bg-green);
    border-top-color: var(--rc-accent);
    border-radius: 50%;
    animation: rc-spin 0.7s linear infinite;
}

@keyframes rc-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
 * RESPONSIVE MOBILE
 * ======================================================= */

@media (max-width: 480px) {
    .rc-calc__form-card {
        padding: 1rem;
    }

    .rc-calc__heb-top {
        flex-wrap: wrap;
    }

    .rc-calc__heb-price {
        text-align: left;
    }

    .rc-calc__heb-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .rc-calc__results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rc-calc__direction {
        width: 100%;
    }

    .rc-calc__dir-btn {
        flex: 1;
        justify-content: center;
    }
}

/* =========================================================
 * CTA FICHE (remplace les boutons de contact)
 * ======================================================= */

.rc-calc__heb-cta {
    font-size: 12px;
    color: var(--rc-accent);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

/* =========================================================
 * POPUP CARTE ENRICHIE
 * ======================================================= */

.rc-calc-popup__meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.rc-calc-popup__price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.rc-calc-popup__tags {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

/* =========================================================
 * VUE TABLEAU
 * ======================================================= */

.rc-calc__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rc-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    /* Ombre droite pour indiquer le scroll */
    background:
        linear-gradient(to right, white 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.08), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.08), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
}

.rc-calc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.rc-calc__table thead th {
    background: #f8f8f6;
    padding: 8px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--rc-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.rc-calc__table thead th:first-child,
.rc-calc__table thead th.rc-calc__th-sticky {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f0f0ee;
    min-width: 160px;
    box-shadow: 2px 0 4px rgba(0,0,0,.06);
}

.rc-calc__table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.1s;
}

.rc-calc__table tbody tr:last-child { border-bottom: none; }
.rc-calc__table tbody tr:hover { background: #f8faf9; }
.rc-calc__tr--featured { background: #f5fbf8; }

.rc-calc__table td {
    padding: 9px 10px;
    vertical-align: middle;
    color: #333;
    text-align: center;
}

.rc-calc__table td:first-child,
.rc-calc__td-sticky {
    text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,.06);
    z-index: 1;
}

.rc-calc__table tbody tr:hover .rc-calc__td-sticky { background: #f8faf9; }
.rc-calc__tr--featured .rc-calc__td-sticky { background: #f5fbf8; }

.rc-calc__table-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.rc-calc__table-link:hover {
    color: var(--rc-accent);
    text-decoration: underline;
}

.rc-calc__td-km {
    font-size: 12px;
    font-weight: 600;
    color: var(--rc-accent);
    white-space: nowrap;
}

.rc-calc__td-price { font-weight: 600; white-space: nowrap; }
.rc-calc__td-ouv   { font-size: 11px; white-space: nowrap; }
.rc-calc__td-cap   { white-space: nowrap; color: #555; font-weight: 600; }

/* Colonnes booléennes ✓ / ✕ */
.rc-calc__td-bool {
    font-size: 13px;
    font-weight: 700;
    padding: 9px 6px;
    min-width: 36px;
}

.rc-calc__td-bool--yes {
    color: var(--rc-accent);
}

.rc-calc__td-bool--no {
    color: #ddd;
    font-weight: 400;
}

.rc-calc__td-bool small {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: #888;
    margin-top: 1px;
}

/* =========================================================
 * LABEL OUVERTURE LISIBLE
 * ======================================================= */

.rc-calc__months {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 7px;
}

.rc-calc__months-label {
    font-size: 10px;
    color: #666;
    margin-left: 5px;
    white-space: nowrap;
}

/* =========================================================
 * GROUPES DE TAGS CATÉGORISÉS
 * ======================================================= */

.rc-calc__tag-group {
    margin-top: 8px;
}

.rc-calc__tag-group-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.rc-calc__tag-group .rc-calc__tags {
    margin-top: 0;
}

/* =========================================================
 * BOUTON GÉOLOCALISATION
 * ======================================================= */

.rc-calc__geo-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--rc-border);
    background: #fff;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.rc-calc__geo-btn:hover {
    color: var(--rc-accent);
    border-color: var(--rc-accent);
    background: var(--rc-bg-green);
}

/* Spinner animation pendant la géolocalisation */
.rc-calc__geo-btn.is-loading {
    pointer-events: none;
    color: var(--rc-accent);
}

.rc-calc__geo-btn.is-loading svg {
    animation: rc-spin 1s linear infinite;
}

/* =========================================================
 * TOGGLE DISPONIBLE CE SOIR
 * ======================================================= */

.rc-calc__soir-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #c2d9f0;
    border-color: var(--rc-info-bg, #c2d9f0);
    background: var(--rc-info-light);
    background: var(--rc-info-bg, var(--rc-info-light));
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.rc-calc__soir-toggle:hover {
    border-color: var(--rc-info-dark);
    border-color: var(--rc-info-text, var(--rc-info-dark));
}

.rc-calc__soir-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rc-calc__soir-check {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #ddd;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s;
}

.rc-calc__soir-check::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.rc-calc__soir-toggle input:checked ~ .rc-calc__soir-check {
    background: var(--rc-info-dark);
    background: var(--rc-info-text, var(--rc-info-dark));
}

.rc-calc__soir-toggle input:checked ~ .rc-calc__soir-check::after {
    transform: translateX(16px);
}

.rc-calc__soir-text {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}

.rc-calc__soir-text small {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

/* =========================================================
 * DERNIÈRE MISE À JOUR
 * ======================================================= */

.rc-calc__heb-loc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================================
 * LÉGENDE TABLEAU
 * ======================================================= */

.rc-calc__table-legend {
    padding: 10px 14px;
    font-size: 11px;
    color: #888;
    background: #fafaf8;
    border-bottom: 1px solid var(--rc-border);
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rc-calc__legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rc-calc__legend-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #999;
}

.rc-calc__legend-icons span {
    white-space: nowrap;
    font-size: 11px;
}

.rc-calc__legend-yes {
    color: var(--rc-green);
    color: var(--rc-accent, var(--rc-green));
    font-weight: 700;
}

.rc-calc__legend-no {
    color: #ccc;
    font-weight: 400;
}

/* =========================================================
 * QUOTA VISITEURS
 * ======================================================= */

.rc-calc__quota-wrap {
    margin: 8px 0 10px;
}

.rc-calc__quota-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted, #666);
    margin-bottom: 4px;
}

.rc-calc__quota-text { color: #666; }

.rc-calc__quota-label {
    font-weight: 500;
    color: var(--rc-green);
}

.rc-calc__quota-bar {
    height: 4px;
    background: var(--rc-border);
    border-radius: 2px;
    overflow: hidden;
}

.rc-calc__quota-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--rc-green);
    transition: width 0.4s ease, background 0.3s;
}

/* =========================================================
 * BLOC MEMBRES (formulaire non-connecté)
 * ======================================================= */

.rc-calc__membres-bloc {
    margin-top: 10px;
    background: var(--rc-info-light);
    border: 1px solid #b5d4f4;
    border-radius: 10px;
    padding: 14px;
}

.rc-calc__membres-titre {
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-info-dark);
    margin-bottom: 8px;
}

.rc-calc__membres-liste {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--rc-info-dark);
    line-height: 1.8;
}

.rc-calc__membres-liste li::before {
    content: "✓ ";
    font-weight: 600;
}

.rc-calc__membres-btn {
    display: block;
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    background: var(--rc-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.15s;
}

.rc-calc__membres-btn:hover { opacity: 0.88; color: #fff !important; text-decoration: none; }

.rc-calc__membres-sub {
    text-align: center;
    font-size: 11px;
    color: var(--rc-info-dark);
    opacity: 0.7;
    margin-top: 6px;
}

/* =========================================================
 * OVERLAY RÉSULTATS LIMITÉS
 * ======================================================= */

.rc-calc__heb-card--ghost {
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
    filter: blur(2px);
}

.rc-calc__membres-cta {
    text-align: center;
    padding: 16px 14px;
    border: 1.5px dashed #b5d4f4;
    border-radius: 10px;
    background: var(--rc-info-light);
    margin-top: 4px;
}

.rc-calc__membres-cta-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-info-dark);
    margin-bottom: 4px;
}

.rc-calc__membres-cta-text {
    font-size: 11px;
    color: var(--rc-info-dark);
    opacity: 0.75;
    margin-bottom: 10px;
}

.rc-calc__membres-cta-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 8px;
    background: var(--rc-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}

.rc-calc__membres-cta-btn:hover { opacity: 0.88; color: #fff !important; text-decoration: none; }

.rc-calc__membres-cta-sub {
    font-size: 10px;
    color: var(--rc-info-dark);
    opacity: 0.6;
    margin-top: 6px;
}

/* Badge "Membres" sur les boutons de vue */
.rc-calc__vbtn-badge {
    position: absolute;
    top: -7px;
    right: -3px;
    background: var(--rc-navy);
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 500;
}

/* =========================================================
 * MODAL INVITATION MEMBRES
 * ======================================================= */

.rc-calc__modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.rc-calc__modal.is-open {
    display: flex;
}

.rc-calc__modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 22px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.15);
}

.rc-calc__modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.rc-calc__modal-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.rc-calc__modal-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--rc-navy);
    margin-bottom: 8px;
}

.rc-calc__modal-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
}

.rc-calc__modal-btn {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    background: var(--rc-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
    transition: opacity 0.15s;
}

.rc-calc__modal-btn:hover { opacity: 0.88; color: #fff !important; text-decoration: none; }

.rc-calc__modal-sub {
    font-size: 11px;
    color: #aaa;
}

/* =========================================================
 * CORRECTIONS COULEURS FINALES
 * ======================================================= */

/* Bouton submit : bleu marine + texte blanc — identique connecté/déconnecté */
.rc-calc__btn-submit {
    background: var(--rc-navy, #274769) !important;
    color: #fff !important;
    opacity: 1;
}

.rc-calc__btn-submit:hover:not(:disabled) {
    opacity: 0.88 !important;
}

.rc-calc__btn-submit:disabled {
    background: #aaa !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 1;
}

/* Slider thumb : bleu marine */
.rc-calc__slider::-webkit-slider-thumb {
    background: var(--rc-navy) !important;
}

.rc-calc__slider::-moz-range-thumb {
    background: var(--rc-navy) !important;
}

/* Spinner : bleu marine */
.rc-calc__spinner::after {
    border-top-color: var(--rc-navy) !important;
}

/* Distances en vert ResaCamino */
.rc-calc__heb-km,
.rc-calc__td-km {
    color: var(--rc-green) !important;
    background: var(--rc-green-light) !important;
}

/* Mois ouverts en vert */
.rc-calc__month--open, .m.open {
    background: var(--rc-green) !important;
}
