* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1c1814;
    font-family: 'IM Fell English', serif;
    color: #e8e2d2;
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.bandeau {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    background: rgba(18, 15, 12, 0.97);
    border-bottom: 1px solid #C5A059;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.bandeau-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.bandeau-logo img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
    transition: filter 0.3s;
}

.bandeau-logo:hover img {
    filter: drop-shadow(0 0 14px rgba(197, 160, 89, 0.85));
}

.bandeau-logo h1 {
    font-family: 'Cinzel', serif;
    color: #C5A059;
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #c8bfa8;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 22px;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 22px;
    right: 22px;
    height: 1px;
    background: #C5A059;
    transform: scaleX(0);
    transition: transform 0.3s;
}

nav a:hover {
    color: #C5A059;
}

nav a:hover::after {
    transform: scaleX(1);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(197,160,89,0.07) 0%, transparent 65%),
                radial-gradient(ellipse at 80% 20%, rgba(100,80,40,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-top-ornament {
    width: 300px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C5A059, transparent);
    margin-bottom: 30px;
    position: relative;
}

.hero-top-ornament::before,
.hero-top-ornament::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #C5A059;
    font-size: 10px;
}

.hero-top-ornament::before { left: -14px; }
.hero-top-ornament::after { right: -14px; }

.hero-title-block {
    text-align: center;
    margin-bottom: 50px;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    color: #8a7550;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-main-title {
    font-family: 'Cinzel Decorative', serif;
    color: #C5A059;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1.15;
    text-shadow: 0 0 40px rgba(197,160,89,0.25);
}

/* ── IMAGE PRINCIPALE (propa) ── */
.propa-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px;
}

.propa-frame {
    position: relative;
    border: 1px solid rgba(197,160,89,0.4);
    padding: 8px;
    background: rgba(10,8,6,0.6);
}

.propa-frame::before,
.propa-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #C5A059;
    border-style: solid;
}

.propa-frame::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}

.propa-frame::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}

.propa-inner {
    position: relative;
    overflow: hidden;
}

.propa-inner::before,
.propa-inner::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #C5A059;
    border-style: solid;
    z-index: 3;
}

.propa-inner::before {
    top: 0; right: 0;
    border-width: 2px 2px 0 0;
}

.propa-inner::after {
    bottom: 0; left: 0;
    border-width: 0 0 2px 2px;
}

.propa-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    filter: sepia(15%) contrast(1.05);
    transition: filter 0.5s;
}

.propa-img:hover {
    filter: sepia(5%) contrast(1.08);
}

.propa-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(28,24,20,0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

.propa-caption {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    padding: 0 40px;
}

.propa-caption-title {
    font-family: 'Cinzel', serif;
    color: #C5A059;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.propa-caption-sub {
    font-family: 'IM Fell English', serif;
    color: rgba(232,226,210,0.75);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 6px;
}

/* ── SEPARATEUR ── */
.sep {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 60px;
    z-index: 2;
    position: relative;
}

.sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197,160,89,0.6));
}

.sep-line.right {
    background: linear-gradient(to left, transparent, rgba(197,160,89,0.6));
}

.sep-icon {
    color: #C5A059;
    font-size: 1.1rem;
    letter-spacing: 4px;
}

/* ── SECTIONS ACCUEIL ── */
.accueil-sections {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 100px;
    z-index: 2;
    position: relative;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.section-card {
    position: relative;
    border: 1px solid rgba(197,160,89,0.2);
    padding: 40px 32px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: rgba(22,18,14,0.6);
    transition: background 0.4s, border-color 0.4s;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(197,160,89,0.04);
    opacity: 0;
    transition: opacity 0.4s;
}

.section-card:hover {
    border-color: rgba(197,160,89,0.5);
    background: rgba(30,25,18,0.8);
}

.section-card:hover::before {
    opacity: 1;
}

.section-card-icon {
    font-size: 2.2rem;
    color: #C5A059;
    margin-bottom: 18px;
    opacity: 0.8;
}

.section-card-title {
    font-family: 'Cinzel', serif;
    color: #C5A059;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-card-text {
    font-family: 'IM Fell English', serif;
    color: rgba(200,191,168,0.8);
    font-size: 0.92rem;
    line-height: 1.75;
    font-style: italic;
}

.section-card-arrow {
    display: inline-block;
    margin-top: 22px;
    color: rgba(197,160,89,0.5);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s, letter-spacing 0.3s;
}

.section-card:hover .section-card-arrow {
    color: #C5A059;
    letter-spacing: 5px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1c1814; }
::-webkit-scrollbar-thumb { background: rgba(197,160,89,0.4); }

/* ── LETTRE D'INTENTION ── */
.lettre-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    position: relative;
    z-index: 2;
}

