/**
 * Khedma — classes utilitaires (remplace les style="" statiques des templates).
 * Valeurs dynamiques : variables CSS (--stars-fill, --progress-pct, --pct).
 */

/* --- Espacement --- */
.mt-05 { margin-top: 0.5rem; }
.mt-065 { margin-top: 0.65rem; }
.mt-075 { margin-top: 0.75rem; }
.mt-085 { margin-top: 0.85rem; }
.mt-1 { margin-top: 1rem; }
.mt-125 { margin-top: 1.25rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-225 { margin-top: 2.25rem; }
.mt-25 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }
.mb-035 { margin-bottom: 0.35rem; }
.mb-075 { margin-bottom: 0.75rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-125 { margin-bottom: 1.25rem; }
.m-0 { margin: 0; }
.my-page-title { margin: 0.5rem 0 1.5rem; }
.my-page-title-sm { margin: 0.5rem 0 1rem; }
.ml-auto { margin-left: auto; }

/* --- Sections / pages --- */
.page-hero-pad { padding: 1.5rem 0 0.5rem; }
.section-pt-0 { padding-top: 0; }
.section-mt-2 { margin-top: 2rem; }
.divider-my { margin: 2.5rem 0; }

/* --- Conteneurs --- */
.container-narrow { max-width: 720px; }
.container-form { max-width: 560px; }
.container-form-md { max-width: 780px; }

/* --- Typographie --- */
.page-title-hero { margin-top: 0.5rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.page-title-xl { margin-top: 0.75rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-title-form { margin-top: 0.65rem; }
.page-title-home { margin-top: 0.85rem; }
.text-h2-sm { font-size: 1.3rem; }
.text-h3 { font-size: 1.1rem; }
.text-h3-section { font-size: 1.05rem; }
.text-display-md { font-size: 1.5rem; font-family: var(--font-display); }
.text-sm { font-size: 0.85rem; }
.text-80 { font-size: 0.8rem; }
.text-center-mt-15 { text-align: center; margin-top: 1.5rem; }

/* --- Auth split (panneau latéral sombre) --- */
.auth-eyebrow-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.auth-side-title { margin: 1.25rem 0 0.5rem; }
.auth-side-lead { opacity: 0.85; }
.auth-form-title { font-size: 1.8rem; margin-bottom: 0.4rem; }
.auth-verify-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.auth-container-sm { max-width: 520px; }
.link-brand { color: var(--brand); font-weight: 700; }
.link-brand-2 { color: var(--brand-2); }
.otp-code-demo { color: var(--brand-2); font-family: var(--font-mono); }
.verify-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--brand-grad);
    color: white;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-glow);
}
.form-help-flush { margin-top: 0; margin-bottom: 0.65rem; }
.admin-danger-link { color: #fca5a5; }
.admin-cell-truncate { max-width: 340px; display: block; }
.admin-cell-truncate-sm { max-width: 320px; display: block; }
.avatar-cover { object-fit: cover; }
.kpi-grid-thirds { grid-template-columns: repeat(3, 1fr); }
.text-xs { font-size: 0.78rem; }
.text-88 { font-size: 0.88rem; }
.text-90 { font-size: 0.9rem; }
.text-95 { font-size: 0.95rem; }
.text-105 { font-size: 1.05rem; }
.text-soft-block { color: var(--text-soft); }
.lead-tight { margin-top: 0.5rem; font-size: 1rem; }
.lead-max { margin-top: 1rem; max-width: 720px; }
.lead-max-sm { margin-top: 0.65rem; max-width: 640px; }
.lead-max-cta { color: var(--text-soft); margin-top: 0.65rem; max-width: 660px; margin-left: auto; margin-right: auto; }
.copy-soft { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.5rem; line-height: 1.5; }
.copy-soft-sm { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.45rem; line-height: 1.5; }
.rating-muted { font-weight: 400; }
.section-title-flush { margin: 0; }
.soft-mt { margin: 0.35rem 0 0; font-size: 0.9rem; }

/* --- Layout --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.grid-span-all { grid-column: 1 / -1; }
.row-between-end {
    justify-content: space-between;
    margin-bottom: 1.25rem;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.row-gap-05 { gap: 0.5rem; }
.row-gap-06 { gap: 0.6rem; }
.row-gap-075 { gap: 0.75rem; }
.actions-center {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-brand { margin-bottom: 1rem; }
.footer-tagline { margin-top: 0.75rem; max-width: 340px; }

/* --- Grilles --- */
.craft-grid-cities {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.bento-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bento-card-auto { grid-column: auto; }

/* --- Composants --- */
.craft-tile-left {
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
}
.craft-tile-left-sm { align-items: flex-start; text-align: left; padding: 1.35rem; }
.craft-label-left { text-align: left; margin: 0; }
.craft-meta-left { text-align: left; margin-top: 0.5rem; }
.kpi-value-sm { font-size: 1.1rem; }
.kpi-value-xs { font-size: 1rem; }
.form-card-mt { margin-top: 1.5rem; }
.glass-pad { padding: 1.25rem; }
.glass-pad-card { padding: 1.25rem; margin-bottom: 0.75rem; }
.summary-click { cursor: pointer; font-weight: 600; }
.profile-photo-mb { margin-bottom: 1.5rem; }
.upload-help-mb { margin: 0 0 0.75rem; font-size: 0.9rem; }
.admin-msg-cell { max-width: 280px; display: block; white-space: pre-wrap; }
.admin-empty-pad { padding: 2rem; }
.trust-cta-mt { margin-top: 1rem; }
.cta-actions-mt { margin-top: 1.5rem; }
.reveal-center-mt { text-align: center; margin-top: 1rem; }
.empty-hint-mt { margin-top: 0.65rem; font-size: 0.85rem; }
.empty-cta-mt { margin-top: 1rem; }
.search-hint-center { font-size: 1.05rem; margin-bottom: 1rem; }
.alert-mt { margin-top: 1rem; }
.alert-mb { margin-bottom: 1.5rem; }
.form-error-mt { margin-top: 0.75rem; }
.form-group-mt { margin-top: 1.25rem; }
.progress-mt { margin-top: 0.5rem; }
.section-head-mb { margin-bottom: 1rem; }
.report-muted { margin-top: 1rem; text-align: center; }
.review-date { font-size: 0.78rem; }
.review-meta { font-size: 0.85rem; margin-bottom: 0.35rem; }
.review-comment { color: var(--text-soft); }
.bio-mb { margin-bottom: 1rem; }
.modal-text { margin-top: 0.75rem; line-height: 1.65; }
.modal-actions { margin-top: 1.5rem; gap: 0.6rem; }

/* --- Valeurs dynamiques (seul style inline autorisé : --var) --- */
.provider-preview-stars-fill {
    width: var(--stars-fill, 0%);
}

.progress > span {
    width: var(--progress-pct, 0%);
}

.profile-completion-ring {
    --pct: 0;
}

/* --- Abonnement prestataire --- */
/* Popup bonus parrainage */
.referral-bonus-modal {
    z-index: 2100;
}

.referral-bonus-panel {
    max-width: 400px;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    border: 2px solid color-mix(in srgb, var(--brand) 35%, var(--border));
    background:
        linear-gradient(165deg, color-mix(in srgb, var(--brand) 12%, var(--bg-elev)) 0%, var(--bg-elev) 55%),
        var(--bg-elev);
    box-shadow:
        0 24px 60px rgba(15, 29, 61, .22),
        0 0 0 1px rgba(255, 255, 255, .4) inset;
}

.referral-bonus-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.referral-bonus-sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-2);
    opacity: .65;
    animation: referral-sparkle 2.4s ease-in-out infinite;
}

