/* Page Services — lisibilité et alignement */

/* Modals — hors main, z-index correct */
body.page-services .modal-backdrop,
body.page-home .modal-backdrop {
    z-index: 1055 !important;
}
body.page-services #serviceModal,
body.page-services #packModal,
body.page-services #schoolDetailModal,
body.page-services .ecole-modal,
body.page-home #serviceModal {
    z-index: 1060 !important;
}
body.page-services #serviceModal.show,
body.page-services #packModal.show,
body.page-services #schoolDetailModal.show,
body.page-home #serviceModal.show {
    display: block !important;
}
body.page-services #serviceModal .modal-dialog,
body.page-services #packModal .modal-dialog,
body.page-services #schoolDetailModal .modal-dialog,
body.page-home #serviceModal .modal-dialog {
    opacity: 1;
    transform: translate(0, 0) !important;
}
body.page-services .sc-service-modal .modal-content,
body.page-home .sc-service-modal .modal-content {
    border: none;
    border-radius: var(--card-r);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.page-services {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-services .page-shell > .container,
.page-services .services-section > .container {
    max-width: 1360px;
}

/* Bannière */
.page-services .page-cover {
    padding: 3.5rem 1.5rem 3.25rem;
}

.page-services .page-cover__title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.page-services .page-cover__sub {
    font-size: 1.0625rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
}

/* Navigation */
.services-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
    position: sticky;
    top: var(--nav);
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.services-nav__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.services-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.services-nav__link:hover {
    background: var(--sc-green-light);
    border-color: rgba(0, 166, 81, 0.35);
    color: var(--sc-green-dark);
    transform: translateY(-1px);
}

.services-nav__link i {
    font-size: 0.75rem;
    color: var(--sc-green);
}

/* Intro */
.services-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 1.25rem;
}

.services-intro .section-title {
    font-size: clamp(1.375rem, 2.5vw, 1.625rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.services-intro p {
    color: #495057;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
}

.page-services .sc-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Stats bannière — plus lisibles, retour à la ligne (pas de scroll horizontal) */
.page-services .page-cover__stats--modern {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 720px;
    margin-top: 1.5rem;
    overflow: visible;
}

.page-services .page-cover__stats--modern .page-cover__stat {
    padding: 0.65rem 1rem 0.65rem 0.65rem;
    gap: 0.6rem;
}

.page-services .page-cover__stats--modern .page-cover__stat-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.page-services .page-cover__stats--modern .page-cover__stat-body strong {
    font-size: 1.0625rem;
}

.page-services .page-cover__stats--modern .page-cover__stat-body span {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
}

/* Conseils — cartes lisibles en grille (pas de carrousel) */
.services-tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.services-tip {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.services-tip:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 166, 81, 0.08);
    border-color: rgba(0, 166, 81, 0.24);
    background: #f0fdf4;
}

.services-tip__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sc-green-light);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.services-tip__text {
    min-width: 0;
    flex: 1;
}

.services-tip h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.services-tip p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Sections — titres centrés */
.services-section {
    padding: 2.75rem 0;
}

.services-section--gray {
    background: linear-gradient(180deg, #f4f8f6 0%, #f8faf9 100%);
    border-block: 1px solid var(--line);
}

.services-section__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.services-section__head--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.services-section__head h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.625rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
}

.services-section__count {
    font-size: 0.9375rem;
    color: #495057;
    margin: 0;
    max-width: 520px;
    line-height: 1.5;
}

.services-section__count strong {
    color: var(--sc-green-dark);
}

/* Grille 4 colonnes — alignement uniforme */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    width: 100%;
    justify-items: stretch;
}

/* Carte seule sur la dernière ligne — centrée (4 colonnes) */
@media (min-width: 1200px) {
    .services-grid > .sc-svc-card:only-child,
    .services-grid > .sc-svc-card:last-child:nth-child(4n+1):not(:only-child) {
        grid-column: 1 / -1;
        max-width: min(100%, 300px);
        width: 100%;
        justify-self: center;
    }
}

/* 3 colonnes */
@media (min-width: 992px) and (max-width: 1199px) {
    .services-grid > .sc-svc-card:last-child:nth-child(3n+1):not(:only-child) {
        grid-column: 1 / -1;
        max-width: min(100%, 300px);
        width: 100%;
        justify-self: center;
    }
}

