/**
 * loto.css
 * Styles spécifiques aux pages Loto
 * Emplacement: css/loto.css
 */

/* ============================================
   PAGE LOTO HOME - CSS COMPLET
   ============================================ */

.loto-home-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.loto-home-page .container {
    max-width: calc(1300px + 4rem);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb - aligné à gauche comme les autres pages */
.breadcrumb-nav {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.breadcrumb-nav .container {
    max-width: calc(1300px + 4rem);
    margin: 0 auto;
    padding: 0 2rem;
}
.breadcrumb-nav .breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}
.breadcrumb-nav .breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-nav .breadcrumb-item::after {
    content: "›";
    margin: 0 0.5rem;
    color: #9ca3af;
}
.breadcrumb-nav .breadcrumb-item:last-child::after {
    display: none;
}
.breadcrumb-nav .breadcrumb-item a {
    color: #2563eb;
    text-decoration: none;
}
.breadcrumb-nav .breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-nav .breadcrumb-item.active span {
    color: #6b7280;
}

/* Hero */
.loto-hero {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 2rem 0;
    color: #fff;
}
.loto-hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: center;
}
.loto-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.loto-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}
.loto-hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Jackpot Widget */
.jackpot-widget {
    background: linear-gradient(145deg, #1e40af, #1d4ed8);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.jackpot-header { margin-bottom: 0.5rem; }
.jackpot-label { display: block; font-size: 0.9rem; opacity: 0.8; }
.jackpot-date { display: block; font-size: 0.85rem; opacity: 0.7; }
.jackpot-amount { font-size: 2.25rem; font-weight: 800; margin: 0.5rem 0; }
.jackpot-bonus { background: rgba(255,255,255,0.15); padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.8rem; display: inline-block; margin-bottom: 1rem; }
.jackpot-play-btn {
    display: block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e3a8a;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.jackpot-play-btn:hover { transform: scale(1.03); }

/* Quick Nav */
.quick-nav {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.quick-nav-grid { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.quick-nav-item:hover { background: #dc2626; color: #fff; }
.quick-nav-icon { font-size: 1.1rem; }

/* Content Grid */
.loto-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
}

/* Sections */
.content-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}
.section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-icon { font-size: 1.1rem; }
.section-link { color: #dc2626; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.section-link:hover { text-decoration: underline; }

/* Result Showcase */
.result-showcase {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.result-main { margin-bottom: 1.25rem; }
.result-label { font-size: 0.9rem; color: #92400e; margin-bottom: 0.75rem; font-weight: 500; }
.result-balls { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.result-balls-small { gap: 0.4rem; }

/* Balls */
.ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.ball-main { background: linear-gradient(145deg, #1e40af, #1d4ed8); color: #fff; }
.ball-chance { background: linear-gradient(145deg, #dc2626, #b91c1c); color: #fff; }
.ball-second { background: linear-gradient(145deg, #059669, #047857); color: #fff; width: 42px; height: 42px; font-size: 1rem; }
.ball-cold { background: linear-gradient(145deg, #6b7280, #4b5563); color: #fff; }

.mini-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    background: #1d4ed8;
    color: #fff;
}
.mini-ball-chance { background: #dc2626; }

.result-second { margin: 1rem 0; padding-top: 1rem; border-top: 1px dashed #d97706; }
.result-joker { background: rgba(255,255,255,0.6); padding: 0.75rem 1.25rem; border-radius: 8px; display: inline-block; margin: 1rem 0; }
.joker-label { color: #16a34a; font-weight: 700; margin-right: 0.75rem; }
.joker-value { font-family: 'Courier New', monospace; font-size: 1.1rem; font-weight: 700; letter-spacing: 3px; }
.result-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    text-align: center;
}
.btn-primary { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #ef4444, #dc2626); transform: translateY(-1px); }
.btn-secondary { background: #1d4ed8; color: #fff; }
.btn-secondary:hover { background: #1e40af; }
.btn-outline { background: #fff; color: #dc2626; border: 2px solid #dc2626; }
.btn-outline:hover { background: #dc2626; color: #fff; }
.btn-play { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.btn-play:hover { background: linear-gradient(135deg, #fb923c, #f97316); }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }

/* Tirages List */
.tirages-list { display: flex; flex-direction: column; gap: 0.5rem; }
.tirage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}
.tirage-item:hover { background: #f3f4f6; transform: translateX(3px); }
.tirage-date { min-width: 110px; }
.tirage-day { display: block; font-weight: 600; font-size: 0.9rem; color: #1f2937; }
.tirage-full-date { font-size: 0.8rem; color: #6b7280; }
.tirage-numbers { display: flex; gap: 0.25rem; flex: 1; justify-content: center; }
.tirage-arrow { color: #dc2626; font-weight: 700; }

/* Next Draw */
.next-draw-card { background: linear-gradient(135deg, #1e40af, #1d4ed8); border-radius: 12px; padding: 1.5rem; color: #fff; }
.next-draw-info { display: flex; justify-content: space-around; margin-bottom: 1.25rem; text-align: center; }
.next-day { display: block; font-size: 1.1rem; font-weight: 600; }
.next-date { display: block; font-size: 0.95rem; }
.next-time { display: block; font-size: 0.85rem; opacity: 0.7; }
.jackpot-small-label { display: block; font-size: 0.85rem; opacity: 0.8; }
.jackpot-big-amount { display: block; font-size: 1.75rem; font-weight: 800; }
.next-draw-actions { display: flex; gap: 0.75rem; justify-content: center; }
.next-draw-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.next-draw-actions .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stats-card { background: #f9fafb; border-radius: 10px; padding: 1rem; }
.stats-card h3 { font-size: 0.9rem; margin: 0 0 0.75rem 0; color: #374151; }
.stats-balls { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.stat-ball-item { text-align: center; }
.stat-ball-item .ball { width: 40px; height: 40px; font-size: 1rem; }
.stat-count { display: block; font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }
.section-cta { text-align: center; margin-top: 1rem; }

/* Calculator Promo */
.calculator-promo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #a7f3d0;
}
.promo-text { font-size: 1rem; color: #065f46; margin: 0 0 0.75rem 0; font-weight: 500; }
.promo-features { list-style: none; padding: 0; margin: 0; }
.promo-features li { padding: 0.3rem 0; color: #047857; font-size: 0.9rem; }
.calculator-promo-action { flex-shrink: 0; }

/* Content Text */
.content-text h2 { font-size: 1.3rem; margin: 0 0 1rem 0; display: flex; align-items: center; gap: 0.5rem; }
.content-text h3 { font-size: 1.1rem; color: #1f2937; margin: 1.5rem 0 0.75rem 0; }
.content-text p { color: #4b5563; line-height: 1.7; margin: 0 0 1rem 0; }
.content-text ul { margin: 0.5rem 0 1rem 0; padding-left: 1.25rem; color: #4b5563; }
.content-text li { margin-bottom: 0.4rem; line-height: 1.6; }

/* Table */
.table-responsive { overflow-x: auto; margin: 1rem 0; }
.gains-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.gains-table th, .gains-table td { padding: 0.7rem 0.75rem; border: 1px solid #e5e7eb; text-align: left; }
.gains-table th { background: #f9fafb; font-weight: 600; color: #374151; }
.gains-table tr:nth-child(even) { background: #f9fafb; }
.gains-table tr.highlight { background: #fef3c7; }
.cta-box { text-align: center; margin: 1.5rem 0; }

/* Sidebar */
.loto-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-widget { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.widget-cta-header { background: linear-gradient(135deg, #dc2626, #b91c1c); padding: 1rem; text-align: center; }
.widget-logo { font-size: 1.25rem; font-weight: 800; color: #fff; }
.widget-cta-body { padding: 1.25rem; text-align: center; }
.widget-jackpot { display: block; font-size: 1.75rem; font-weight: 800; color: #1d4ed8; margin-bottom: 0.25rem; }
.widget-date { display: block; font-size: 0.9rem; color: #6b7280; margin-bottom: 1rem; }
.btn-widget {
    display: block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
.btn-widget:hover { background: linear-gradient(135deg, #fb923c, #f97316); }

.widget-nav h3, .widget-other h3, .widget-info h3 {
    font-size: 1rem;
    padding: 0.85rem 1rem;
    margin: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li { border-bottom: 1px solid #f3f4f6; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.sidebar-widget ul li a:hover { background: #fef2f2; color: #dc2626; }
.info-list li { padding: 0.6rem 1rem !important; font-size: 0.85rem; color: #4b5563; }
.info-list strong { color: #1f2937; }

/* Warning */
.warning-section { background: #fff3cd; padding: 1rem 0; margin-top: 2rem; }
.warning-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.warning-badge { background: #dc2626; color: #fff; padding: 0.5rem 0.75rem; border-radius: 6px; font-weight: 700; font-size: 0.9rem; }
.warning-box p { margin: 0; font-size: 0.85rem; color: #78350f; flex: 1; }

/* Responsive */
@media (max-width: 1024px) {
    .loto-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .loto-hero-jackpot { max-width: 350px; margin: 0 auto; }
    .loto-content-grid { grid-template-columns: 1fr; }
    .loto-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .loto-hero h1 { font-size: 1.4rem; }
    .quick-nav-grid { gap: 0.4rem; }
    .quick-nav-item { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    .quick-nav-text { display: none; }
    .quick-nav-icon { font-size: 1.3rem; }
    .ball { width: 42px; height: 42px; font-size: 1rem; }
    .mini-ball { width: 28px; height: 28px; font-size: 0.75rem; }
    .tirage-numbers { display: none; }
    .next-draw-info { flex-direction: column; gap: 1rem; }
    .next-draw-actions { flex-direction: column; }
    .calculator-promo { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .loto-hero { padding: 1.5rem 0; }
    .content-section { padding: 1rem; }
    .result-showcase { padding: 1rem; }
    .ball { width: 38px; height: 38px; font-size: 0.95rem; }
    .result-actions { flex-direction: column; }
    .btn { width: 100%; }
}