/* =====================
   FICHE TUTO — /tutos/<slug>/
   $pageStylesheets = ['fiche', 'tuto-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 tuto.
   Points de rupture : 480 / 768 (échelle commune du site).
   ===================== */

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

.tuto-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tuto-hero-badges {
    justify-content: center;
    margin-bottom: var(--space-4);
}

.tuto-hero h1 {
    margin: 0 0 var(--space-6);
    font-size: var(--fs-h1);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.tuto-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
}

.tuto-hero-creator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--on-dark);
    text-decoration: none;
    transition: var(--transition);
}

.tuto-hero-creator:hover {
    color: var(--on-dark-soft);
}

.tuto-hero-creator img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: var(--radius-full);
    border: 2px solid var(--on-dark-line-strong);
}

.tuto-hero-date,
.tuto-hero-duration {
    font-size: var(--fs-sm);
    color: var(--on-dark-soft);
}

/* =====================
   LECTEUR VIDÉO
   ===================== */

.tuto-video-section {
    padding: var(--space-8) 0 0;
    background: var(--background);
}

.tuto-video-wrapper {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* ratio 16:9 */
    overflow: hidden;
    background: var(--hero-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.tuto-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================
   RÉSUMÉ SEO
   ===================== */

.tuto-seo-card {
    border-top: 2px solid var(--primary-color);
}

.tuto-seo-content {
    color: var(--text-medium);
    line-height: 1.6;
}

.tuto-seo-content h2 {
    margin: var(--space-8) 0 var(--space-4);
    font-size: var(--fs-xl);
    color: var(--text-dark);
}

.tuto-seo-content h2:first-child {
    margin-top: 0;
}

.tuto-seo-content h3 {
    margin: var(--space-6) 0 var(--space-3);
    font-size: var(--fs-lg);
    color: var(--text-dark);
}

.tuto-seo-content p {
    margin-bottom: var(--space-4);
}

.tuto-seo-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tuto-seo-content a:hover {
    color: var(--primary-dark);
}

.tuto-seo-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* =====================
   COLONNE LATÉRALE
   ===================== */

.sidebar-card-creator {
    border-top: 2px solid var(--primary-color);
}

.creator-profile {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: calc(-1 * var(--space-3));
    padding: var(--space-3);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.creator-profile:hover {
    background: var(--background-light);
}

.creator-profile img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-full);
}

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

.creator-name {
    font-weight: 700;
    color: var(--text-dark);
}

.creator-link {
    font-size: var(--fs-sm);
    color: var(--primary-color);
}

/* Liste d'informations */
.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-size: var(--fs-sm);
    color: var(--text-light);
}

.info-value {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-dark);
}

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

@media (max-width: 768px) {
    .tuto-hero-meta {
        flex-direction: column;
        gap: var(--space-3);
    }
}