/* 2 colonnes */
@media (min-width: 576px) and (max-width: 991px) {
    .services-grid > .sc-svc-card:last-child:nth-child(2n+1):not(:only-child) {
        grid-column: 1 / -1;
        max-width: min(100%, 300px);
        width: 100%;
        justify-self: center;
    }
}

.services-grouped {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.services-subsection__head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.services-subsection__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sc-green-light);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 0.875rem;
}

.services-subsection__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ink);
}

.services-subsection__count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sc-green-dark);
    background: var(--sc-green-light);
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}

.services-subsection__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.services-subsection__count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sc-green-dark);
    background: var(--sc-green-light);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

/* Cartes service */
.sc-svc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-r);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    cursor: pointer;
}

.sc-svc-card:focus-visible {
    outline: 2px solid var(--sc-green);
    outline-offset: 2px;
}

.sc-svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sc-green);
    z-index: 2;
}

.sc-svc-card--promo {
    border-color: rgba(255, 102, 0, 0.45);
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.14);
}

.sc-svc-card--promo::before {
    background: linear-gradient(90deg, var(--sc-orange), #ffb347);
    height: 4px;
}

.sc-svc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(0, 166, 81, 0.3);
}

.sc-svc-card__media {
    position: relative;
    height: 132px;
    background: #0f172a center / cover no-repeat;
    overflow: hidden;
}

.sc-svc-card__media-shade {
    /* Plus de voile coloré sur la photo — image nette, sans filtre. */
    display: none;
}

.sc-svc-card__promo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6600, #ea580c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.45);
    animation: svcPromoPulse 2s ease-in-out infinite;
}

.sc-svc-card__type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    line-height: 1.1;
    backdrop-filter: blur(4px);
}

.sc-svc-card__type-badge--free {
    background: rgba(255, 255, 255, 0.94);
    color: var(--sc-green-dark);
    border: 1px solid rgba(0, 166, 81, 0.28);
}

.sc-svc-card__type-badge--paid {
    background: rgba(255, 255, 255, 0.94);
    color: #475569;
    border: 1px solid rgba(71, 85, 105, 0.22);
}

.sc-svc-card--promo .sc-svc-card__type-badge {
    top: 38px;
}

@keyframes svcPromoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.sc-svc-card__price-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    text-align: center;
}

.sc-svc-card__price {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--sc-green-dark);
    letter-spacing: -0.01em;
}

.sc-svc-card--promo .sc-svc-card__price {
    color: #ea580c;
}

.sc-svc-card__body {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
    text-align: left;
}

.sc-svc-card__cat {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sc-green-dark);
}

.sc-svc-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
    letter-spacing: -0.01em;
}

.sc-svc-card__desc {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-svc-card__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.sc-svc-card__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #374151;
}

.sc-svc-card__highlights li i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 0.65rem;
    color: var(--sc-green);
}

.sc-svc-card__footer {
    margin-top: auto;
    padding-top: 0.65rem;
}

.sc-svc-card__footer .btn {
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.52rem 0.65rem;
    border-radius: 10px;
    letter-spacing: 0;
}

.sc-svc-card__footer--dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.sc-svc-card__footer--dual .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.5rem 0.4rem;
}

/* Modal service */
.sc-service-modal .modal-header {
    background: var(--sc-green-light);
    border-bottom: 1px solid rgba(0, 166, 81, 0.15);
}

.sc-service-modal .modal-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ink);
}

.sc-service-modal__cover {
    position: relative;
    height: 148px;
    border-radius: 12px;
    background: var(--sc-green-light) center / cover no-repeat;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.sc-service-modal__cover.has-photo {
    background-color: #0f172a;
}

.sc-service-modal__cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, transparent 55%);
    pointer-events: none;
}

.sc-service-modal__cover--icon {
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #e8f5ef, var(--sc-green-light));
    color: var(--sc-green);
    font-size: 2.5rem;
}

.sc-service-modal__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.sc-service-modal__intro {
    font-size: 1rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 1.15rem;
}

.sc-service-modal__section {
    margin-bottom: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.sc-service-modal__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    align-items: stretch;
}

/* Un seul des deux blocs a du contenu : l'autre occupe toute la ligne au lieu de
   laisser un espace vide à côté. */
