/**
 * outils.css
 * Styles pour les pages outils (calculateur, generateur, statistiques)
 * Emplacement: css/outils.css
 */

/* ============================================
   LAYOUT PAGE CALCULATEUR
   ============================================ */
.calculateur-page-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: calc(1300px + 4rem);
    margin: 0 auto;
    padding: 20px 2rem;
    position: relative;
    z-index: 1;
}

.calculateur-main {
    min-width: 0;
}

.calculateur-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.calculateur-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculateur-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px 0;
}

.calculateur-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* ============================================
   CARTE CALCULATEUR
   ============================================ */
.calculateur-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Steps */
.calculateur-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

/* ============================================
   FORMULAIRE
   ============================================ */
.calculateur-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.label-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 13px;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Options 1er/2nd tirage */
.option-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.option-buttons {
    display: flex;
    gap: 10px;
}

.option-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover:not(:disabled) {
    border-color: #3b82f6;
}

.option-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-color: #1e40af;
    color: #fff;
}

.option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.option-info {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* ============================================
   GRILLE DES NUMEROS
   ============================================ */
.numeros-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.numero-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.15s;
}

.numero-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.numero-btn.selected {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
    border-color: #1e40af;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Info selection */
.selection-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
}

.btn-reset {
    padding: 6px 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: #1e3a5f;
}

/* ============================================
   GRILLE CHANCE
   ============================================ */
.chance-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

.chance-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fecaca;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.15s;
}

