/* ==================================================================================================
   Page « Serveurs MCP » — styles propres à la page.

   Tout repose sur les jetons de site.css (couleurs, rayons, ombres, polices) : rien n'est
   redéfini ici, la page suit donc d'elle-même le thème clair ou sombre.
   ================================================================================================== */

/* --- Schéma du héros ---------------------------------------------------------------------------- */

.mcp-figure text { font-family: var(--font-display); }
.mcp-figure .node rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.mcp-figure .node text { fill: var(--text); font-size: 13.5px; font-weight: 600; text-anchor: middle; }
.mcp-figure .col-label {
    fill: var(--text-3); font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; text-anchor: middle;
}
.mcp-figure .wire { fill: none; stroke: var(--primary-vivid); stroke-width: 2; stroke-linecap: round; opacity: .75; }
.mcp-figure .hub-title { fill: #fff; font-size: 17px; font-weight: 700; text-anchor: middle; }
.mcp-figure .hub-pill rect { fill: rgba(255, 255, 255, .17); }
.mcp-figure .hub-pill text { fill: #fff; font-size: 11.5px; font-weight: 600; text-anchor: middle; }

/* --- Exemples de demandes ----------------------------------------------------------------------- */

.card .ask {
    margin-top: 1.1rem; padding: .85rem 1rem;
    background: var(--surface-2); border-radius: 12px;
    color: var(--text); font-size: .93rem; line-height: 1.5;
}
.card .ask::before {
    /* Le libellé vient du HTML (data-label) : « Exemple » en français, « Example » en anglais. */
    content: attr(data-label); display: block; margin-bottom: .3rem;
    font-family: var(--font-display); font-size: .7rem; font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase; color: var(--text-3);
}

/* --- Forfaits ----------------------------------------------------------------------------------- */

.plans {
    display: grid; gap: 1.5rem; align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.plan {
    position: relative;
    display: flex; flex-direction: column; gap: 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
}
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }

.plan-badge {
    position: absolute; top: -.8rem; left: 1.9rem;
    font-family: var(--font-display); font-size: .72rem; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
    background: var(--primary); color: var(--on-primary);
    padding: .34rem .75rem; border-radius: var(--radius-pill);
}

.plan h3 { margin: 0; font-size: 1.3rem; }
.plan-for { color: var(--text-2); font-size: .96rem; margin: 0; }

.plan-price {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 1.7rem + 1.2vw, 2.55rem);
    line-height: 1; letter-spacing: -.03em; color: var(--text);
}
.plan-price .from {
    display: block; margin-bottom: .4rem;
    font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--text-3);
}
.plan-price small { font-size: .85rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); }

.plan-meta { display: flex; flex-wrap: wrap; gap: .5rem; }

.plan-list, .scope-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: .62rem; align-content: start;
    color: var(--text-2); font-size: .96rem;
}
.plan-list { flex: 1; padding-top: 1.15rem; border-top: 1px solid var(--border); }
.plan-list li, .scope-list li { display: flex; gap: .65rem; align-items: flex-start; }
.plan-list li::before, .scope-list li::before {
    content: ''; flex: none; width: 1.05rem; height: 1.05rem; margin-top: .3rem;
    background: var(--primary);
    -webkit-mask: var(--mark) center / contain no-repeat;
            mask: var(--mark) center / contain no-repeat;
    --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E");
}
.scope-list.no li::before {
    background: var(--text-3);
    --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.plan .btn { width: 100%; }

/* Les deux offres hors grille (sur mesure, maintenance) : même carte, posée à l'horizontale. */
.plans-extra { margin-top: 1.5rem; }
.plan.wide { flex-direction: row; align-items: center; gap: 1.75rem; }
.plan.wide > div:first-child { flex: 1; display: grid; gap: .55rem; }
.plan.wide .plan-side { flex: none; display: grid; gap: .9rem; justify-items: start; min-width: 11.5rem; }
.plan.wide .plan-price { font-size: 1.65rem; }
@media (max-width: 560px) {
    .plan.wide { flex-direction: column; align-items: stretch; }
}

.plans-note { margin-top: 1.6rem; color: var(--text-3); font-size: .92rem; max-width: 46rem; }

/* --- Périmètre ---------------------------------------------------------------------------------- */

.scope-card h3 { margin-bottom: 1.1rem; }
.scope-card:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* --- Questions fréquentes ------------------------------------------------------------------------ */

.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 1.2rem 0; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; flex: none;
    font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--primary);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0; padding-bottom: 1.3rem; max-width: 44rem; }