.sc-service-modal__split:has(.sc-service-modal__split-col--empty) {
    grid-template-columns: 1fr;
}

.sc-service-modal__split-col--empty {
    display: none;
}

.sc-service-modal__split .sc-service-modal__section {
    margin-bottom: 0;
    height: 100%;
}

.sc-service-modal__section-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.sc-service-modal__section-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--sc-green-light);
    color: var(--sc-green-dark);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.sc-service-modal__section-body {
    padding-left: 0.15rem;
}

.sc-service-modal__feature-grid {
    display: grid;
    gap: 0.45rem;
}

.sc-service-modal__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

.sc-service-modal__feature i {
    color: var(--sc-green);
    margin-top: 0.2rem;
    font-size: 0.72rem;
}

.sc-service-modal__section--important {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.25);
}

.sc-service-modal__section--docs {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, 0.18);
}

.sc-service-modal__docs-label {
    margin: 0.5rem 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0369a1;
}

.sc-service-modal__docs-label:first-child {
    margin-top: 0;
}

.sc-service-modal__section-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sc-green-dark);
    margin: 0;
}

.sc-service-modal__delai {
    margin: 0;
    font-size: 0.9375rem;
    color: #475569;
}

.sc-service-modal__price-box {
    margin-top: 1rem;
    padding-top: 0.15rem;
}

.sc-service-modal__price-box-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid rgba(0, 166, 81, 0.28);
}

.sc-service-modal__price-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sc-service-modal__price-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-left: auto;
}

.sc-service-modal__price-prefix {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.sc-service-modal__price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sc-green-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sc-service-modal__price-amount.is-free {
    color: var(--sc-green-dark);
}

.sc-service-modal__price-note {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.sc-service-modal__price-cta {
    width: auto;
    min-width: 10.5rem;
    max-width: 100%;
    font-weight: 800;
    border-radius: 10px;
    padding: 0.58rem 1.1rem;
    white-space: nowrap;
}

.sc-service-modal__price-extra {
    width: auto;
    border-radius: 10px;
}

/* Variante compacte — prix apparié au délai en dernière ligne de la fenêtre de détails */
.sc-service-modal__price-box--compact {
    margin-top: 0;
}

.sc-service-modal__price-box--compact .sc-service-modal__price-box-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0.95rem;
    gap: 0.6rem;
    border-radius: 12px;
}

.sc-service-modal__price-box--compact .sc-service-modal__price-amount {
    font-size: 1.375rem;
}

.sc-service-modal__price-box--compact .sc-service-modal__price-actions {
    justify-content: stretch;
    margin-left: 0;
}

.sc-service-modal__price-box--compact .sc-service-modal__price-cta {
    width: 100%;
    min-width: 0;
}

.sc-service-modal__delai-block .sc-service-modal__delai {
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 767.98px) {
    .sc-service-modal__split {
        grid-template-columns: 1fr;
    }

    .sc-service-modal__price-box-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .sc-service-modal__price-actions {
        width: 100%;
        justify-content: stretch;
    }

    .sc-service-modal__price-cta {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .sc-service-modal__cover {
        height: 120px;
    }
}

.sc-service-modal__badge {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--sc-green-light);
    color: var(--sc-green-dark);
}

.sc-service-modal__price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--sc-green-dark);
}

.sc-service-modal__desc {
    font-size: 0.9375rem;
    color: #495057;
    line-height: 1.75;
}

/* Packs — cartes différenciées des services */
.services-packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.sc-pack-card--v2 {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-r);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.sc-pack-card--v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sc-green), #34d399);
    z-index: 2;
}

.sc-pack-card--v2.sc-pack-card--featured::before {
    background: linear-gradient(90deg, var(--sc-orange), #ffb347);
}

.sc-pack-card--v2:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.sc-pack-card--v2.sc-pack-card--featured {
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: 0 8px 28px rgba(255, 102, 0, 0.12);
}

.sc-pack-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    background: var(--sc-green);
}

.sc-pack-card__badge--populaire {
    background: var(--sc-orange);
}

.sc-pack-card__badge--recommande {
    background: #2563eb;
}

.sc-pack-card__badge--economique {
    background: #64748b;
}

