/* Explain: Styles for premium editorial sections, including typography and layout. */
/* =========================================================
   Premium editorial system — page « Assistant de formation »
   Grandes typographies, cadres fins, rythme haut de gamme
   ========================================================= */

.pf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bordeaux-dark);
}

.pf-eyebrow::before {
    width: 2.4rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
    content: "";
}

.pf-eyebrow--light {
    color: var(--bordeaux-light);
}

.pf-display {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.03;
}

.pf-index {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--primary-color);
}

.pf-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.25rem;
    box-shadow: var(--shadow-soft);
}

.pf-frame::after {
    position: absolute;
    inset: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.75rem;
    pointer-events: none;
    content: "";
}

.pf-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.85rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(246, 243, 242, 0.62));
    transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.pf-card:hover {
    border-color: rgba(177, 16, 27, 0.45);
    box-shadow: 0 32px 90px rgba(17, 17, 17, 0.14);
    transform: translateY(-6px);
}

.pf-card-dark {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.85rem;
    background: linear-gradient(160deg, #1b1b1b, #101010);
    color: #ffffff;
    transition: transform 400ms ease, border-color 400ms ease;
}

.pf-card-dark:hover {
    border-color: rgba(201, 23, 34, 0.7);
    transform: translateY(-6px);
}

.pf-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pf-module {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.74);
    transition: border-color 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.pf-module[open] {
    border-color: rgba(177, 16, 27, 0.45);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 26px 74px rgba(17, 17, 17, 0.1);
}

.pf-module > summary {
    list-style: none;
}

.pf-module > summary::-webkit-details-marker {
    display: none;
}

.pf-module > summary .pf-chevron {
    transition: transform 300ms ease;
}

.pf-module[open] > summary .pf-chevron {
    transform: rotate(180deg);
}

.pf-chapter {
    border-top: 1px solid var(--glass-border);
}

.pf-chapter:last-child {
    border-bottom: 1px solid var(--glass-border);
}

.pf-chapter > summary {
    list-style: none;
}

.pf-chapter > summary::-webkit-details-marker {
    display: none;
}

.pf-chapter > summary .pf-chevron {
    transition: transform 300ms ease;
}

.pf-chapter[open] > summary .pf-chevron {
    transform: rotate(180deg);
}

.pf-chapter-num {
    transition: color 300ms ease;
}

.pf-chapter[open] > summary .pf-chapter-num {
    color: var(--primary-color);
}

/* Program — continuous module marquee */

.module-ticker-band {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(100deg, var(--bordeaux-dark), var(--primary-color) 52%, var(--bordeaux-dark));
    padding: 1.15rem 0;
}

.module-ticker-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.module-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: module-ticker-scroll 42s linear infinite;
    will-change: transform;
}

.module-ticker-viewport:hover .module-ticker-track {
    animation-play-state: paused;
}

.module-ticker-half {
    display: flex;
    flex: none;
    align-items: center;
}

.module-ticker-item {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.9rem;
    padding: 0 1.4rem;
    white-space: nowrap;
}

.module-ticker-num {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--bordeaux-light);
}

.module-ticker-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
}

.module-ticker-dot {
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

@keyframes module-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-ticker-track {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .module-ticker-half {
        flex-wrap: wrap;
        justify-content: center;
    }

    .module-ticker-half[aria-hidden="true"] {
        display: none;
    }
}

/* Tarif — effet de zoom / apparition au survol */

.pf-focus-card {
    transition: transform 500ms ease, box-shadow 500ms ease;
    will-change: transform;
}

.pf-focus-card:hover,
.pf-focus-card:focus-within {
    box-shadow: 0 40px 110px rgba(17, 17, 17, 0.28);
    transform: translateY(-6px) scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .pf-focus-card {
        transition: none;
    }

    .pf-focus-card:hover,
    .pf-focus-card:focus-within {
        transform: none;
    }
}