/* =====================
   FICHE CRÉATEUR — /createurs/<slug>/
   $pageStylesheets = ['fiche', 'createur-detail'] : le châssis partagé par
   les trois fiches est dans fiche.css, la carte de colonne latérale et les
   chips dans style.css. Ne reste ici que ce qui est propre à la fiche
   créateur.
   Points de rupture : 480 / 768 / 992 (échelle commune du site).
   ===================== */

/* =====================
   HERO
   ===================== */

/* Variante bannière : l'image de couverture remplace le dégradé, et le voile
   sombre du ::before remplace le halo de fiche.css pour garder le texte
   lisible. */
.createur-hero-banner {
    background-size: cover;
    background-position: center;
}

.createur-hero-banner::before {
    background: var(--scrim);
}

.createur-hero-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-8);
    align-items: center;
}

.createur-hero-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-full);
    border: 4px solid var(--on-dark);
    box-shadow: var(--shadow-lg);
}

.createur-hero h1 {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-h1);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.createur-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.creator-stat-item {
    font-size: var(--fs-sm);
    color: var(--on-dark-soft);
}

.creator-stat-item strong {
    color: var(--on-dark);
    font-weight: 700;
}

.createur-hero-actions {
    flex-shrink: 0;
}

/* =====================
   CODES PROMO DU CRÉATEUR
   ===================== */

.codes-promo-createur-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.code-promo-createur-item {
    padding: var(--space-4) var(--space-5);
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.code-promo-createur-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.code-promo-outil-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
    background: var(--background);
    border-radius: var(--radius-sm);
}

.code-promo-outil-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.code-promo-outil-name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.code-promo-outil-name:hover {
    color: var(--primary-color);
}

.code-promo-reduction {
    display: inline-block;
    width: fit-content;
    padding: var(--space-1) var(--space-2);
    background: var(--chip-green-bg);
    border: 1px solid var(--chip-green-line);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--chip-green-fg);
}

.code-promo-createur-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--background);
    border: 1px dashed var(--success);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.code-promo-createur-code:hover {
    background: var(--chip-green-bg);
    border-style: solid;
}

.code-promo-createur-code code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--chip-green-fg);
}

.copy-icon {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--chip-green-fg);
    opacity: 0.6;
    transition: var(--transition);
}

.code-promo-createur-code:hover .copy-icon {
    opacity: 1;
}

.code-promo-createur-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    color: var(--on-dark);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.code-promo-createur-link:hover {
    background: var(--primary-dark);
}

.code-promo-createur-desc {
    margin-top: var(--space-3);
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--text-light);
}

.codes-promo-more {
    margin-top: var(--space-4);
    text-align: center;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 992px) {
    .createur-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .createur-hero-avatar {
        justify-self: center;
    }

    .createur-hero-badges,
    .createur-hero-meta {
        justify-content: center;
    }

    .createur-hero-actions {
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .createur-hero-avatar img {
        width: 90px;
        height: 90px;
    }

    .code-promo-createur-code {
        flex-wrap: wrap;
    }
}