.sc-pack-card--v2 .sc-pack-card__media {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.sc-pack-card__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.sc-pack-card__media-icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sc-pack-card--featured .sc-pack-card__media-icon {
    color: var(--sc-orange);
}

.sc-pack-card__icon-wrap {
    padding: 1.25rem 1.25rem 0;
}

.sc-pack-card--v2 .sc-pack-card__icon {
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 14px;
    background: var(--sc-green-light);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.sc-pack-card--v2.sc-pack-card--featured .sc-pack-card__icon {
    background: linear-gradient(135deg, #fff5eb, #ffedd5);
    color: var(--sc-orange);
}

.sc-pack-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.15rem 1.15rem;
    gap: 0;
}

.sc-pack-card--has-photo .sc-pack-card__body {
    padding-top: 0.9rem;
}

.sc-pack-card--v2 .sc-pack-card__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.4rem;
    line-height: 1.3;
    padding-right: 4.5rem;
}

.sc-pack-card--v2 .sc-pack-card__desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-pack-card__highlights {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    flex: 1;
}

.sc-pack-card__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.sc-pack-card__highlights li i {
    color: var(--sc-green);
    font-size: 0.65rem;
    margin-top: 0.28rem;
    flex-shrink: 0;
}

.sc-pack-card--v2 .sc-pack-card__price {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--sc-green-dark);
    margin: 0 0 0.85rem;
    line-height: 1.2;
}

.sc-pack-card--v2.sc-pack-card--featured .sc-pack-card__price {
    color: var(--sc-orange);
}

.sc-pack-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}

.sc-pack-card__actions .btn {
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.45rem 0.5rem;
    white-space: normal;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Modale pack */
.sc-pack-modal .sc-service-modal__badge--pack {
    background: rgba(0, 166, 81, 0.12);
    color: var(--sc-green-dark);
}

/* Legacy pack card (accueil etc.) */
.sc-pack-card:not(.sc-pack-card--v2) {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.75rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    align-items: center;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.sc-pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sc-green), #34d399);
}

.sc-pack-card--featured::before {
    background: linear-gradient(90deg, var(--sc-orange), #ffb347);
}

.sc-pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 100, 50, 0.14);
}

.sc-pack-card--featured {
    border-color: var(--sc-orange);
    box-shadow: 0 8px 32px rgba(255, 102, 0, 0.15);
}

.sc-pack-card__ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    background: var(--sc-orange);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
}

.sc-pack-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--sc-green-light);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.sc-pack-card--featured .sc-pack-card__icon {
    background: linear-gradient(135deg, #fff5eb, #ffedd5);
    color: var(--sc-orange);
}

.sc-pack-card__title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.sc-pack-card__desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.sc-pack-card__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sc-green-dark);
    margin-bottom: 1rem;
}

.sc-pack-card--featured .sc-pack-card__price {
    color: var(--sc-orange);
}

.sc-pack-card .btn {
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
}

.sc-service-modal__promo {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6600, #ea580c);
    color: #fff;
}

.sc-service-modal__list {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: #495057;
    line-height: 1.7;
}

.sc-service-modal__list li {
    margin-bottom: 0.35rem;
}

/* Quiz — panneau info + carte adaptative */
.services-quiz {
    padding: 2rem 0 2.5rem;
    background: #f0f4f8;
    border-top: 1px solid var(--line);
}

.services-quiz > .container {
    max-width: 980px;
}

.services-quiz__layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

.services-quiz__info {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem 1rem;
    border: 1.5px solid rgba(0, 166, 81, 0.35);
    box-shadow: 0 8px 28px rgba(0, 100, 50, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-quiz__info-block {
    margin-bottom: 0.85rem;
}

.services-quiz__info-block--last {
    margin-top: auto;
    margin-bottom: 0;
}

.services-quiz__info-label {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sc-green-dark);
    margin: 0 0 0.45rem;
}

.services-quiz__steps-list li strong {
    color: var(--ink);
    font-weight: 800;
}

.services-quiz__info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sc-green-dark);
    background: var(--sc-green-light);
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

.services-quiz__info-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--ink);
    line-height: 1.25;
}

.services-quiz__info-lead {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 0.85rem;
}

.services-quiz__steps-list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.services-quiz__steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #374151;
    line-height: 1.45;
    font-weight: 600;
}

.services-quiz__steps-list li span {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--sc-green);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.services-quiz__info-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.services-quiz__info-meta div {
    text-align: center;
    padding: 0.4rem 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f8faf9;
}

