/**
 * Roomzic - Pages marketing (providers / features / comparaisons / how-it-works)
 * Complète public/css/pages/landing-v2.css et seo.css (chargés en même temps)
 * avec les composants réellement nouveaux : menu "Music Providers", timeline
 * de flux avec connecteurs, tableau de comparaison, icônes provider.
 * Réutilise les variables définies dans landing-v2.css (--primary, --dark, --gray, --gradient...).
 */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Provider icon */
.provider-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.marketing-hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.marketing-hero-icon .provider-icon {
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Nav: "Music Providers" dropdown */
.nav-providers-menu {
    position: relative;
}

.nav-providers-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 4px;
    letter-spacing: 0.3px;
}

.nav-providers-menu-trigger:hover,
.nav-providers-menu:hover .nav-providers-menu-trigger,
.nav-providers-menu:focus-within .nav-providers-menu-trigger {
    color: white;
}

.nav-providers-menu-trigger svg {
    transition: transform 0.2s ease;
}

.nav-providers-menu:hover .nav-providers-menu-trigger svg,
.nav-providers-menu:focus-within .nav-providers-menu-trigger svg {
    transform: rotate(180deg);
}

.nav-providers-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: all 0.2s ease;
    z-index: 60;
}

.nav-providers-menu:hover .nav-providers-menu-panel,
.nav-providers-menu:focus-within .nav-providers-menu-panel,
.nav-providers-menu.is-open .nav-providers-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-providers-menu.is-open .nav-providers-menu-trigger svg {
    transform: rotate(180deg);
}

.nav-providers-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.nav-providers-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.nav-providers-menu-all {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    color: var(--primary);
}

/* Footer links (nouveaux, en plus du footer SEO existant) */
.marketing-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.marketing-footer-links a {
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.marketing-footer-links a:hover {
    color: var(--light);
}

/* Process timeline: connecteur flèche entre étapes (desktop uniquement) */
.process-timeline {
    padding: 60px 0;
}

.process-timeline-title {
    text-align: center;
}

.process-timeline-grid {
    margin-top: 56px;
}

@media (min-width: 900px) {
    .process-timeline-step {
        position: relative;
    }

    .process-timeline-step:not(:last-child)::after {
        content: '→';
        position: absolute;
        top: 22px;
        right: -34px;
        font-size: 24px;
        color: var(--primary);
        opacity: 0.5;
    }
}

/* Callout (lien de maillage interne mis en avant, ex. deep-dive Spotify -> YouTube) */
.marketing-callout {
    padding: 0 0 40px;
    text-align: center;
}

.marketing-callout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: var(--light);
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.marketing-callout-link:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.6);
}

/* Rich sections (approfondissement éditorial, ex. deep-dive Spotify -> YouTube) */
.rich-sections {
    padding: 40px 0 80px;
    max-width: 820px;
}

.rich-section {
    margin-bottom: 40px;
}

.rich-section-heading {
    font-family: 'Clash Display', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.rich-section p {
    color: rgba(250, 250, 250, 0.8);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* /how-it-works: bloc par provider */
.provider-flow-block {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.provider-flow-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.provider-flow-title {
    margin-bottom: 0;
    font-size: clamp(28px, 5vw, 40px);
}

.provider-flow-block .section-subtitle {
    margin-bottom: 0;
}

.provider-flow-link {
    text-align: center;
    margin-top: 16px;
}

.provider-flow-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.provider-flow-link a:hover {
    opacity: 0.8;
}

/* Comparison table */
.comparison-table-section {
    padding: 40px 0 80px;
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
    line-height: 1.5;
}

.comparison-table thead th {
    font-family: 'Clash Display', sans-serif;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.comparison-table thead th:not(:first-child) {
    display: table-cell;
}

.comparison-table thead th .provider-icon {
    margin-right: 8px;
}

.comparison-table tbody th {
    color: var(--gray);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-cell-winner {
    background: rgba(16, 185, 129, 0.08);
}

.comparison-winner-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
