/**
 * Page Tarifs — ajustements de contexte (bloc pricing réutilisé)
 *
 * @package Loop_Formation
 */

.loop-tarifs-page .pricing-section {
    padding-top: 48px;
}

.loop-tarifs-page .site-main {
    padding-bottom: 0;
}

/* ============ Rappel comparateur (Loop vs Digiforma · Dendreo · Ypareo) ============ */
.loop-tarifs-compare {
    padding: 80px 24px 64px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.loop-tarifs-compare::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 138, 76, 0.12), transparent 70%);
    pointer-events: none;
}

.loop-tarifs-compare::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(29, 158, 117, 0.1), transparent 70%);
    pointer-events: none;
}

.loop-tarifs-compare__inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

.loop-tarifs-compare__head {
    text-align: center;
    margin-bottom: 40px;
}

.loop-tarifs-compare__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff8a4c;
    background: rgba(255, 138, 76, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 0 14px;
}

.loop-tarifs-compare__title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0c1222;
    margin: 0 auto 14px;
    max-width: 26ch;
}

.loop-tarifs-compare__title em {
    font-style: normal;
    color: #ff8a4c;
}

.loop-tarifs-compare__lead {
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.65;
    color: #3d4a63;
}

.loop-tarifs-compare__stats {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .loop-tarifs-compare__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .loop-tarifs-compare__stats { grid-template-columns: 1fr; }
}

.loop-tarifs-compare__stat {
    background: #fff;
    border: 1px solid rgba(12, 18, 34, 0.08);
    border-radius: 18px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 16px 36px -22px rgba(12, 18, 34, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.loop-tarifs-compare__stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -22px rgba(12, 18, 34, 0.2);
}

.loop-tarifs-compare__stat.is-loop {
    background: linear-gradient(165deg, #1d9e75, #0e7d67);
    color: #fff;
    border-color: #1d9e75;
    box-shadow: 0 28px 56px -20px rgba(29, 158, 117, 0.45);
}

.loop-tarifs-compare__stat.is-loop::before {
    content: "★ Recommandé";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff8a4c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.loop-tarifs-compare__stat-brand {
    font-size: 13px;
    font-weight: 800;
    color: #64708b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.loop-tarifs-compare__stat.is-loop .loop-tarifs-compare__stat-brand {
    color: rgba(255, 255, 255, 0.85);
}

.loop-tarifs-compare__stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0c1222;
    margin: 8px 0 0;
}

.loop-tarifs-compare__stat.is-loop .loop-tarifs-compare__stat-num {
    color: #fff;
}

.loop-tarifs-compare__stat-unit {
    font-size: 12px;
    font-weight: 800;
    color: #64708b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.loop-tarifs-compare__stat.is-loop .loop-tarifs-compare__stat-unit {
    color: rgba(255, 255, 255, 0.78);
}

.loop-tarifs-compare__stat-note {
    font-size: 12px;
    font-weight: 600;
    color: #3d4a63;
    line-height: 1.45;
}

.loop-tarifs-compare__stat.is-loop .loop-tarifs-compare__stat-note {
    color: rgba(255, 255, 255, 0.92);
}

/* Lien cliquable enveloppant la carte concurrent → page alternative dédiée */
.loop-tarifs-compare__stat-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    margin: -22px -20px;
    padding: 22px 20px;
    border-radius: 18px;
    transition: background 0.18s ease;
}

.loop-tarifs-compare__stat-link:hover {
    background: rgba(255, 138, 76, 0.05);
}

.loop-tarifs-compare__stat-cta {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #ff8a4c;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease;
}

.loop-tarifs-compare__stat:hover .loop-tarifs-compare__stat-cta {
    transform: translateX(4px);
}

.loop-tarifs-compare__source {
    text-align: center;
    font-size: 12px;
    color: #64708b;
    margin: 0 0 28px;
    font-style: italic;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.loop-tarifs-compare__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
