/* =========================================================
   PAGE PARRAINAGE (/parrainage)
   Chargée APRÈS br2.css, home-charte.css et solutions-charte.css.
   Vert nuit #0B2B29 · Vert titres #0A5048 · Vert enerev #0D8A7E · Turquoise #63D3C2
   Vert d'eau #CFE6E1 · Vert pâle #F0F8F6 · Crème #F7F3EA · Sable #E4DED3
   Encre #1B1C1A · Gris ardoise #4A5350 · Gris doux #6D7370

   Rythme des fonds : en-tête blanc > récompenses NUIT > étapes crème > parrain / filleul blanc
   > simulateur crème > avis blanc > FAQ crème > règlement blanc > bandeau final NUIT
   ========================================================= */

/* ================= EN-TÊTE ================= */
.parr-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    color: #0A5048;
    background: #F0F8F6;
    border: 1px solid #CFE6E1;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sol-parr .hero-title .brand-name {
    font-weight: inherit;
}

.parr-hero-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.parr-choice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    color: #1B1C1A;
    background: #fff;
    border: 1px solid #CFE6E1;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(11, 43, 41, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.parr-choice:hover {
    color: #1B1C1A;
    border-color: #0D8A7E;
    box-shadow: 0 12px 28px rgba(11, 43, 41, 0.14);
    transform: translateY(-2px);
}

.parr-choice__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: #0D8A7E;
    border-radius: 50%;
}

.parr-choice__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.parr-choice__kicker {
    color: #6D7370;
    font-size: 0.78rem;
    font-weight: 700;
}

.parr-choice__title {
    color: #0A5048;
    font-size: 1rem;
    font-weight: 800;
}

.parr-choice__arrow {
    margin-left: auto;
    color: #0D8A7E;
}

/* bulles or sur les maisons voisines de la photo */
.parr-hero-visual {
    position: relative;
}

.parr-pin {
    position: absolute;
    top: var(--y);
    left: var(--x);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(34px, 3.4vw, 46px);
    height: clamp(34px, 3.4vw, 46px);
    color: #0B2B29;
    background: #F5A623;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(11, 43, 41, 0.35);
    font-size: clamp(0.9rem, 1.3vw, 1.15rem);
    opacity: 0;
    transform: translate(-50%, calc(-100% - 9px)) scale(0.4);
}

/* pointe de la bulle, dirigée vers le toit */
.parr-pin::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 9px solid #fff;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    transform: translateX(-50%);
}

.parr-pin::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    z-index: 1;
    width: 0;
    height: 0;
    border-top: 6px solid #F5A623;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: translateX(-50%);
}

.parr-hero-visual.is-visible .parr-pin {
    animation: parr-pin-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) forwards,
               parr-pin-float 3s ease-in-out calc(var(--d) + 0.5s) infinite;
}

@keyframes parr-pin-in {
    to {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 9px)) scale(1);
    }
}

@keyframes parr-pin-float {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 9px)) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 15px)) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .parr-pin,
    .parr-hero-visual.is-visible .parr-pin {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 9px));
        animation: none;
    }
}

/* ================= RÉCOMPENSES (vert nuit) ================= */
.parr-rewards {
    background: #0B2B29;
}

.parr-rewards .section-header h2 {
    color: #fff;
}

.parr-rewards__lead {
    max-width: 680px;
    margin: 0.75rem auto 0;
    color: #CFE6E1;
    font-size: 1.05rem;
}

.parr-rewards__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.parr-reward {
    padding: 2rem 1.75rem;
    text-align: center;
    background: #F0F8F6;
    border: 1px solid #CFE6E1;
    border-radius: 18px;
}

.parr-reward--alt {
    background: #F7F3EA;
    border-color: #E4DED3;
}

.parr-reward__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.9rem;
    color: #0B2B29;
    background: #63D3C2;
    border-radius: 50%;
    font-size: 1.4rem;
}

