/* ============================================================
   Fiche — styles partagés agenda + emploi
   ============================================================ */

/* Tokens — aliasés sur les tokens globaux services (tokens.css) */
:root {
    --fiche-accent:        var(--color-services);
    --fiche-accent-hover:  var(--color-services-hover);
    --fiche-accent-light:  var(--color-services-light);
    --fiche-accent-text:   var(--color-services-text);
    --fiche-aside-bg:      #f5f5f2;
    --fiche-section-label: #1a1a2e;
}

/* En-tête */
.fiche-header {
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px; 
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.fiche-header__logo { flex-shrink: 0; }
.fiche-header__logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e8e6e0;
    background: #f5f4f0;
    display: block;
}
.fiche-header__logo-fallback {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f1efe8;
    border: 1px solid #e8e6e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #888780;
    letter-spacing: 0.03em;
}
.fiche-header__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fiche-header__info { flex: 1; min-width: 0; }

/* Titres */
.fiche-title {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a18;
    line-height: 1.3;
    margin: 0 0 6px;
}
.fiche-subtitle {
    font-size: 14px;
    color: #5f5e5a;
    margin: 0 0 6px;
    line-height: 1.4;
}
.fiche-org {
    font-size: 13px;
    color: #888780;
    margin: 0 0 12px;
}

/* Pills de métadonnées */
.fiche-meta-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fiche-meta-pill {
    font-size: 12px;
    color: #5f5e5a;
    background: #f5f4f0;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.fiche-meta-pill svg { width: 12px; height: 12px; opacity: 0.45; }

/* Highlight box (accroche) */
.fiche-highlight {
    border-left: 3px solid var(--fiche-accent);
    background: var(--fiche-accent-light);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--fiche-accent-text);
    line-height: 1.65;
}
.fiche-highlight p { margin: 0 0 8px; }
.fiche-highlight p:last-child { margin-bottom: 0; }

/* Layout 2 colonnes */
.fiche-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.fiche-col-main { flex: 1; min-width: 0; }
.fiche-col-side {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Section card */
.fiche-section {
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.fiche-section__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fiche-section-label);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1efe8;
}

/* Contenu HTML éditeur */
.fiche-descriptif {
    font-size: 13px;
    color: #5f5e5a;
    line-height: 1.7;
}
.fiche-descriptif p { margin: 0 0 10px; }
.fiche-descriptif p:last-child { margin-bottom: 0; }
.fiche-descriptif ul,
.fiche-descriptif ol { padding-left: 18px; margin: 0 0 10px; }

/* Document PDF */
.fiche-doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8e6e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a18;
    font-size: 13px;
    transition: background 0.15s;
}
.fiche-doc-link:hover { background: #f5f4f0; }
.fiche-doc-icon {
    width: 28px;
    height: 28px;
    background: var(--fiche-accent-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA sidebar */
.fiche-cta {
    background: #ffffff;
    border: 1px solid #e8e6e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.fiche-cta__btn-primary {
    display: block;
    width: 100%;
    padding: 11px;
    background: var(--fiche-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: background 0.15s;
}
.fiche-cta__btn-primary:hover { background: var(--fiche-accent-hover); color: #fff; }
.fiche-cta__btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    background: #fff;
    color: #1a1a18;
    border: 1px solid #d8d6d0;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
}
.fiche-cta__btn-secondary:hover { background: #f5f4f0; border-color: #c0beba; color: #1a1a18; }
.fiche-cta__btn-secondary:last-child { margin-bottom: 0; }
.fiche-cta__note {
    font-size: 11px;
    color: #888780;
    text-align: center;
    line-height: 1.5;
    margin: 8px 0 0;
}

/* Infos pratiques sidebar */
.fiche-info-list { display: flex; flex-direction: column; gap: 10px; }
.fiche-info-item { display: flex; flex-direction: column; gap: 2px; }
.fiche-info-lbl { font-size: 11px; color: #888780; }
.fiche-info-val { font-size: 13px; font-weight: 500; color: #1a1a18; }
.fiche-info-val--link {
    font-weight: 400;
    color: var(--fiche-accent);
    text-decoration: none;
    word-break: break-all;
}
.fiche-info-val--link:hover { text-decoration: underline; }

/* Synth rows (aside key-value) */
.synth-list { display: flex; flex-direction: column; }
.synth-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #f1efe8;
}
.synth-row:last-child { border-bottom: none; }
.synth-row__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #888780;
    font-weight: 600;
}
.synth-row__value {
    font-size: 13px;
    color: #1a1a18;
    font-weight: 500;
}
.synth-row__value a {
    color: var(--fiche-accent);
    text-decoration: none;
}
.synth-row__value a:hover { text-decoration: underline; }
.synth-row__value--alert {
    color: #991B1B;
    font-size: 12px;
}

/* Org badge (logo + nom recruteur) */
.org-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.org-badge__img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e8e6e0;
    object-fit: contain;
    background: #f5f4f0;
    flex-shrink: 0;
}
.org-badge__initials {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1efe8;
    border: 1px solid #e8e6e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #888780;
    flex-shrink: 0;
}
.org-badge__info { min-width: 0; }
.org-badge__name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a18;
    line-height: 1.3;
}
.org-badge__meta {
    font-size: 11px;
    color: #888780;
    line-height: 1.4;
    margin-top: 2px;
}

/* Tool buttons */
.fiche-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.fiche-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: #fff;
    color: #5f5e5a;
    border: 1px solid #e0deda;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.fiche-tool-btn:hover { background: #f5f4f0; color: #1a1a18; }
.fiche-tool-btn--active {
    background: #fff0f0;
    color: #991B1B;
    border-color: #fca5a5;
}
.fiche-tool-btn--active:hover { background: #fee2e2; }

/* Responsive */
@media (max-width: 640px) {
    .fiche-layout { flex-direction: column; }
    .fiche-col-side { width: 100%; position: static; }
    .fiche-header { flex-wrap: wrap; }
}
