/* =========================================================
   PAGES PROJET / STAGE — Styles partagés
   Utilisé par : stage-1.php, stage-3310street.php,
                 projet-gamestore.php, projet-java.php
   ========================================================= */

.stage-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.stage-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--hero-grad-from) 0%, var(--primary) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stage-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.back-btn:hover {
    color: var(--primary);
}

.task-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.task-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: var(--bg-card2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.task-content {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.task-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.task-content li {
    margin-bottom: 0.5rem;
}

.task-content li strong {
    color: var(--text);
}

/* Step number badge (for multi-step project pages) */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.task-header-left {
    display: flex;
    align-items: center;
}

/* Screenshot embed */
.task-screenshot {
    margin-top: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center; /* Pour centrer l'image si besoin */
}

.task-screenshot img {
    max-width: 85%;
    height: auto;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   GLOSSAIRE TECHNIQUE (VULGARISATION)
   ========================================================= */

.glossary-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, rgba(167, 139, 250, 0.02) 100%);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.glossary-section::before {
    content: 'i';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: rgba(167, 139, 250, 0.05);
}

.glossary-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.glossary-item h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.glossary-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