.services-quiz__info-meta strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--sc-green-dark);
}

.services-quiz__info-meta span {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.services-quiz__info-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.services-quiz__info-notes li {
    font-size: 0.6875rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.4;
}

.services-quiz__info-notes i {
    color: var(--sc-green);
    width: 14px;
    margin-right: 0.25rem;
}

.services-quiz__play {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-quiz__frame {
    position: relative;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--sc-green), #34d399, var(--sc-orange));
    background-size: 220% 220%;
    animation: quizBorderFlow 7s ease infinite;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes quizBorderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.services-quiz__frame-inner {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    min-height: 100%;
}

#fullQuizContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

#fullQuizContainer .quiz-question-card {
    flex: 1;
    min-height: 0;
}

.services-quiz__results {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    animation: quizFadeIn 0.35s ease;
}

#fullQuizContainer.quiz-panel-enter {
    animation: quizPanelIn 0.28s ease;
}

@keyframes quizPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-header {
    margin-bottom: 0.65rem;
}

.quiz-steps {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.quiz-steps__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 0.2s, transform 0.2s;
}

.quiz-steps__dot.is-active {
    background: var(--sc-green);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.2);
}

.quiz-steps__dot.is-done {
    background: #34d399;
}

.quiz-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-progress-track {
    flex: 1;
    height: 6px;
    background: #e8f0ec;
    border-radius: 999px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sc-green), #34d399);
    transition: width 0.3s ease;
}

.quiz-progress-label {
    font-size: 0.6875rem;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.quiz-progress-label strong {
    color: var(--sc-green-dark);
}

.quiz-question-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.quiz-question-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.quiz-answers:not(.quiz-answers--grid) {
    justify-content: space-evenly;
}

.quiz-answers:not(.quiz-answers--grid) .quiz-answer-option {
    flex: 1;
    min-height: 2.75rem;
    max-height: 4.5rem;
    align-items: center;
}

.quiz-answers--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    align-content: stretch;
    max-height: none;
    overflow: hidden;
    padding-right: 0;
}

.quiz-answers--grid::-webkit-scrollbar {
    width: 4px;
}

.quiz-answers--grid::-webkit-scrollbar-thumb {
    background: #c5d9ce;
    border-radius: 4px;
}

.quiz-answer-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    font-size: 0.875rem;
    color: var(--ink);
}

.quiz-answers--grid .quiz-answer-option {
    flex-direction: row;
    padding: 0.6rem 0.65rem;
    min-height: 0;
    height: 100%;
    font-size: 0.9rem;
}

.quiz-answer-option:hover {
    border-color: var(--sc-green);
    background: var(--sc-green-light);
}

.quiz-answer-option.is-selected {
    border-color: var(--sc-green);
    background: var(--sc-green-light);
    box-shadow: 0 2px 10px rgba(0, 166, 81, 0.12);
}

.quiz-answer-option__letter {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 7px;
    background: #f1f5f3;
    color: var(--sc-green-dark);
    font-weight: 800;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
}

.quiz-answer-option.is-selected .quiz-answer-option__letter,
.quiz-answer-option:hover .quiz-answer-option__letter {
    background: var(--sc-green);
    color: #fff;
}

.quiz-answer-option__text {
    flex: 1;
    line-height: 1.35;
    font-weight: 600;
}

.quiz-actions,
#fullQuizContainer .quiz-actions,
.quiz-question-card .quiz-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem;
    width: 100%;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}

.quiz-actions .btn,
#fullQuizContainer .quiz-actions .btn {
    flex: 0 1 auto;
    width: auto !important;
    max-width: none;
    min-width: 7.5rem;
    font-size: 0.8125rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.quiz-actions #quizPrev {
    margin-right: auto;
}

.quiz-actions #quizNext {
    margin-left: auto;
}

/* Résultats — lignes compactes */
.quiz-results-board {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.quiz-results-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.quiz-results-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.55rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quiz-results-divider::before,
.quiz-results-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.quiz-results-divider span {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--sc-green-light);
    color: var(--sc-green-dark);
}

.quiz-results-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1.5px solid var(--sc-green);
    background: var(--sc-green-light);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}

.quiz-results-head h3 {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
}

