/* Page /coloriages-fee */

/* Les filtres masquent via l'attribut [hidden]. Aucune regle .coloriage-card ne
   pose de display: aujourd'hui, donc le display:none du navigateur passe — mais
   une regle ajoutee plus tard gagnerait en specificite. Garde-fou explicite. */
.fee-card[hidden],
.fee-theme[hidden],
.fee-empty[hidden],
[data-fee-count][hidden] { display: none !important; }

.fee-breadcrumb {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.fee-breadcrumb a { color: var(--primary); text-decoration: none; }
.fee-breadcrumb a:hover { text-decoration: underline; }
.fee-breadcrumb span { margin: 0 0.35rem; }

.fee-hero {
    background: linear-gradient(180deg, var(--primary-bg), var(--bg));
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.fee-hero h1 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.fee-hero-sub {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.fee-updated {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.fee-summary {
    max-width: 720px;
    margin: 1.5rem auto 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}
.fee-summary p { margin: 0; font-size: 0.95rem; line-height: 1.65; }

.fee-section { padding: 3rem 0; }
.fee-section h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.fee-section h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.fee-lead {
    color: var(--text-muted);
    max-width: 760px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.fee-note {
    background: var(--primary-bg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 1.5rem;
}

/* Filtres */
.fee-filters {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.fee-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.fee-filter-group:last-of-type { margin-bottom: 0; }
.fee-filter-label {
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 80px;
    color: var(--text);
}
.fee-chip {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 36px;
}
.fee-chip:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.fee-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}
.fee-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.fee-filter-count {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Sous-themes */
.fee-theme { margin-bottom: 2.5rem; }
.fee-theme h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.fee-theme-n {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    font-weight: 800;
}
.fee-theme-blurb {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 720px;
}
.fee-card { margin: 0; }
.fee-card-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.4rem 0 0.6rem;
}
.fee-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Ce qu'on n'a pas */
.fee-gap { background: var(--bg-white); }
.fee-gap-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fee-gap-list li {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.fee-gap-answer {
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.fee-gap-answer h3 { margin-top: 0; }
.fee-gap-answer p { line-height: 1.7; margin-bottom: 1rem; }
.fee-gap-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 0;
}
.fee-reassure { font-size: 0.82rem; color: var(--text-muted); }

/* Palettes */
.fee-palettes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.fee-palette {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
}
.fee-palette h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.fee-palette-for {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
}
.fee-swatches { list-style: none; padding: 0; margin: 0; }
.fee-swatches li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.fee-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.fee-swatch-txt { display: flex; flex-direction: column; font-size: 0.8rem; line-height: 1.35; }
.fee-swatch-txt code { color: var(--text-light); font-size: 0.72rem; }
.fee-swatch-txt em { color: var(--text-muted); font-style: normal; font-size: 0.75rem; }

/* Tableau papier */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}
.fee-table caption {
    caption-side: top;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-bottom: 0.5rem;
}
.fee-table th, .fee-table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.fee-table thead th { background: var(--primary-bg); font-size: 0.82rem; }
.fee-table tbody tr:last-child td { border-bottom: none; }

.fee-steps { padding-left: 1.2rem; max-width: 780px; }
.fee-steps li { margin-bottom: 0.6rem; line-height: 1.65; }

/* Usages */
.fee-usecases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.fee-usecase {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
}
.fee-usecase h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.fee-usecase p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* FAQ */
.fee-faq-section { background: var(--bg-white); }
.fee-faq { max-width: 800px; }
.fee-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    background: var(--bg-white);
}
.fee-faq-item summary {
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fee-faq-item summary::-webkit-details-marker { display: none; }
.fee-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
    margin-left: 1rem;
}
.fee-faq-item[open] summary::after { content: '\2212'; }
.fee-faq-item summary h3 { margin: 0; font-size: 0.98rem; display: inline; }
.fee-faq-item p {
    padding: 0 1.1rem 1rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* Maillage */
.fee-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem; }
.fee-links li {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.fee-links a { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.fee-links a:hover { text-decoration: underline; }
.fee-links span { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; }

@media (max-width: 640px) {
    .fee-hero h1 { font-size: 1.6rem; }
    .fee-filter-label { min-width: 100%; }
    .fee-table { display: block; overflow-x: auto; }
    .fee-gap-cta { flex-direction: column; align-items: stretch; }
}
