/* E-stor'Huy — Fiche Document v1.0 */

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.efiche-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

.efiche-breadcrumb {
    font-size: 12px; color: #6b6b5a; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.efiche-breadcrumb a { color: #6b6b5a; }
.efiche-breadcrumb a:hover { color: #C9A84C; }
.efiche-breadcrumb span { color: #4a4a3a; }

.efiche-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* ── CONTENU PRINCIPAL ─────────────────────────────────────────────────── */
.efiche-entete { margin-bottom: 1.5rem; }

.efiche-badges {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: .75rem;
}
.efiche-badge-expl { font-size: 11px; color: #5a5a4a; font-style: italic; }
.efiche-type-badge {
    font-size: 11px; background: #1a1a17; border: .5px solid #2a2a25;
    color: #6b6b5a; padding: 2px 8px; border-radius: 2px;
}

.efiche-titre {
    font-family: Georgia, serif; font-size: 32px; color: #e8e0cc;
    font-style: italic; font-weight: 400; line-height: 1.2; margin-bottom: .75rem;
}

.efiche-annee-ligne {
    display: flex; align-items: center; gap: 10px; margin-bottom: .5rem;
}
.efiche-annee {
    font-family: Georgia, serif; font-size: 24px;
    color: #C9A84C; font-style: italic;
}
.efiche-certitude {
    font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.efiche-cert-certain    { background: rgba(34,197,94,.1);  border: .5px solid #22c55e; color: #86efac; }
.efiche-cert-approximatif{ background: rgba(245,158,11,.1); border: .5px solid #f59e0b; color: #fbbf24; }
.efiche-cert-inconnu    { background: rgba(150,150,150,.1); border: .5px solid #555;    color: #888; }

.efiche-themes { display: flex; gap: 5px; flex-wrap: wrap; margin-top: .5rem; }
.efiche-theme-tag {
    font-size: 11px; background: #1a1a17; border: .5px solid #2a2a25;
    color: #6b6b5a; padding: 2px 8px; border-radius: 10px;
}

/* ── MEDIA / IMAGE ─────────────────────────────────────────────────────── */
.efiche-media {
    margin-bottom: 1.5rem; position: relative;
    background: #111110; border: .5px solid #2a2a25; border-radius: 6px; overflow: hidden;
}
.efiche-image { width: 100%; height: auto; display: block; max-height: 500px; object-fit: contain; }
.efiche-media-droits {
    position: absolute; bottom: 8px; right: 8px;
    font-size: 10px; color: rgba(255,255,255,.5);
    background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 10px;
}

/* ── SECTIONS ──────────────────────────────────────────────────────────── */
.efiche-section {
    background: #111110; border: .5px solid #2a2a25; border-radius: 6px;
    padding: 1.25rem; margin-bottom: 1.25rem;
}
.efiche-section-titre {
    font-size: 11px; color: #6b6b5a; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: .5px solid #2a2a25;
    display: flex; align-items: center; gap: 8px;
}
.efiche-count-badge {
    background: #C9A84C; color: #111110; font-size: 11px;
    font-weight: 600; padding: 1px 7px; border-radius: 10px; font-family: sans-serif;
}
.efiche-description { font-size: 14px; color: #b8b0a0; line-height: 1.8; }
.efiche-description p { margin-bottom: .75rem; }

/* Anecdote */
.efiche-section-anecdote { border-color: rgba(138,96,32,.3); background: rgba(138,96,32,.04); }
.efiche-anecdote-corps {
    display: flex; gap: 12px; font-size: 14px;
    color: #b8b0a0; line-height: 1.7; margin-bottom: .75rem;
}
.efiche-anecdote-icone { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.efiche-anecdote-avert {
    font-size: 11px; color: #6b6b5a; font-style: italic;
    padding: 6px 10px; background: rgba(0,0,0,.2); border-radius: 4px;
}

/* Personnes */
.efiche-personnes { display: flex; flex-direction: column; gap: 6px; }
.efiche-personne-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; background: #1a1a17;
    border: .5px solid #2a2a25; border-radius: 4px; font-size: 13px; color: #e8e0cc;
}
.efiche-personne-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(201,168,76,.15); border: .5px solid #C9A84C;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #C9A84C; flex-shrink: 0;
}

/* Adresse */
.efiche-adresse { font-size: 13px; color: #6b6b5a; margin-bottom: 8px; }

/* Carte */
.efiche-carte-box { height: 260px; border-radius: 4px; border: .5px solid #2a2a25; }
.efiche-carte-actions { margin-top: 8px; }
.efiche-btn-carte {
    font-size: 12px; color: #C9A84C;
    border: .5px solid rgba(201,168,76,.3); padding: 5px 10px; border-radius: 4px;
    transition: background .15s;
}
.efiche-btn-carte:hover { background: rgba(201,168,76,.1); }

/* ── TÉMOIGNAGES ───────────────────────────────────────────────────────── */
.efiche-temoignage-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: .5px solid #2a2a25;
}
.efiche-temoignage-item:last-child { border-bottom: none; }
.efiche-temo-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(201,168,76,.15); border: .5px solid #C9A84C;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #C9A84C; flex-shrink: 0;
}
.efiche-temo-corps { flex: 1; }
.efiche-temo-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; margin-bottom: 4px;
}
.efiche-temo-meta strong { color: #e8e0cc; }
.efiche-temo-meta span   { color: #5a5a4a; }
.efiche-temo-texte { font-size: 13px; color: #b8b0a0; line-height: 1.6; }
.efiche-vide { font-size: 13px; color: #5a5a4a; font-style: italic; padding: .5rem 0; }

/* ── FORMULAIRES ───────────────────────────────────────────────────────── */
.efiche-form-wrap { margin-top: 1.5rem; padding-top: 1.25rem; border-top: .5px solid #2a2a25; }
.efiche-form-titre { font-size: 14px; color: #e8e0cc; font-weight: 500; margin-bottom: .4rem; }
.efiche-form-intro { font-size: 13px; color: #6b6b5a; line-height: 1.6; margin-bottom: 1rem; }
.efiche-form { display: flex; flex-direction: column; gap: .85rem; }
.efiche-form-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.efiche-champ { display: flex; flex-direction: column; gap: 4px; }
.efiche-champ label { font-size: 11px; color: #6b6b5a; letter-spacing: .8px; text-transform: uppercase; }
.efiche-champ small { font-size: 11px; color: #5a5a4a; }
.obl { color: #C9A84C; }
.efiche-champ input,.efiche-champ textarea,.efiche-champ select {
    background: #1a1a17; border: .5px solid #2a2a25; color: #e8e0cc;
    font-size: 13px; padding: 8px 10px; border-radius: 4px;
    font-family: inherit; width: 100%; transition: border-color .15s;
}
.efiche-champ input:focus,.efiche-champ textarea:focus,.efiche-champ select:focus {
    outline: none; border-color: #C9A84C;
}
.efiche-check { flex-direction: row !important; align-items: flex-start; gap: 8px; }
.efiche-check label { font-size: 12px; color: #6b6b5a; text-transform: none; letter-spacing: 0; cursor: pointer; line-height: 1.5; }
.efiche-check input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: #C9A84C; }
.efiche-btn-submit {
    background: #C9A84C; color: #111110; border: none;
    padding: 10px 20px; font-size: 13px; font-weight: 500;
    border-radius: 4px; cursor: pointer; font-family: inherit;
    transition: opacity .15s; align-self: flex-start;
}
.efiche-btn-submit:hover { opacity: .88; }
.efiche-btn-sug { background: #1a1a17; color: #C9A84C; border: .5px solid #C9A84C; }
.efiche-btn-sug:hover { background: rgba(201,168,76,.1); }
.efiche-moderation-note { font-size: 11px; color: #5a5a4a; margin-top: 4px; }
.efiche-form-message {
    padding: 10px 14px; border-radius: 4px; font-size: 13px; line-height: 1.5;
}
.efiche-form-ok  { background: rgba(34,197,94,.1);  border: .5px solid #22c55e; color: #86efac; }
.efiche-form-err { background: rgba(220,38,38,.1);  border: .5px solid #dc2626; color: #fca5a5; }

/* ── TYPES DE SUGGESTION ───────────────────────────────────────────────── */
.efiche-section-suggestion { border-color: rgba(201,168,76,.2); }
.efiche-sug-types { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 6px; }
.efiche-sug-type-btn {
    background: #1a1a17; border: .5px solid #2a2a25; border-radius: 4px;
    padding: 8px 6px; text-align: center; cursor: pointer;
    font-size: 11px; color: #6b6b5a; transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.efiche-sug-type-btn span { font-size: 18px; }
.efiche-sug-type-btn:hover,.efiche-sug-type-btn.actif {
    border-color: #C9A84C; color: #C9A84C; background: rgba(201,168,76,.06);
}

/* ── COLONNE LATÉRALE ──────────────────────────────────────────────────── */
.efiche-aside { display: flex; flex-direction: column; gap: 1rem; }
.efiche-aside-card {
    background: #111110; border: .5px solid #2a2a25; border-radius: 6px;
    padding: 1rem; position: sticky; top: 80px;
}
.efiche-aside-titre {
    font-size: 11px; color: #6b6b5a; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: .75rem;
    padding-bottom: .4rem; border-bottom: .5px solid #2a2a25;
}
.efiche-aside-sous-titre {
    font-size: 10px; color: #5a5a4a; letter-spacing: 1px;
    text-transform: uppercase; margin: .75rem 0 .4rem;
}
.efiche-aside-separateur { height: .5px; background: #2a2a25; margin: .75rem 0; }
.efiche-aside-ligne {
    display: flex; gap: 8px; padding: 4px 0;
    border-bottom: .5px solid #2a2a25; font-size: 12px;
}
.efiche-aside-ligne:last-of-type { border-bottom: none; }
.efiche-aside-label { color: #5a5a4a; min-width: 70px; flex-shrink: 0; padding-top: 1px; }
.efiche-aside-ligne span:last-child { color: #e8e0cc; word-break: break-word; }
.efiche-aside-ligne a { color: #C9A84C; }

.efiche-aside-actions { display: flex; flex-direction: column; gap: 6px; margin-top: .75rem; }
.efiche-btn-action {
    display: block; text-align: center; font-size: 13px;
    background: #C9A84C; color: #111110; padding: 9px;
    border-radius: 4px; font-weight: 500; transition: opacity .15s;
}
.efiche-btn-action:hover { opacity: .88; color: #111110; }
.efiche-btn-action-outline {
    background: transparent; color: #C9A84C;
    border: .5px solid rgba(201,168,76,.4);
}
.efiche-btn-action-outline:hover { background: rgba(201,168,76,.1); color: #C9A84C; }

/* Documents liés */
.efiche-doc-lie {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; border-bottom: .5px solid #2a2a25;
    transition: opacity .15s;
}
.efiche-doc-lie:last-child { border-bottom: none; }
.efiche-doc-lie:hover { opacity: .8; }
.efiche-doc-lie-thumb { width: 48px; height: 36px; flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.efiche-doc-lie-thumb img { width: 100%; height: 100%; object-fit: cover; }
.efiche-doc-lie-info { flex: 1; min-width: 0; }
.efiche-doc-lie-titre { font-size: 12px; color: #e8e0cc; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.efiche-doc-lie-meta  { font-size: 11px; color: #5a5a4a; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

/* Badges */
.badge-H { display:inline-block; font-size:10px; background:rgba(201,168,76,.08); border:.5px solid #C9A84C; color:#C9A84C; padding:2px 7px; border-radius:2px; font-weight:500; }
.badge-h { display:inline-block; font-size:10px; background:rgba(138,96,32,.08); border:.5px solid #8a6020; color:#8a6020; padding:2px 7px; border-radius:2px; font-weight:500; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .efiche-layout { grid-template-columns: 1fr; }
    .efiche-aside-card { position: static; }
    .efiche-titre { font-size: 24px; }
    .efiche-form-grille2 { grid-template-columns: 1fr; }
    .efiche-sug-types { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .efiche-sug-types { grid-template-columns: repeat(2,1fr); }
    .efiche-main { padding: 1rem 1rem 3rem; }
}