.quiz-results-head p {
    font-size: 0.6875rem;
    color: var(--muted);
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.quiz-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.quiz-results-list::-webkit-scrollbar {
    width: 4px;
}

.quiz-results-list::-webkit-scrollbar-thumb {
    background: #c5d9ce;
    border-radius: 4px;
}

.quiz-result-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 0.35rem 0.5rem;
    align-items: center;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.quiz-result-row:hover {
    border-color: rgba(0, 166, 81, 0.35);
    box-shadow: 0 3px 12px rgba(0, 100, 50, 0.07);
}

.quiz-result-row__rank {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--sc-green);
    color: #fff;
    font-weight: 800;
    font-size: 0.6875rem;
    display: grid;
    place-items: center;
    align-self: start;
    margin-top: 0.1rem;
}

.quiz-result-row__main {
    min-width: 0;
}

.quiz-result-row__main h4 {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.15rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-result-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    font-size: 0.625rem;
    color: var(--muted);
    font-weight: 600;
}

.quiz-result-row__meta i {
    color: var(--sc-green);
    margin-right: 0.12rem;
    font-size: 0.5625rem;
}

.quiz-result-row__match-wrap {
    text-align: right;
    min-width: 52px;
}

.quiz-result-row__match {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--sc-green-dark);
    line-height: 1.2;
}

.quiz-result-row__bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.quiz-result-row__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sc-green), #34d399);
    transition: width 0.35s ease;
}

.quiz-result-row__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.quiz-result-row__actions .btn {
    font-size: 0.625rem;
    padding: 0.28rem 0.5rem;
}

.quiz-results-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: auto;
    flex-shrink: 0;
}

@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-results-footer .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
}

@media (max-width: 575px) {
    .quiz-result-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }
    .quiz-result-row__match-wrap {
        grid-column: 2;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .quiz-result-row__bar {
        flex: 1;
        margin-top: 0;
    }
    .quiz-result-row__main h4 {
        white-space: normal;
    }
}