.chance-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.chance-btn.selected {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
    border-color: #991b1b;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* ============================================
   BOUTON CALCULER
   ============================================ */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-calculer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-calculer:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-calculer:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-calculer .btn-icon {
    font-size: 24px;
}

/* ============================================
   RESULTATS
   ============================================ */
.resultats-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resultats-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Comparaison grilles */
.comparaison-grilles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.grille-bloc {
    text-align: center;
}

.grille-bloc h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grille-numeros {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.grille-separator {
    font-size: 24px;
    font-weight: 700;
    color: #94a3b8;
}

/* Boules resultat */
.result-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.result-ball.good {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    border: 3px solid #15803d;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.result-ball.bad {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 50%, #475569 100%);
    border: 3px solid #334155;
}

.result-ball.chance.good {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    border: 3px solid #15803d;
}

.result-ball.chance.bad {
    background: linear-gradient(180deg, #fca5a5 0%, #f87171 50%, #ef4444 100%);
    border: 3px solid #dc2626;
}

.result-ball.official {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
    border: 3px solid #1e40af;
}

.result-ball.official.chance {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
    border: 3px solid #991b1b;
}

.result-separator {
    font-size: 20px;
    font-weight: bold;
    color: #94a3b8;
    margin: 0 5px;
}

/* Message resultat */
.gain-result {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.gain-result.win,
.gain-result.jackpot {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
}

.gain-result.jackpot {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fcd34d;
}

.gain-result.lose {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
}

.gain-icon {
    font-size: 48px;
}

.gain-text {
    flex: 1;
}

.gain-text strong {
    display: block;
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.gain-text span {
    display: block;
    font-size: 14px;
    color: #64748b;
}

.gain-rang {
    margin-top: 8px;
    font-weight: 600 !important;
    color: #059669 !important;
}

.gain-hint {
    font-style: italic;
    font-size: 13px !important;
}

.gain-amount {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
}

.gain-result.jackpot .gain-amount {
    color: #b45309;
}

/* Gains reference */
.gains-reference {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.gains-reference h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 15px 0;
}

/* Actions resultats */
.resultats-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-rejouer {
    padding: 14px 28px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rejouer:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-voir-tirage {
    padding: 14px 28px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-voir-tirage:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* ============================================
   WIDGET DERNIER TIRAGE
   ============================================ */
.dernier-tirage-widget {
    background: linear-gradient(135deg, #1e3a5f 0%, #334155 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.widget-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.widget-date {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

.widget-balls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-separator {
    color: #fff;
    opacity: 0.6;
    font-weight: bold;
}

.btn-voir-resultats {
    padding: 10px 20px;
    background: #fff;
    color: #1e3a5f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-voir-resultats:hover {
    background: #f1f5f9;
}

/* ============================================
   CONTENU SEO
   ============================================ */
.seo-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.seo-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

.seo-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin: 30px 0 15px 0;
}

.seo-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.seo-intro p {
    margin: 0 0 15px 0;
}

/* Steps SEO */
.seo-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.seo-step {
    background: #fff;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.seo-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.seo-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 8px 0;
}

.seo-step p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Tableau des rangs */
.rangs-table {
    margin-top: 20px;
    overflow-x: auto;
}

.rangs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rangs-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}

.rangs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e3a5f;
}

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

.rangs-table .rang-jackpot {
    background: linear-gradient(90deg, #fef3c7 0%, #fef9c3 100%);
}

.rangs-table .rang-jackpot td {
    font-weight: 600;
    color: #b45309;
}

/* ============================================
   SIDEBAR WIDGETS SPECIAUX
   ============================================ */
.widget-jackpot-big {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #fff;
}

.widget-loto-logo {
    display: inline-block;
    background: #fff;
    color: #1e40af;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.widget-jackpot-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.widget-jackpot-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-jouer-widget {
    display: block;
    background: #fff;
    color: #1e40af;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-jouer-widget:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

/* ============================================
   PAGE STATISTIQUES LOTO
   ============================================ */
.stats-page-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: calc(1300px + 4rem);
    margin: 0 auto;
    padding: 20px 2rem;
    position: relative;
    z-index: 1;
}

.stats-main {
    min-width: 0;
}

.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header */
.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px 0;
}

.stats-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 5px 0;
}

.stats-update {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   SECTION EN UN COUP D'OEIL
   ============================================ */
.stats-overview {
    margin-bottom: 30px;
}

.stats-overview h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.overview-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.overview-card.hot { box-shadow: inset 0 -3px 0 #ef4444; }
.overview-card.cold { box-shadow: inset 0 -3px 0 #3b82f6; }
.overview-card.late { box-shadow: inset 0 -3px 0 #f59e0b; }
.overview-card.chance { box-shadow: inset 0 -3px 0 #10b981; }

.card-icon {
    font-size: 32px;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.card-ball.blue {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
}

.card-ball.red {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
}

.card-stat {
    font-size: 13px;
    color: #475569;
}

/* ============================================
   SECTION CHAUDS ET FROIDS
   ============================================ */
.stats-hot-cold {
    margin-bottom: 30px;
}

.stats-hot-cold h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

.hot-cold-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hot-cold-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hot-cold-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 15px 0;
}

.balls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ball-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ball-stat .mini-ball {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.ball-stat .mini-ball.faded {
    opacity: 0.6;
}

.ball-stat .mini-ball.warning {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
    border-color: #b45309 !important;
}

.ball-stat .mini-ball.success {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%) !important;
    border-color: #15803d !important;
}

.ball-count {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* ============================================
   SECTION PALMARES
   ============================================ */
.stats-palmares {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.stats-palmares h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

/* Onglets */
.palmares-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.palmares-tab {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.palmares-tab:hover {
    background: #e2e8f0;
}

.palmares-tab.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
}

/* Panels */
.palmares-panel {
    display: none;
}

.palmares-panel.active {
    display: block;
}

/* Tableau */
.table-responsive {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.stats-table th {
    text-align: left;
    padding: 12px 10px;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.stats-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.stats-table th.sortable:hover {
    background: #f1f5f9;
}

.stats-table th.sortable::after {
    content: ' v';
    opacity: 0.3;
}

.stats-table th.sort-asc::after {
    content: ' ^';
    opacity: 1;
}

.stats-table th.sort-desc::after {
    content: ' v';
    opacity: 1;
}

.stats-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e3a5f;
}

.stats-table tbody tr:hover {
    background: #f8fafc;
}

.text-center {
    text-align: center;
}

.text-warning {
    color: #f59e0b !important;
    font-weight: 600;
}

/* Boules dans le tableau */
.table-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.table-ball.blue {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
}

.table-ball.red {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
}

.table-ball.purple {
    background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
}

/* Indicateurs de forme */
.forme-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}

.forme-indicator.good {
    background: #dcfce7;
    color: #16a34a;
}

.forme-indicator.bad {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   INFO BOXES
   ============================================ */
.stats-info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.info-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 10px 0;
}

.info-box p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   CONTENU SEO STATS
   ============================================ */
.stats-legend {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.stats-legend li {
    padding: 10px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #475569;
}

.disclaimer {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 20px;
    font-size: 14px;
    color: #92400e;
    margin-top: 25px;
}

/* ============================================
   SIDEBAR STATS
   ============================================ */
.widget-header.stats {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.stats-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-quick-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

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

.stat-label {
    color: #64748b;
}

.stat-value {
    font-weight: 600;
    color: #1e3a5f;
}

/* ============================================
   RESPONSIVE STATS
   ============================================ */
@media (max-width: 1024px) {
    .stats-page-container {
        grid-template-columns: 1fr;
    }
    
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-info-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-page-container {
        padding: 15px;
    }
    
    .stats-header h1 {
        font-size: 26px;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .overview-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hot-cold-grid {
        grid-template-columns: 1fr;
    }
    
    .palmares-tabs {
        flex-wrap: wrap;
    }
    
    .palmares-tab {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .stats-table {
        font-size: 12px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 8px 6px;
    }
    
    .table-ball {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* ============================================
   ANIMATION SPHERE LOTO
   ============================================ */
.loto-sphere-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.loto-sphere-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sphere-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: sphereEntrance 0.5s ease-out;
}

@keyframes sphereEntrance {
    from {
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.sphere-glass {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0.1) 20%,
        rgba(200,220,240,0.1) 40%,
        rgba(150,180,210,0.05) 60%,
        transparent 70%);
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 0 60px rgba(100,150,255,0.3),
        inset 0 0 80px rgba(255,255,255,0.1),
        inset 0 -50px 80px rgba(0,50,100,0.2);
    overflow: hidden;
    perspective: 800px;
    transform-style: preserve-3d;
}

.sphere-reflection {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 40%;
    height: 25%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%);
    border-radius: 50%;
    transform: rotate(-20deg);
    pointer-events: none;
}

.balls-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotateSphere 4s ease-in-out;
}

@keyframes rotateSphere {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotateX(180deg) rotateY(90deg);
    }
    50% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(180deg);
    }
    75% {
        transform: translate(-50%, -50%) rotateX(540deg) rotateY(270deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(720deg) rotateY(360deg);
    }
}

.sphere-ball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 
        inset -3px -3px 8px rgba(0,0,0,0.3),
        inset 3px 3px 8px rgba(255,255,255,0.4),
        2px 2px 8px rgba(0,0,0,0.3);
    animation: ballBounce var(--duration, 1.5s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transform: translate(-50%, -50%) 
               translateX(var(--start-x, 0px)) 
               translateY(var(--start-y, 0px)) 
               translateZ(var(--start-z, 0px));
}

.sphere-ball.selected {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
    border: 2px solid #1e40af;
    width: 42px;
    height: 42px;
    font-size: 16px;
    z-index: 10;
}

.sphere-ball.chance {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
    border: 2px solid #991b1b;
    width: 42px;
    height: 42px;
    font-size: 16px;
    z-index: 10;
}

.sphere-ball.random {
    background: linear-gradient(180deg, #e5e7eb 0%, #9ca3af 50%, #6b7280 100%);
    border: 2px solid #4b5563;
    opacity: 0.7;
}

@keyframes ballBounce {
    0%, 100% {
        transform: translate(-50%, -50%) 
                   translateX(var(--start-x, 0px)) 
                   translateY(var(--start-y, 0px)) 
                   translateZ(var(--start-z, 0px));
    }
    25% {
        transform: translate(-50%, -50%) 
                   translateX(calc(var(--start-x, 0px) * -0.5)) 
                   translateY(calc(var(--start-y, 0px) + 30px)) 
                   translateZ(calc(var(--start-z, 0px) * 1.5));
    }
    50% {
        transform: translate(-50%, -50%) 
                   translateX(calc(var(--start-x, 0px) * 0.8)) 
                   translateY(calc(var(--start-y, 0px) * -1)) 
                   translateZ(calc(var(--start-z, 0px) * -1));
    }
    75% {
        transform: translate(-50%, -50%) 
                   translateX(calc(var(--start-x, 0px) * -1.2)) 
                   translateY(calc(var(--start-y, 0px) - 20px)) 
                   translateZ(calc(var(--start-z, 0px) * 0.5));
    }
}

.sphere-base {
    width: 120px;
    height: 30px;
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    border-radius: 0 0 60px 60px;
    margin-top: -15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sphere-text {
    margin-top: 30px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    animation: textPulse 1s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive pour la sphere */
@media (max-width: 480px) {
    .sphere-glass {
        width: 220px;
        height: 220px;
    }
    
    .sphere-ball {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .sphere-ball.selected,
    .sphere-ball.chance {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .sphere-base {
        width: 90px;
        height: 24px;
    }
    
    .sphere-text {
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .calculateur-page-container {
        grid-template-columns: 1fr;
    }
    
    .calculateur-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .calculateur-page-container {
        padding: 15px;
    }
    
    .calculateur-header h1 {
        font-size: 26px;
    }
    
    .calculateur-card {
        padding: 20px;
    }
    
    .calculateur-steps {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .numeros-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .chance-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .numero-btn,
    .chance-btn {
        font-size: 13px;
    }
    
    .comparaison-grilles {
        flex-direction: column;
        gap: 20px;
    }
    
    .grille-separator {
        transform: rotate(90deg);
    }
    
    .gain-result {
        flex-direction: column;
        text-align: center;
    }
    
    .gain-amount {
        margin-top: 10px;
    }
    
    .seo-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-content {
        flex-direction: column;
        text-align: center;
    }
    
    .calculateur-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .numeros-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .result-ball {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .btn-calculer {
        width: 100%;
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .resultats-actions {
        flex-direction: column;
    }
    
    .btn-rejouer,
    .btn-voir-tirage {
        width: 100%;
        text-align: center;
    }
}