/* ==========================================================================
   Page des tarifs — components/library/sections/pricing.blade.php
   ========================================================================== */

@font-face {
    font-family: 'CNDJ Serif';
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/NotoSerifBold.ttf) format('truetype');
}

.pr {
    /* Noir et gris, avec l'orange et le vert du drapeau ivoirien en touches */
    --pr-accent: #F77F00;
    --pr-accent-strong: #e06f00;
    --pr-accent-deep: #b35600;
    --pr-accent-soft: #fff1e0;
    --pr-green: #009E60;
    --pr-green-deep: #00744a;
    --pr-green-soft: #e3f5ec;
    --pr-ink: #141414;
    --pr-muted: #6b6b6b;
    --pr-line: #e5e5e5;
    --pr-bg: #f6f6f6;
    --pr-dark-1: #0d0d0d;
    --pr-dark-2: #262626;
    --pr-ease: cubic-bezier(.22, 1, .36, 1);
    background: var(--pr-bg);
    color: var(--pr-ink);
    font-family: var(--font-family-base, "Open Sans", sans-serif);
}
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
.pr__wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pr__wrap--narrow { max-width: 820px; }

.pr__brand { display: flex; width: max-content; margin: 0 auto 34px; align-items: center; gap: 18px; text-align: left; text-decoration: none !important; color: var(--pr-ink) !important; }
.pr__brand-logo {
    display: grid; place-items: center;
    width: 84px; height: 84px; border-radius: 22px;
    background: #fff;
    border: 1px solid var(--pr-line);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .25);
}
.pr__brand-logo img { width: 68px; }
.pr__brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 19px; line-height: 1.2; }
.pr__brand-text small { font-weight: 500; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-muted); }

.pr__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 13px; border-radius: 999px;
    background: var(--pr-accent-soft); border: 1px solid rgba(247, 127, 0, .35);
    color: var(--pr-accent-deep); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}