.lettre-header {
    text-align: center;
    margin-bottom: 60px;
}

.lettre-surtitre {
    font-family: 'Cinzel', serif;
    color: #8a7550;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.lettre-titre {
    font-family: 'Cinzel Decorative', serif;
    color: #C5A059;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(197,160,89,0.2);
}

/* ACCROCHE */
.lettre-accroche {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(197,160,89,0.18);
    background: rgba(10,8,6,0.5);
    padding: 48px 56px;
    position: relative;
}

.lettre-accroche::before,
.lettre-accroche::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px;
    border-color: #C5A059;
    border-style: solid;
}
.lettre-accroche::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.lettre-accroche::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.lettre-accroche p {
    font-family: 'IM Fell English', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #d6ceba;
    margin-bottom: 18px;
    font-style: italic;
}

.lettre-accroche p:last-child { margin-bottom: 0; }

/* COLONNES */
.lettre-cols {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.lettre-divider {
    background: linear-gradient(to bottom, transparent, rgba(197,160,89,0.4), transparent);
    width: 1px;
}

.lettre-col {
    padding: 10px 0;
}

.lettre-col-title {
    font-family: 'Cinzel', serif;
    color: #C5A059;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(197,160,89,0.25);
}

.lettre-col-desc {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #c8bfa8;
    line-height: 1.8;
    margin-bottom: 22px;
}

.lettre-list {
    list-style: none;
    margin-bottom: 22px;
}

.lettre-list li {
    font-family: 'IM Fell English', serif;
    font-size: 0.9rem;
    color: #b8ae98;
    line-height: 1.7;
    padding: 5px 0 5px 20px;
    border-bottom: 1px solid rgba(197,160,89,0.07);
    position: relative;
}

.lettre-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: rgba(197,160,89,0.5);
    font-size: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
}

.lettre-note {
    font-family: 'IM Fell English', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(184,174,152,0.65);
    line-height: 1.75;
    border-left: 2px solid rgba(197,160,89,0.3);
    padding-left: 16px;
}

/* INFOS PRATIQUES */
.lettre-infos {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(197,160,89,0.2);
    background: rgba(10,8,6,0.4);
    padding: 48px 48px 40px;
    position: relative;
}

.lettre-infos::before,
.lettre-infos::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px;
    border-color: #C5A059;
    border-style: solid;
}
.lettre-infos::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.lettre-infos::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px;
    border: 1px solid rgba(197,160,89,0.1);
    background: rgba(22,18,14,0.5);
    transition: border-color 0.3s, background 0.3s;
}

.info-item:hover {
    border-color: rgba(197,160,89,0.35);
    background: rgba(30,25,18,0.7);
}

.info-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
    opacity: 0.75;
}

.info-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8a7550;
    margin-bottom: 6px;
}

.info-val {
    font-family: 'IM Fell English', serif;
    font-size: 0.95rem;
    color: #d6ceba;
    font-style: italic;
}

/* CLOTURE */
.lettre-cloture {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px 0;
}

.lettre-cloture p {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(200,191,168,0.7);
    line-height: 2;
    margin-bottom: 30px;
}

.lettre-cloture-appel {
    font-family: 'Cinzel Decorative', serif !important;
    font-style: normal !important;
    color: #C5A059 !important;
    font-size: 1.15rem !important;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(197,160,89,0.3);
}