/* CTA */
.services-cta {
    background: linear-gradient(145deg, #007A3D, var(--sc-green-dark));
    border-radius: 20px;
    padding: 2.75rem 2rem;
    text-align: center;
    color: #fff;
    margin-top: 1rem;
    box-shadow: 0 16px 48px rgba(0, 100, 50, 0.22);
}

.services-cta h3 {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.services-cta p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

.services-cta .btn { margin: 0.25rem; }

.page-services .sc-svc-card,
.page-services .services-tip,
.page-services .sc-pack-card,
.page-services .services-quiz__layout {
    pointer-events: auto !important;
    opacity: 1 !important;
}

.page-services .sc-svc-card.is-visible,
.page-services .services-tip.is-visible,
.page-services .sc-pack-card.is-visible,
.page-services .services-quiz__layout.is-visible {
    opacity: 1;
}

@media (max-width: 1199px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .page-services .page-cover__stats--modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 100%;
    }

    .services-tips {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.85rem;
        overflow: visible;
    }

    .services-tip {
        min-width: 0;
        max-width: none;
    }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-packs {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.85rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .page-services .sc-pack-card--v2 {
        width: min(100%, 20rem);
        max-width: 20rem;
    }
    .services-quiz__layout {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    .services-quiz__info {
        position: static;
    }
}

@media (max-width: 575px) {
    .page-services .page-cover__stats--modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        overflow: visible;
        padding: 0;
    }

    .page-services .page-cover__stats--modern .page-cover__stat {
        flex: initial;
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 0.45rem 0.4rem;
        justify-content: center;
        text-align: center;
    }

    .page-services .page-cover__stats--modern .page-cover__stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .page-services .page-cover__stats--modern .page-cover__stat-body strong {
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .page-services .page-cover__stats--modern .page-cover__stat-body span {
        font-size: 0.5625rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .services-nav { position: static; }
    .services-nav__inner {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .services-section.page-shell {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .services-intro {
        margin-bottom: 0.85rem;
    }

    .services-intro p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .services-tips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 0;
    }

    .services-tip {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 0;
        max-width: none;
        padding: 0.75rem 0.4rem;
        gap: 0.4rem;
    }

    .services-tip__icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .services-tip h3 {
        font-size: 0.7rem;
        margin: 0;
        line-height: 1.25;
    }

    .services-tip p {
        display: none;
    }

    /* Packs mobile — carte compacte centrée, boutons tactiles */
    .page-services #services-packs .services-packs {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 0.65rem;
    }

    .page-services .sc-pack-card--v2 {
        display: flex;
        flex-direction: column;
        width: min(100%, 21rem);
        max-width: 21rem;
        margin-inline: auto;
        padding: 0;
        overflow: hidden;
        border-radius: 14px;
    }

    .page-services .sc-pack-card--v2:hover {
        transform: none;
    }

    .page-services .sc-pack-card--v2 .sc-pack-card__media {
        width: 100%;
        height: 96px;
        border-radius: 0;
    }

    .page-services .sc-pack-card__icon-wrap {
        padding: 0.75rem 0.85rem 0;
    }

    .page-services .sc-pack-card__body {
        display: flex;
        flex-direction: column;
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .page-services .sc-pack-card--v2 .sc-pack-card__title {
        font-size: 0.9375rem;
        padding-right: 4.25rem;
        margin-bottom: 0.2rem;
    }

    .page-services .sc-pack-card--v2 .sc-pack-card__desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.45rem;
    }

    .page-services .sc-pack-card__highlights {
        display: none;
    }

    .page-services .sc-pack-card--v2 .sc-pack-card__price {
        font-size: 1.125rem;
        margin-bottom: 0.6rem;
    }

    .page-services .sc-pack-card__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-top: 0;
    }

    .page-services .sc-pack-card__actions .btn {
        min-height: 2.6rem;
        font-size: 0.72rem;
        padding: 0.42rem 0.4rem;
        line-height: 1.2;
        white-space: normal;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    /* Cartes services page — mobile : l'essentiel uniquement */
    .page-services .sc-svc-card__highlights {
        display: none;
    }

    .sc-svc-card__type-badge {
        top: 8px;
        right: 8px;
        font-size: 0.6rem;
        padding: 0.22rem 0.48rem;
    }

    .sc-svc-card--promo .sc-svc-card__type-badge {
        top: 34px;
    }

    /* Cartes compactes — 2 par ligne, texte lisible */
    .sc-svc-card {
        min-height: 0;
        border-radius: 12px;
    }

    .sc-svc-card__media {
        height: 102px;
    }

    .sc-svc-card__promo {
        top: 6px;
        left: 6px;
        font-size: 0.625rem;
        padding: 0.22rem 0.5rem;
    }

    .sc-svc-card__price-bar {
        padding: 0.4rem 0.5rem;
    }

    .sc-svc-card__price {
        font-size: 0.8125rem;
    }

    .sc-svc-card__body {
        padding: 0.78rem 0.8rem 0.85rem;
        gap: 0.42rem;
    }

    .sc-svc-card__cat {
        font-size: 0.625rem;
        letter-spacing: 0.04em;
    }

    .sc-svc-card__title {
        font-size: 0.875rem;
        min-height: 0;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .sc-svc-card__desc {
        font-size: 0.8125rem;
        line-height: 1.55;
        -webkit-line-clamp: 3;
        color: var(--text);
    }

    .page-services .sc-svc-card__desc {
        font-size: 0.75rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .sc-svc-card__footer {
        padding-top: 0.5rem;
    }

    .sc-svc-card__footer .btn {
        width: 100% !important;
        font-size: 0.75rem;
        padding: 0.48rem 0.45rem;
        border-radius: 8px;
        text-transform: none;
        letter-spacing: 0;
    }

    .sc-svc-card__footer--dual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
    }

    .sc-svc-card__footer--dual .btn {
        width: 100% !important;
        font-size: 0.75rem;
        padding: 0.48rem 0.2rem;
        text-transform: none;
        letter-spacing: 0;
        white-space: nowrap;
        min-width: 0;
    }

    .quiz-actions,
    #fullQuizContainer .quiz-actions,
    .quiz-question-card .quiz-actions {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.5rem;
    }

    .quiz-actions .btn,
    #fullQuizContainer .quiz-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: calc(50% - 0.25rem);
        width: auto !important;
        justify-content: center;
        padding: 0.55rem 0.65rem;
        font-size: 0.8125rem;
    }

    .quiz-actions #quizPrev,
    .quiz-actions #quizNext {
        margin: 0;
    }

    .quiz-answers--grid { grid-template-columns: 1fr; }
}