.referral-bonus-sparkles span:nth-child(1) { top: 12%; left: 14%; animation-delay: 0s; }
.referral-bonus-sparkles span:nth-child(2) { top: 18%; right: 16%; animation-delay: .4s; background: var(--pastel-rose); }
.referral-bonus-sparkles span:nth-child(3) { bottom: 28%; left: 20%; animation-delay: .8s; }
.referral-bonus-sparkles span:nth-child(4) { bottom: 22%; right: 18%; animation-delay: 1.2s; background: var(--pastel-sky); }

@keyframes referral-sparkle {
    0%, 100% { transform: scale(.6); opacity: .2; }
    50% { transform: scale(1.2); opacity: .9; }
}

.referral-bonus-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: .35rem;
    animation: referral-gift-bounce .9s var(--ease) .2s both;
}

@keyframes referral-gift-bounce {
    0% { transform: scale(.5) rotate(-8deg); opacity: 0; }
    70% { transform: scale(1.08) rotate(4deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.referral-bonus-eyebrow {
    margin: 0 0 .25rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
}

.referral-bonus-title {
    margin: 0 0 .65rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1.15;
}

.referral-bonus-lead {
    margin: 0 0 1rem;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.referral-bonus-reward {
    margin: 0 0 .45rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.65rem);
    font-weight: 800;
    line-height: 1;
    background: var(--brand-grad-cta);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.referral-bonus-expires {
    margin: 0 0 1.25rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    padding: .5rem .75rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface-2));
}

.referral-bonus-actions {
    display: flex;
    justify-content: center;
}

.referral-bonus-actions .btn {
    min-width: 11rem;
    border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
    .referral-bonus-sparkles span,
    .referral-bonus-icon {
        animation: none;
    }
}

.subscription-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.subscription-plan-card {
    padding: 1.25rem 1.5rem;
}

.subscription-plan-card--featured {
    border: 2px solid var(--brand, #4a9fc7);
}

.subscription-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.subscription-referral-code {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

.subscription-period {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.subscription-period-title {
    margin: 0 0 .35rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.subscription-period-plan {
    margin: 0 0 .85rem;
    font-size: .9rem;
}

.subscription-period-plan strong {
    color: var(--text);
}

.subscription-period-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.subscription-period-date {
    padding: .75rem .85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.subscription-period-date dt {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-soft);
}

.subscription-period-date dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 520px) {
    .subscription-period-dates {
        grid-template-columns: 1fr;
    }
}

.subscription-contact-block,
.subscription-referral-block,
.subscription-request-form {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.request-offer-pro-detail {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.request-offer-pro-desc {
    margin-top: 0.75rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.request-offer-pro-gallery {
    margin-top: 1.25rem;
    /* Grille compacte : voir style.css (.request-offer-pro-gallery) */
}

.request-offer-pro-contact {
    margin-top: 1.25rem;
}