/* ── En-tête ───────────────────────────────────────────────────────────── */
.pr__hero {
    position: relative;
    padding: 72px 0 150px;
    color: var(--pr-ink);
    text-align: center;
    background: linear-gradient(180deg, #e9e9e9 0%, #efefef 70%, var(--pr-bg) 100%);
    overflow: hidden;
    isolation: isolate;
}
.pr__hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: repeating-linear-gradient(115deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 16px);
    -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 75%);
}
.pr__hero::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--pr-accent) 0 33.33%, #fff 33.33% 66.66%, var(--pr-green) 66.66% 100%);
}
.pr__hero h1 {
    margin: 18px auto 14px;
    font-family: 'CNDJ Serif', Georgia, serif;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.08;
    color: var(--pr-ink);
}
.pr__hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--pr-accent-strong), var(--pr-accent-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pr__lead { max-width: 620px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: #4a4a4a; }
.pr__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; }
.pr__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #333; }
.pr__trust i { color: var(--pr-accent-strong); }

.pr__licence {
    display: inline-flex; align-items: center; gap: 10px; text-align: left;
    max-width: 680px; margin: 26px auto 0; padding: 12px 16px;
    border-radius: 14px; font-size: 14.5px; line-height: 1.45;
    background: #fff; border: 1px solid var(--pr-line);
}
.pr__licence.is-active i { color: var(--pr-green); }
.pr__licence.is-expired i { color: var(--pr-accent-strong); }

/* ── Formules ──────────────────────────────────────────────────────────── */
.pr__plans-wrap { margin-top: -110px; position: relative; z-index: 1; }
.pr__plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 360px));
    justify-content: center;
    gap: 22px;
    align-items: stretch;
}
.pr__plan {
    position: relative;
    display: flex; flex-direction: column;
    padding: 30px 26px 26px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--pr-line);
    box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .4);
    animation: pr-rise .7s var(--pr-ease) both;
    animation-delay: calc(var(--i) * 90ms);
    transition: transform .3s var(--pr-ease), box-shadow .3s;
}
.pr__plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .45); }
@keyframes pr-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.pr__plan.is-featured {
    color: #fff;
    border-color: transparent;
    background: var(--pr-green-deep);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.pr__ribbon {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 7px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #ff9a2e, var(--pr-accent-strong));
    color: var(--pr-dark-1); font-size: 12.5px; font-weight: 800;
    box-shadow: 0 10px 20px -10px rgba(247, 127, 0, .9);
}

.pr__plan-head h2 {
    margin: 0 0 4px;
    font-family: 'CNDJ Serif', Georgia, serif;
    font-size: 26px; color: inherit;
}
.pr__plan-head p { margin: 0; font-size: 14px; color: var(--pr-muted); }
.pr__plan.is-featured .pr__plan-head p { color: rgba(255, 255, 255, .7); }

.pr__price { display: flex; align-items: flex-end; gap: 8px; margin-top: 22px; }
.pr__amount {
    font-family: 'CNDJ Serif', Georgia, serif;
    font-size: clamp(40px, 4vw, 50px); line-height: .95; letter-spacing: -.02em;
}
.pr__currency { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; line-height: 1.15; padding-bottom: 3px; }
.pr__currency small { font-weight: 600; font-size: 13.5px; color: var(--pr-muted); }
.pr__plan.is-featured .pr__currency small { color: rgba(255, 255, 255, .7); }
.pr__monthly { min-height: 21px; margin: 8px 0 20px; font-size: 14px; color: var(--pr-muted); }
.pr__monthly b { color: var(--pr-accent-deep); }
.pr__plan.is-featured .pr__monthly { color: rgba(255, 255, 255, .72); }
.pr__plan.is-featured .pr__monthly b { color: #ffb066; }

.pr__cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 18px;
    border-radius: 15px;
    background: var(--pr-ink);
    color: #fff !important; font-weight: 800; font-size: 15.5px; text-decoration: none !important;
    transition: transform .15s, background-color .2s, gap .25s var(--pr-ease);
}
.pr__cta:hover { gap: 14px; background: #000; }
.pr__cta:active { transform: scale(.98); }
.pr__plan.is-featured .pr__cta {
    background: #fff;
    color: var(--pr-green-deep) !important;
    box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45);
}
.pr__plan.is-featured .pr__cta:hover { background: #f1f1f1; }
.pr__cta--light {
    background: linear-gradient(135deg, #ff9a2e 0%, var(--pr-accent) 45%, var(--pr-accent-strong) 100%);
    color: var(--pr-dark-1) !important;
    box-shadow: 0 14px 28px -14px rgba(247, 127, 0, .95);
}
.pr__fees { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--pr-muted); }
.pr__fees b { color: var(--pr-ink); }
.pr__nowrap { white-space: nowrap; }
.pr__plan.is-featured .pr__fees { color: rgba(255, 255, 255, .65); }
.pr__plan.is-featured .pr__fees b { color: #fff; }

.pr__features { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px dashed var(--pr-line); display: flex; flex-direction: column; gap: 9px; }
.pr__plan.is-featured .pr__features { border-top-color: rgba(255, 255, 255, .18); }
.pr__features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #333; }
.pr__features li.is-off { color: var(--pr-muted); }
.pr__plan.is-featured .pr__features li { color: rgba(255, 255, 255, .9); }
.pr__plan.is-featured .pr__features li.is-off { color: rgba(255, 255, 255, .5); }
.pr__mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--pr-green-soft); color: var(--pr-green-deep); font-size: 11px; }
.pr__features li.is-off .pr__mark { background: #fdecee; color: #e0354b; }
.pr__plan.is-featured .pr__mark { background: rgba(255, 255, 255, .18); color: #fff; }
.pr__plan.is-featured .pr__features li.is-off .pr__mark { background: rgba(255, 120, 135, .16); color: #ff9aa6; }
.pr__note { font-size: 11.5px; font-weight: 600; color: #e0354b; white-space: nowrap; }
.pr__plan.is-featured .pr__note { color: #ff9aa6; }

.pr__compare-link { margin: 26px 0 0; text-align: center; }
.pr__compare-link a { color: var(--pr-accent-deep); font-weight: 700; text-decoration: none; }
.pr__compare-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pr__empty { padding: 40px; border-radius: 20px; background: #fff; text-align: center; color: var(--pr-muted); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.pr__section { padding: 64px 0 0; scroll-margin-top: 90px; }
.pr__section--last { padding-bottom: 72px; }
.pr__h2 {
    margin: 0 0 22px; text-align: center;
    font-family: 'CNDJ Serif', Georgia, serif;
    font-size: clamp(26px, 2.6vw, 34px); color: var(--pr-ink);
}

/* Comparatif */
.pr__table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--pr-line); background: #fff; }
.pr__table-wrap:focus-visible { outline: 3px solid rgba(247, 127, 0, .45); outline-offset: 3px; }
.pr__table { width: 100%; border-collapse: collapse; min-width: calc(220px + var(--plans, 2) * 120px); font-size: 14.5px; }
.pr__table th, .pr__table td { padding: 13px 18px; border-bottom: 1px solid #efefef; text-align: center; }
.pr__table thead th {
    position: sticky; top: 0;
    background: #fff; font-size: 15px; font-weight: 800; color: var(--pr-ink);
    border-bottom: 2px solid var(--pr-line);
}
.pr__table thead th small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--pr-muted); }
.pr__table thead th:first-child, .pr__table tbody th[scope="row"] { text-align: left; }
.pr__table tbody th[scope="row"] { font-weight: 600; color: #333; }
.pr__table th.is-featured, .pr__table td.is-featured { background: #fff5ea; }
.pr__table tbody:last-child tr:last-child > * { border-bottom: 0; }
.pr__yes { color: var(--pr-green); font-size: 18px; }
.pr__no { color: #e0354b; opacity: .75; }

/* Entreprises */
.pr__pro {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    padding: 38px 40px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(150deg, var(--pr-dark-1), var(--pr-dark-2));
}
.pr__eyebrow--light { background: rgba(247, 127, 0, .16); border-color: rgba(247, 127, 0, .45); color: #ffc184; }
.pr__pro h2 { margin: 14px 0 8px; font-family: 'CNDJ Serif', Georgia, serif; font-size: clamp(24px, 2.4vw, 32px); color: #fff; }
.pr__pro p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .78); line-height: 1.6; }
.pr__pro-actions { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.pr__ghost {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
    border-radius: 15px; border: 1.5px solid rgba(255, 255, 255, .35);
    color: #fff !important; font-weight: 700; text-decoration: none !important;
    transition: background-color .2s;
}
.pr__ghost:hover { background: rgba(255, 255, 255, .1); }

/* FAQ */
.pr__faq { display: flex; flex-direction: column; gap: 10px; }
.pr__faq details {
    border-radius: 18px; background: #fff; border: 1px solid var(--pr-line);
    transition: border-color .2s, box-shadow .2s;
}
.pr__faq details[open] { border-color: #fbc58a; box-shadow: 0 16px 30px -26px rgba(0, 0, 0, .4); }
.pr__faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 20px; font-weight: 700; font-size: 16px;
}
.pr__faq summary::-webkit-details-marker { display: none; }
.pr__faq summary::after {
    content: "+"; display: grid; place-items: center; flex: none;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--pr-accent-soft); color: var(--pr-accent-deep); font-size: 20px; font-weight: 500;
    transition: transform .3s var(--pr-ease), background-color .2s;
}
.pr__faq details[open] summary::after { transform: rotate(45deg); background: var(--pr-accent); color: #fff; }
.pr__faq details p { margin: 0; padding: 0 20px 18px; color: #4a4a4a; line-height: 1.65; }
.pr__more { margin: 22px 0 0; text-align: center; color: var(--pr-muted); }
.pr__more a { color: var(--pr-accent-deep); font-weight: 700; }

/* ── Tablette / mobile ─────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .pr__hero { padding: 44px 0 120px; }
    .pr__brand { margin-bottom: 22px; }
    .pr__brand-logo { width: 66px; height: 66px; border-radius: 18px; }
    .pr__brand-text { font-size: 16px; }
    .pr__brand-logo img { width: 54px; }
    .pr__lead { font-size: 15.5px; }
    .pr__trust { flex-direction: column; align-items: center; gap: 8px; }
    .pr__plans { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .pr__plans-wrap { margin-top: -90px; }
    .pr__plan { padding: 28px 20px 22px; }
    .pr__pro { padding: 28px 22px; }
    .pr__pro-actions { min-width: 0; width: 100%; }
    .pr__section { padding-top: 48px; }
    /* Comparatif : colonnes étroites, première colonne fixe quand on fait défiler */
    .pr__table { min-width: calc(170px + var(--plans, 2) * 84px); font-size: 13.5px; }
    .pr__table th, .pr__table td { padding: 11px 10px; }
    .pr__table thead th { font-size: 13.5px; }
    .pr__table thead th small { display: none; }
    .pr__table thead th:first-child, .pr__table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; }
    .pr__table thead th:first-child { z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .pr__plan { animation: none; transition: none; }
    .pr__faq summary::after { transition: none; }
}