/* ==========================================================================
   ── STYLES SPÉCIFIQUES À LA FICHE DE PERSONNAGE ──
   ========================================================================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }

/* ── IDENTITY BLOCK ── */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2px;
    margin-bottom: 40px;
}
.id-field {
    background: rgba(22,18,14,0.7);
    border: 1px solid rgba(197,160,89,0.18);
    padding: 16px 20px;
    transition: border-color .3s;
}
.id-field:hover { border-color: rgba(197,160,89,0.4); }
.id-field label { font-family:'Cinzel',serif; font-size:.6rem; letter-spacing:3px; text-transform:uppercase; color:#8a7550; display:block; margin-bottom:8px; }
.id-field input, .id-field select {
    width:100%; background:transparent; border:none; border-bottom:1px solid rgba(197,160,89,0.25);
    color:#e8e2d2; font-family:'IM Fell English',serif; font-style:italic; font-size:.95rem;
    padding:4px 0; outline:none; transition:border-color .3s;
}
.id-field input:focus, .id-field select:focus { border-bottom-color: #C5A059; }
.id-field select option { background:#1c1814; color:#e8e2d2; }

/* ── ARCHETYPES ── */
.section-title {
    font-family:'Cinzel',serif; color:#C5A059; font-size:.75rem; letter-spacing:4px;
    text-transform:uppercase; margin-bottom:16px; padding-bottom:10px;
    border-bottom:1px solid rgba(197,160,89,0.25); display:flex; align-items:center; gap:12px;
}
.section-title .icon { font-size:1rem; opacity:.7; }

.archetypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 40px;
}
.archetype-btn {
    background: rgba(22,18,14,0.7);
    border: 1px solid rgba(197,160,89,0.2);
    color: #b8ae98;
    font-family:'Cinzel',serif;
    font-size:.65rem; letter-spacing:2px; text-transform:uppercase;
    padding: 14px 10px;
    cursor: pointer;
    transition: all .3s;
    text-align:center;
    position:relative;
}
.archetype-btn .arch-icon { display:block; font-size:1.4rem; margin-bottom:8px; opacity:.7; }
.archetype-btn:hover:not(.disabled) { border-color:rgba(197,160,89,0.5); color:#C5A059; background:rgba(30,25,18,.8); }
.archetype-btn.active {
    border-color:#C5A059; color:#C5A059;
    background:rgba(197,160,89,0.08);
    box-shadow:0 0 18px rgba(197,160,89,0.1);
}
.archetype-btn.disabled { opacity:.3; cursor:not-allowed; }
.archetype-btn .arch-note { font-size:.55rem; letter-spacing:1px; color:#8a7550; margin-top:4px; display:block; font-family:'IM Fell English',serif; font-style:italic; }

/* ── POINTS BAR ── */
.points-bar {
    display:flex; align-items:center; gap:20px;
    background:rgba(10,8,6,0.95); border:1px solid rgba(197,160,89,0.3);
    padding:18px 28px; margin-bottom:36px;
    position: sticky; top: 76px; z-index: 100;
    backdrop-filter: blur(8px);
}
.points-label { font-family:'Cinzel',serif; font-size:.65rem; letter-spacing:3px; text-transform:uppercase; color:#8a7550; }
.points-value { font-family:'Cinzel Decorative',serif; font-size:1.8rem; color:#C5A059; line-height:1; min-width:36px; }
.points-value.low { color:#c05050; text-shadow:0 0 12px rgba(192,80,80,0.4); }
.points-track { flex:1; height:4px; background:rgba(197,160,89,0.1); border-radius:0; overflow:hidden; }
.points-fill { height:100%; background:linear-gradient(to right,#8a7550,#C5A059); transition:width .4s; }
.points-sep { width:1px; height:32px; background:rgba(197,160,89,0.2); }

/* STATS COLS */
.stats-row { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:36px; }
.stat-box {
    background:rgba(22,18,14,0.7); border:1px solid rgba(197,160,89,0.2);
    padding:16px 22px; display:flex; flex-direction:column; align-items:center; min-width:100px;
}
.stat-box .stat-label { font-family:'Cinzel',serif; font-size:.6rem; letter-spacing:3px; text-transform:uppercase; color:#8a7550; margin-bottom:8px; }
.stat-box .stat-val { font-family:'Cinzel Decorative',serif; font-size:1.6rem; color:#C5A059; line-height:1; }
.stat-box .stat-sub { font-family:'IM Fell English',serif; font-size:.75rem; color:#8a7550; font-style:italic; margin-top:4px; }
.stat-box.mana-box { border-color:rgba(100,140,220,0.4); }
.stat-box.mana-box .stat-val { color:#7aabf0; }
.stat-box.mana-box .stat-label { color:#5a8ab0; }

/* ── SKILLS ── */
.skills-panels {
    display:grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap:2px; margin-bottom:40px;
}
.skill-panel {
    background:rgba(18,15,12,0.6);
    border:1px solid rgba(197,160,89,0.15);
}
.skill-panel-header {
    padding:14px 20px;
    border-bottom:1px solid rgba(197,160,89,0.15);
    display:flex; align-items:center; gap:10px;
    background:rgba(10,8,6,0.4);
}
.skill-panel-header .ph-icon { font-size:1.1rem; opacity:.7; }
.skill-panel-header .ph-title { font-family:'Cinzel',serif; font-size:.7rem; letter-spacing:3px; text-transform:uppercase; color:#C5A059; }
.skill-panel-header .ph-badge { margin-left:auto; font-family:'Cinzel',serif; font-size:.6rem; letter-spacing:1px; color:#8a7550; }

.skill-row {
    display:flex; align-items:flex-start; gap:12px;
    padding:12px 20px; border-bottom:1px solid rgba(197,160,89,0.06);
    cursor:pointer; transition:background .25s;
    position:relative;
}
.skill-row:hover { background:rgba(197,160,89,0.04); }
.skill-row.active { background:rgba(197,160,89,0.07); }
.skill-row.active .skill-name { color:#C5A059; }
.skill-row.inactive { opacity:.45; cursor:not-allowed; }

.skill-check {
    width:16px; height:16px; flex-shrink:0; margin-top:3px;
    border:1px solid rgba(197,160,89,0.35);
    display:flex; align-items:center; justify-content:center;
    font-size:.65rem; color:#C5A059; transition:all .2s;
}
.skill-row.active .skill-check { background:rgba(197,160,89,0.15); border-color:#C5A059; }

.skill-info { flex:1; min-width:0; }
.skill-name { font-family:'Cinzel',serif; font-size:.72rem; letter-spacing:1.5px; text-transform:uppercase; color:#c8bfa8; margin-bottom:4px; }
.skill-desc { font-family:'IM Fell English',serif; font-size:.8rem; color:rgba(184,174,152,0.65); font-style:italic; line-height:1.5; }
.skill-cond { font-size:.72rem; color:rgba(197,160,89,0.45); margin-top:2px; }
.skill-mana { font-size:.7rem; color:#5a8ab0; margin-top:2px; }

.skill-cost {
    flex-shrink:0; font-family:'Cinzel',serif; font-size:.9rem; color:rgba(197,160,89,0.6);
    min-width:24px; text-align:right; padding-top:2px;
}
.skill-row.active .skill-cost { color:#C5A059; }

/* ── SELECTED RECAP ── */
.recap {
    background:rgba(10,8,6,0.7); border:1px solid rgba(197,160,89,0.25);
    padding:28px 32px; margin-top:8px; position:relative;
}
.recap::before, .recap::after { content:''; position:absolute; width:20px; height:20px; border-color:#C5A059; border-style:solid; }
.recap::before { top:-1px; left:-1px; border-width:2px 0 0 2px; }
.recap::after  { bottom:-1px; right:-1px; border-width:0 2px 2px 0; }
.recap-title { font-family:'Cinzel',serif; font-size:.7rem; letter-spacing:4px; text-transform:uppercase; color:#8a7550; margin-bottom:18px; }
.recap-list { display:flex; flex-wrap:wrap; gap:8px; }
.recap-tag {
    background:rgba(197,160,89,0.08); border:1px solid rgba(197,160,89,0.25);
    padding:5px 14px; font-family:'Cinzel',serif; font-size:.6rem;
    letter-spacing:2px; text-transform:uppercase; color:#C5A059;
    display:flex; align-items:center; gap:8px;
}
.recap-tag .rt-cost { color:#8a7550; }
.recap-tag .rt-remove { cursor:pointer; color:rgba(197,160,89,0.4); font-size:.75rem; transition:color .2s; }
.recap-tag .rt-remove:hover { color:#c05050; }
.recap-empty { font-family:'IM Fell English',serif; font-style:italic; color:rgba(184,174,152,0.35); font-size:.9rem; }

/* ── NOTIF ── */
.notif {
    position:fixed; bottom:24px; right:24px; z-index:9999;
    background:rgba(10,8,6,0.95); border:1px solid rgba(197,160,89,0.4);
    padding:14px 22px; font-family:'Cinzel',serif; font-size:.65rem;
    letter-spacing:2px; text-transform:uppercase; color:#C5A059;
    transform:translateY(80px); opacity:0; transition:all .4s;
    max-width:320px;
}
.notif.show { transform:translateY(0); opacity:1; }
.notif.error { border-color:rgba(192,80,80,0.5); color:#c05050; }

@media(max-width:600px){
    .points-bar { flex-wrap:wrap; position: relative; top: 0; }
    .skills-panels { grid-template-columns:1fr; }
    .archetypes-grid { grid-template-columns: repeat(3,1fr); }
}
/* ── PAGE HEADER ── */
.page-header {
    text-align: center;
    padding: 110px 20px 36px;
    border-bottom: 1px solid rgba(197,160,89,0.3);
    background: rgba(10,8,6,0.6);
    position: relative;
    margin-bottom: 0;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 1px;
    background: linear-gradient(to right, transparent, #C5A059, transparent);
}
.page-header .sub {
    font-family: 'Cinzel', serif;
    color: #8a7550;
    font-size: .7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.page-header h1 {
    font-family: 'Cinzel Decorative', serif;
    color: #C5A059;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(197,160,89,0.25);
}

/* Fix container pour descendre sous la navbar */
.container {
    padding-top: 48px !important;
}

/* ── FACTION CARD ── */
.faction-card {
    border: 1px solid rgba(197,160,89,0.3);
    background: rgba(10,8,6,0.4);
    padding: 28px 32px;
    margin-bottom: 40px;
    position: relative;
    animation: fcFadeIn .4s ease;
}

@keyframes fcFadeIn {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}

.fc-corner {
    position: absolute;
    width: 20px; height: 20px;
    border-color: #C5A059;
    border-style: solid;
}
.fc-corner.tl { top: -1px; left: -1px;   border-width: 2px 0 0 2px; }
.fc-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.fc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(197,160,89,0.15);
}
.fc-icon {
    font-size: 2rem;
    opacity: .8;
    flex-shrink: 0;
}
.fc-bloc {
    font-family: 'Cinzel', serif;
    font-size: .6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: .7;
}
.fc-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.fc-resume {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: .95rem;
    color: #c8bfa8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.fc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-bottom: 14px;
}
.fc-col {
    background: rgba(22,18,14,0.5);
    border: 1px solid rgba(197,160,89,0.1);
    padding: 12px 16px;
}
.fc-label {
    font-family: 'Cinzel', serif;
    font-size: .55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8a7550;
    margin-bottom: 6px;
}
.fc-data {
    font-family: 'IM Fell English', serif;
    font-size: .85rem;
    color: #d6ceba;
    font-style: italic;
    line-height: 1.5;
}

.fc-tags-row {
    margin-bottom: 14px;
}
.fc-tags-row .fc-label { margin-bottom: 8px; }

.fc-relations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-bottom: 14px;
}
.fc-rel-col {
    background: rgba(22,18,14,0.5);
    border: 1px solid rgba(197,160,89,0.1);
    padding: 12px 16px;
}
.fc-rel-col .fc-label { margin-bottom: 8px; }

.faction-tag {
    display: inline-block;
    padding: 3px 10px;
    font-family: 'Cinzel', serif;
    font-size: .55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 3px 3px 3px 0;
}
.faction-tag.ally  { background:rgba(60,100,60,0.15);  border:1px solid rgba(60,160,60,0.3);  color:#80c080; }
.faction-tag.enemy { background:rgba(120,40,40,0.15);  border:1px solid rgba(200,60,60,0.3);  color:#c08080; }
.faction-tag.val   { background:rgba(197,160,89,0.08); border:1px solid rgba(197,160,89,0.25);color:#C5A059; }

.fc-ambiance {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(197,160,89,0.05);
    border: 1px solid rgba(197,160,89,0.15);
    border-left: 3px solid rgba(197,160,89,0.5);
    padding: 12px 16px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: .9rem;
    color: rgba(200,191,168,0.75);
    line-height: 1.6;
    margin-top: 2px;
}
.fc-amb-icon { font-size: 1.1rem; flex-shrink:0; margin-top:2px; }

@media(max-width:600px){
    .fc-grid, .fc-relations { grid-template-columns: 1fr; }
}
/* --- AMÉLIORATION DE L'INTERFACE DE FACTION --- */

/* Rend le texte de sélection lisible et harmonieux */
#faction-select {
    color: #e8e2d2; 
    background-color: #1c1814;
    border: 1px solid #C5A059;
    padding: 8px;
    font-family: 'IM Fell English', serif;
}

/* Style des groupes dans le menu déroulant */
#faction-select optgroup {
    color: #C5A059; 
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
}

/* Style de la carte de description (le bloc qui apparaît après choix) */
#faction-desc-box {
    margin-top: 20px;
    border-top: 1px solid #C5A059;
    border-bottom: 1px solid #C5A059;
    padding: 20px;
    background: rgba(28, 24, 20, 0.8);
}

#faction-desc-text {
    color: #e8e2d2; /* Blanc cassé pour le texte */
    font-size: 1rem;
    line-height: 1.6;
}