.parr-reward__eyebrow {
    display: block;
    color: #0D8A7E;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sol-page .parr-reward__from {
    margin: 0.9rem 0 0;
    color: #4A5350;
    font-size: 0.95rem;
}

.sol-page .parr-reward__amount {
    margin: 0;
    color: #0A5048;
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
}

.sol-page .parr-reward__desc {
    margin: 0.5rem 0 0;
    color: #4A5350;
}

.parr-table-card {
    max-width: 900px;
    margin: 1.75rem auto 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 18px;
}

.parr-table {
    width: 100%;
    border-collapse: collapse;
}

.parr-table caption {
    caption-side: top;
    padding: 0 0 0.9rem;
    color: #0A5048;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: left;
}

.parr-table th,
.parr-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #E4DED3;
    text-align: left;
}

.parr-table thead th {
    color: #fff;
    background: #0A5048;
    font-size: 0.9rem;
}

.parr-table thead th:first-child { border-top-left-radius: 10px; }
.parr-table thead th:last-child { border-top-right-radius: 10px; }

.parr-table tbody th {
    color: #1B1C1A;
    font-weight: 600;
}

.parr-table tbody th i {
    width: 1.4rem;
    margin-right: 0.5rem;
    color: #0D8A7E;
    text-align: center;
}

.parr-table td {
    color: #0A5048;
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
}

.parr-table tbody tr:nth-child(even) th,
.parr-table tbody tr:nth-child(even) td {
    background: #F0F8F6;
}

.sol-page .parr-table-card__note {
    margin: 1rem 0 0;
    color: #6D7370;
    font-size: 0.88rem;
    line-height: 1.5;
}

.parr-table-card__note a {
    color: #0D8A7E;
    font-weight: 700;
}

/* ================= ÉTAPES (crème) ================= */
.sol-parr .process {
    background: #F7F3EA;
}

.sol-parr .process .section-header h2 {
    margin-bottom: 1.25rem;
}

.sol-parr #process-txt {
    text-align: center;
}

.sol-parr .parr-steps {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
}

.sol-parr .parr-steps .txt-step {
    color: #0A5048;
    font-size: 1rem;
}

.sol-parr .parr-steps .time-step {
    padding: 0 0.6rem;
    color: #4A5350;
}

/* ================= PARRAIN / FILLEUL (blanc) ================= */
.parr-roles {
    background: #fff;
}

.parr-roles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.parr-role {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #F0F8F6;
    border: 1px solid #CFE6E1;
    border-radius: 18px;
    scroll-margin-top: 110px;
}

.parr-role--filleul {
    background: #F7F3EA;
    border-color: #E4DED3;
}

.parr-role__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.8rem;
    color: #fff;
    background: #0A5048;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.parr-role__badge .brand-name {
    color: #63D3C2;
}

.parr-role h2 {
    margin: 0 0 1rem;
    color: #0A5048;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 700;
}

.parr-role__list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    counter-reset: parr;
}

.parr-role__list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 2.4rem;
    color: #4A5350;
    line-height: 1.55;
    counter-increment: parr;
}

.parr-role__list li::before {
    content: counter(parr);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    color: #fff;
    background: #0D8A7E;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.parr-role__list strong {
    color: #1B1C1A;
}

/* outil de partage */
.parr-share {
    margin-top: auto;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #CFE6E1;
    border-radius: 14px;
}

.parr-share__label {
    display: block;
    margin-bottom: 0.45rem;
    color: #0A5048;
    font-size: 0.9rem;
    font-weight: 700;
}

.parr-share__row {
    display: flex;
    gap: 0.5rem;
}

.parr-share__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    color: #1B1C1A;
    background: #F0F8F6;
    border: 1px solid #CFE6E1;
    border-radius: 10px;
    font-size: 0.9rem;
}

.parr-share__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    color: #fff;
    background: #0D8A7E;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.parr-share__copy:hover,
.parr-share__copy.is-copied {
    background: #0A5048;
}

