/* tools.css — styles partagés des outils interactifs Pleine Nuit (DA nocturne dark).
   Consomme les tokens :root du styles.css du front (palette, fonts, radius, ombres). */

.tool-hero { padding: 4rem 0 1.5rem; text-align: center; }
.tool-hero .overline { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; display: block; margin-bottom: .8rem; }
.tool-hero h1 { font-size: 2.6rem; margin-bottom: 1rem; }
.tool-hero p { max-width: 640px; margin: 0 auto; color: var(--text-light); font-size: 1.1rem; }

.tool-wrap { max-width: 740px; margin: 0 auto 4rem; padding: 0 20px; }

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.tool-field { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .55rem; text-align: left; }
.tool-field > label { font-weight: 600; }
.tool-field .hint { font-size: .82rem; color: var(--text-light); }
.tool-field input[type="time"],
.tool-field input[type="number"],
.tool-field select {
    padding: .8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--fill);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.tool-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt-btn {
    flex: 1 1 auto; min-width: 110px;
    padding: .7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--fill);
    color: var(--text);
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    font-size: .95rem;
}
.opt-btn:hover { border-color: var(--primary); }
.opt-btn.selected { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }

.tool-checks { display: flex; flex-direction: column; gap: .65rem; }
.tool-checks label { display: flex; align-items: center; gap: .6rem; font-weight: 400; cursor: pointer; }
.tool-checks input { width: 18px; height: 18px; accent-color: var(--primary); }

.tool-actions { margin-top: 1rem; }
.tool-actions .btn-primary { width: 100%; justify-content: center; }

.tool-result { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }
.tool-result.hidden { display: none; }
.result-badge {
    display: inline-block;
    background: var(--primary); color: var(--on-primary);
    font-weight: 700; padding: .5rem 1.2rem; border-radius: 30px;
    font-size: 1.05rem; margin-bottom: 1rem;
}
.tool-result h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.tool-result p { color: var(--text-light); }

.times-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1.5rem 0 .5rem; }
.time-chip { background: var(--fill); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.4rem; min-width: 120px; }
.time-chip strong { display: block; font-size: 1.6rem; color: var(--primary); font-family: var(--font-serif); line-height: 1.1; }
.time-chip span { font-size: .8rem; color: var(--text-light); }

.tool-note { font-size: .85rem; color: var(--text-light); margin-top: 1.75rem; line-height: 1.55; border-top: 1px dashed var(--border); padding-top: 1.25rem; }
.tool-note a { color: var(--primary); }

.ymyl-callout {
    background: var(--callout-bg, #2A2410);
    color: var(--callout-text, #E8C77A);
    border: 1px solid var(--callout-border, #4A3F1C);
    border-radius: 6px; padding: 1rem 1.25rem; margin-top: 1.5rem;
    font-size: .9rem; line-height: 1.5; text-align: left;
}

@media (max-width: 600px) {
    .tool-hero h1 { font-size: 2rem; }
    .tool-card { padding: 1.5rem; }
}
