/* ==========================================================================
   DOWNLOAD.CSS — Page téléchargement — Style Épique / Dark Fantasy
   Dépend de : global.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ==========================================================================
   PAGE BASE
   ========================================================================== */
.download-page {
    flex: 1;
    background: #060b14;
    font-family: 'Rajdhani', Arial, sans-serif;
    color: #e2e8f0;
    position: relative;
    overflow-x: hidden;
    padding: 80px 24px 100px;
    max-width: 100%;
    margin: 0;
}

/* Grille de fond */
.download-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(251,191,36,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251,191,36,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Halo doré central */
.download-page::after {
    content: '';
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(251,191,36,0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.download-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
    position: relative;
    z-index: 1;
}

.download-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(251,191,36,0.4), 0 0 60px rgba(251,191,36,0.12);
    margin: 0 0 20px;
    line-height: 1.1;
}

.download-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto 0;
}

.download-intro {
    color: #64748b;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 16px 0 0;
    line-height: 1.6;
}

/* ==========================================================================
   GRILLE DE TÉLÉCHARGEMENT
   ========================================================================== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CARTE DE TÉLÉCHARGEMENT
   ========================================================================== */
.download-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(251,191,36,0.12);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s, transform 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Coin supérieur gauche */
.download-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border-top: 2px solid rgba(251,191,36,0.4);
    border-left: 2px solid rgba(251,191,36,0.4);
    border-radius: 16px 0 0 0;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Coin inférieur droit */
.download-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 36px; height: 36px;
    border-bottom: 2px solid rgba(251,191,36,0.18);
    border-right: 2px solid rgba(251,191,36,0.18);
    border-radius: 0 0 16px 0;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Reflet de survol */
.download-card .card-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(251,191,36,0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.download-card:hover {
    border-color: rgba(251,191,36,0.35);
    background: rgba(251,191,36,0.04);
    transform: translateY(-6px);
}

.download-card:hover::before {
    width: 52px; height: 52px;
    border-color: var(--gold);
}

.download-card:hover::after {
    border-color: rgba(251,191,36,0.3);
}

.download-card:hover .card-shine {
    left: 160%;
}

/* Icône hébergeur */
.download-card__icon {
    width: 72px; height: 72px;
    border-radius: 16px;
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: background 0.3s, border-color 0.3s, transform 0.25s;
    flex-shrink: 0;
}

.download-card:hover .download-card__icon {
    background: rgba(251,191,36,0.14);
    border-color: rgba(251,191,36,0.4);
    transform: scale(1.08);
}

/* Nom hébergeur */
.download-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Description */
.download-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.3px;
    flex: 1;
}

/* Taille fichier (optionnel) */
.download-card__size {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.75rem;
    color: #475569;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Bouton de téléchargement */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gold);
    color: #000;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, box-shadow 0.3s, transform 0.15s;
    box-shadow: 0 0 20px rgba(251,191,36,0.25);
    width: 100%;
    margin-top: 4px;
}

/* Shimmer sur le bouton */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: btn-shimmer 3.5s ease-in-out infinite;
}

@keyframes btn-shimmer {
    0%   { left: -100%; }
    55%  { left: 160%; }
    100% { left: 160%; }
}

.download-btn:hover {
    background: #fde68a;
    color: #000;
    box-shadow: 0 0 35px rgba(251,191,36,0.55);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Flèche animée dans le bouton */
.download-btn svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.download-btn:hover svg {
    transform: translateY(2px);
}

/* ==========================================================================
   NOTE DE BAS DE PAGE
   ========================================================================== */
.download-note {
    text-align: center;
    margin-top: 50px;
    color: #334155;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
    .download-page  { padding: 50px 16px 70px; }
    .download-title { letter-spacing: 3px; }
    .download-grid  { grid-template-columns: 1fr; gap: 20px; }
    .download-card  { padding: 30px 20px; }
    .download-btn   { padding: 12px 20px; }
}