/* ========================================
   Pages with primary background (Equipe, etc.)
   ======================================== */
body.primary-bg {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Main Content for Equipe pages */
main {
    padding-top: 128px;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-badge {
    display: inline-block;
    background: rgba(220, 175, 77, 0.2);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 32px;
    background: var(--accent);
    border-radius: 2px;
}


/* ========================================
   Players Grid (Effectif page)
   ======================================== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.player-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.player-card:hover {
    border-color: rgba(220, 175, 77, 0.5);
    box-shadow: 0 20px 40px rgba(220, 175, 77, 0.1);
}

.player-photo {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.player-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.player-photo-default {
    width: 50%;
    height: auto;
    object-fit: contain;
    opacity: 0.3;
}

.player-number {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.player-flag-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.player-info {
    padding: 1.25rem;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-flag {
    font-size: 1.5rem;
}

.player-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-name strong {
    font-weight: 700;
}

.player-position {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    border: 1px solid;
}

.position-pointu,
.position-central,
.position-receptionneur {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
    border-color: rgba(59, 130, 246, 0.3);
}

.position-libero {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(252, 165, 165);
    border-color: rgba(239, 68, 68, 0.3);
}

.position-passeur {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(134, 239, 172);
    border-color: rgba(34, 197, 94, 0.3);
}

.player-stats {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}


/* ========================================
   Staff Grid (Effectif & Staff pages)
   ======================================== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.staff-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.staff-card:hover {
    border-color: rgba(220, 175, 77, 0.5);
    box-shadow: 0 20px 40px rgba(220, 175, 77, 0.1);
}

.staff-photo {
    position: relative;
    aspect-ratio: 1/1;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.staff-info {
    padding: 1.5rem;
}

.staff-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.staff-role {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.staff-bio {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Simple staff card (effectif page) */
.staff-card h4.staff-name {
    font-weight: 700;
    padding: 1.5rem;
    padding-bottom: 0;
}

.staff-card p.staff-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    padding: 0 1.5rem 1.5rem;
}


/* ========================================
   Pages with Primary Background (blue)
   ======================================== */
body.primary-bg {
    background-color: var(--primary);
    color: var(--primary-foreground);
    min-height: 100vh;
}

body.primary-bg main {
    padding-top: 128px;
    padding-bottom: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Download Card */
.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: rgba(220, 175, 77, 0.5);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 175, 77, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.download-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.download-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dcaf4d 0%, #e5c171 100%);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: scale(1.05);
}

/* Steps Section */
.steps-list {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-item:first-child {
    padding-top: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Tarifs Grid */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tarif-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.tarif-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tarif-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tarif-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Planning Table */
.planning-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.planning-table table {
    width: 100%;
    border-collapse: collapse;
}

.planning-table th,
.planning-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.planning-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.planning-table td {
    color: rgba(255, 255, 255, 0.8);
}

.planning-table tr:last-child td {
    border-bottom: none;
}

/* Info Box */
.info-box {
    background: rgba(220, 175, 77, 0.1);
    border: 1px solid rgba(220, 175, 77, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box svg {
    color: var(--accent);
    flex-shrink: 0;
}

.info-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