.parr-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.parr-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    color: #0A5048;
    background: #fff;
    border: 1px solid #0D8A7E;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.parr-share__btn:hover {
    color: #fff;
    background: #0D8A7E;
}

.sol-page .parr-share__hint {
    margin: 0.8rem 0 0;
    color: #6D7370;
    font-size: 0.8rem;
    line-height: 1.45;
}

.sol-page .parr-role__note {
    margin: 1.25rem 0 0;
    color: #6D7370;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ================= SIMULATEUR (crème) ================= */
.parr-sim {
    background: #F7F3EA;
}

.parr-sim .section-header {
    margin-bottom: 2rem;
}

.parr-sim__card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #E4DED3;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(11, 43, 41, 0.08);
}

.parr-sim__label {
    display: block;
    margin-bottom: 0.6rem;
    color: #0A5048;
    font-size: 1rem;
    font-weight: 700;
}

.parr-sim__label output {
    color: #0D8A7E;
    font-size: 1.2rem;
    font-weight: 800;
}

.parr-sim input[type="range"] {
    width: 100%;
    accent-color: #0D8A7E;
}

.parr-sim__types {
    margin: 1.5rem 0 0;
    padding: 0;
    border: 0;
}

.parr-sim__types legend {
    float: none;
    width: auto;
}

.parr-sim__types label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 1rem 0.5rem 0;
    color: #4A5350;
    cursor: pointer;
}

.parr-sim__types input {
    accent-color: #0D8A7E;
}

.parr-sim__result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1rem;
    text-align: center;
    background: #0B2B29;
    border-radius: 16px;
}

.parr-sim__result-label {
    color: #63D3C2;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.parr-sim__result-amount {
    margin: 0.4rem 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
}

.parr-sim__result-note {
    color: #CFE6E1;
    font-size: 0.85rem;
}

/* ================= FAQ (crème) ================= */
.sol-parr .faq {
    background: #F7F3EA;
}

/* ================= RÈGLEMENT (blanc) ================= */
.parr-rules {
    background: #fff;
    scroll-margin-top: 110px;
}

.parr-rules .section-header {
    margin-bottom: 2rem;
}

.sol-page .parr-rules__version {
    margin: 0.5rem 0 0;
    color: #6D7370;
    font-size: 0.9rem;
}

.parr-rules__list {
    max-width: 900px;
    margin: 0 auto;
}

.parr-rule {
    margin-bottom: 0.6rem;
    background: #F0F8F6;
    border: 1px solid #CFE6E1;
    border-radius: 12px;
}

.parr-rule > summary {
    position: relative;
    padding: 0.9rem 3rem 0.9rem 1.1rem;
    color: #0A5048;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.parr-rule > summary::-webkit-details-marker {
    display: none;
}

.parr-rule > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.1rem;
    color: #0D8A7E;
    font-size: 1.3rem;
    font-weight: 700;
    transform: translateY(-50%);
}

.parr-rule[open] > summary::after {
    content: "−";
}

.parr-rule p {
    margin: 0;
    padding: 0 1.1rem 0.9rem;
    color: #4A5350;
    font-size: 0.93rem;
    line-height: 1.6;
}

.parr-rule a {
    color: #0D8A7E;
}

/* ================= BANDEAU FINAL ================= */
.cta-band__eyebrow .brand-name {
    text-transform: none;
}

/* ================= TABLETTE / MOBILE ================= */
@media (max-width: 900px) {
    .parr-roles__grid,
    .parr-sim__card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .parr-hero-choices,
    .parr-rewards__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sol-parr .parr-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .parr-table-card {
        padding: 1rem;
    }

    .parr-table th,
    .parr-table td {
        padding: 0.65rem 0.5rem;
        font-size: 0.88rem;
    }

    .parr-table td {
        font-size: 1rem;
    }

    .parr-table tbody th i {
        display: none;
    }

    .parr-role,
    .parr-sim__card {
        padding: 1.4rem;
    }
}
