/* Jean home — Simple-density commercial home.
 *
 * Plain-language: a single 720px column at reading width. Generous
 * whitespace. Bigger type than the Standard view. No tables above
 * the fold. Three blocks of cards in the middle, three feux
 * tricolores below. The page reads like a printed memo.
 */

.cjh-root {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 64px;
    color: var(--text-primary);
    /* WHY: 16-18px body type per scope §4.3 — Simple density signals
       "take your time", which means more leading and bigger letters
       than the dense view. */
    font-size: 16px;
    line-height: 1.6;
}

.cjh-loading {
    color: var(--text-muted);
    font-style: italic;
    padding: 32px 0;
    text-align: center;
}

.cjh-block {
    margin-bottom: 36px;
}

.cjh-section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.cjh-section-hint {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: -4px 0 12px;
}

.cjh-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
}

.cjh-error {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}
.cjh-error h1 {
    color: var(--text-bright);
    font-size: 24px;
    margin: 0 0 10px;
}
.cjh-error p {
    color: var(--text-secondary);
    margin: 0 0 10px;
}
.cjh-error-support {
    color: var(--text-muted);
    font-size: 14px;
}
.cjh-error-actions {
    margin-top: 18px;
}
.cjh-error-retry {
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    color: var(--text-on-accent, #fff);
    cursor: pointer;
    font-weight: 600;
    padding: 10px 18px;
}
.cjh-error-retry:hover {
    filter: brightness(1.05);
}

/* ---- Block 1: La une du jour ---- */
.cjh-une-date {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.cjh-une-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-bright);
    margin: 0 0 16px;
    letter-spacing: -0.4px;
}
.cjh-une-paragraph {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-primary);
    margin: 0;
    /* WHY: serif-friendly weight without forcing a serif font (the
       project uses the OS sans stack). Larger type signals "this
       is the headline, read it". */
}

/* ---- Block 2: Les trois chiffres ---- */
.cjh-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 700px) {
    .cjh-cards { grid-template-columns: 1fr; }
}

.cjh-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}
.cjh-card-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}
.cjh-card-value {
    color: var(--text-bright);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 6px;
    /* WHY: numbers are the point of these cards — make them the
       biggest thing on screen. */
}
.cjh-card-hint {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* ---- Block 3: Ce qui demande votre œil ---- */
.cjh-oeil-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cjh-oeil-line {
    border-top: 1px solid var(--border);
}
.cjh-oeil-line:last-child {
    border-bottom: 1px solid var(--border);
}
.cjh-oeil-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    color: var(--text-primary);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.1s;
}
.cjh-oeil-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-bright);
}
.cjh-oeil-money {
    font-family: var(--mono);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

/* ---- Block 4: Météo des équipes ---- */
.cjh-meteo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cjh-meteo-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.cjh-meteo-item:last-child {
    border-bottom: 1px solid var(--border);
}
.cjh-meteo-dot {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 4px;
    /* WHY: feux tricolores — green / amber / red. The traffic-light
       framing was a deliberate choice in scope §4.3 because Jean
       reads the page in three seconds and a colour-coded dot is the
       fastest signal. */
}
.cjh-meteo-green { background: var(--green); }
.cjh-meteo-amber { background: var(--yellow); }
.cjh-meteo-red   { background: var(--red); }

.cjh-meteo-text { flex: 1; }
.cjh-meteo-branch {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 15px;
    margin-bottom: 2px;
}
.cjh-meteo-sentence {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ---- Footer: link to dense view ---- */
.cjh-footer {
    text-align: center;
    margin-top: 16px;
}
.cjh-footer-link {
    display: inline-block;
    padding: 10px 18px;
    color: var(--accent);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-dim);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cjh-footer-link:hover {
    background: var(--accent-dim);
    color: var(--text-bright);
}
