/*
 Theme Name: KEMTAAN Universe
 Theme URI: https://aman-ics.com
 Author: Studio Amanirenas / Mame Mor Kandji
 Author URI: https://aman-ics.com
 Description: Thème immersif pour l'univers transmédia africain KEMTAAN.
 Version: 2.1
 License: GNU General Public License v2 or later
 Text Domain: kemtaan
*/

:root {
    --kem-bg: #090605;
    --kem-bg-alt: #160f0b;
    --kem-gold: #f2c24b;
    --kem-gold-soft: #f2c24b33;
    --kem-gold-strong: #ffda5c;
    --kem-water: #4a90e2;
    --kem-earth: #8b4513;
    --kem-fire: #f05a3f;
    --kem-air: #87ceeb;
    --kem-text: #f8f3e6;
    --kem-muted: #c3b7a0;
}

/* Symboles LOY animés */
@keyframes loy-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes spiral-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans 3", system-ui, sans-serif;
    background: 
        radial-gradient(ellipse at top, #f2c24b11 0%, transparent 50%),
        radial-gradient(ellipse at bottom, #4a90e208 0%, transparent 50%),
        linear-gradient(135deg, #060404 0%, #090605 50%, #050304 100%);
    color: var(--kem-text);
    min-height: 100vh;
}

/* Halo cosmique avec motifs africains */
.kem-page-aura {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at 20% 80%, #f2c24b08 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, #4a90e208 0%, transparent 40%),
        linear-gradient(to bottom, #060404 0%, #090605 60%, #050304 100%);
}

.kem-page-aura::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, transparent 20px, #f2c24b02 21px, transparent 22px),
        radial-gradient(circle at 75% 75%, transparent 15px, #4a90e202 16px, transparent 17px);
    background-size: 100px 100px, 80px 80px;
    pointer-events: none;
    z-index: -1;
}

/* HEADER SACRÉ */
.kem-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #050304ee, #050304dd 80%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--kem-gold-soft);
}

.kem-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Marque sacrée avec symboles LOY */
.kem-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.kem-brand-mark {
    width: 40px;
    height: 40px;
    position: relative;
    background: 
        radial-gradient(circle at 30% 30%, var(--kem-gold-strong), var(--kem-fire));
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(242, 194, 75, 0.8);
    animation: loy-float 6s ease-in-out infinite;
}

.kem-brand-mark::before {
    content: "𓃒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

.kem-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.kem-brand-title {
    font-family: "Cinzel", serif;
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--kem-gold), var(--kem-fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kem-brand-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--kem-muted);
}

/* Navigation sacrée */
.kem-main-nav {
    display: flex;
}

.kem-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.kem-menu a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--kem-text);
    position: relative;
    padding: 8px 0;
}

.kem-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--kem-gold), var(--kem-fire));
    transition: width 0.3s ease;
}

.kem-menu a:hover::after,
.kem-menu .current-menu-item > a::after {
    width: 100%;
}

/* HERO ÉPIQUE */
.kem-hero {
    position: relative;
    padding: 140px 20px 100px;
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kem-hero-orbit {
    position: absolute;
    inset: -50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(242, 194, 75, 0.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(74, 144, 226, 0.1), transparent 50%);
    animation: spiral-rotate 60s linear infinite;
}

.kem-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Glyphe central animé */
.kem-hero-glyph {
    margin: 0 auto 30px;
    width: 150px;
    height: 150px;
    position: relative;
    animation: loy-float 8s ease-in-out infinite;
}

.kem-hero-glyph::before {
    content: "𓃔𓃕𓃖";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--kem-gold);
    text-shadow: 0 0 30px rgba(242, 194, 75, 0.7);
}

.kem-hero-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--kem-gold-strong), var(--kem-fire));
    box-shadow: 0 0 60px rgba(242, 194, 75, 0.9);
    opacity: 0.8;
}

.kem-hero-spiral {
    position: absolute;
    inset: 20px;
    border: 3px solid transparent;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    border-radius: 50%;
    animation: spiral-rotate 20s linear infinite;
}

.kem-title {
    font-family: "Cinzel", serif;
    font-size: 4.5rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, var(--kem-gold), var(--kem-fire), var(--kem-water));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kem-tagline {
    font-size: 1.3rem;
    color: var(--kem-muted);
    margin-bottom: 30px;
    font-style: italic;
}

.kem-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Boutons élémentaires */
.kem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--kem-gold-strong), var(--kem-fire));
    color: #1b140e;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kem-btn::before {
    content: "𓃗";
    font-size: 1.1em;
}

.kem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(242, 194, 75, 0.4);
    text-decoration: none;
}

.kem-btn-outline {
    background: transparent;
    color: var(--kem-gold);
    border: 2px solid var(--kem-gold-soft);
}

.kem-btn-outline::before {
    content: "𓃘";
}

.kem-btn-outline:hover {
    background: var(--kem-gold-soft);
    border-color: var(--kem-gold);
}

/* Sections avec motifs africains */
.kem-block {
    padding: 100px 20px;
    position: relative;
}

.kem-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kem-gold), transparent);
}

.kem-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.kem-section-title h2 {
    font-family: "Cinzel", serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.kem-section-title h2::after {
    content: "𓃙";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Portes des Maisons */
.kem-doors-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.kem-door {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1310, #120d0a);
    border: 1px solid var(--kem-gold-soft);
    transition: all 0.4s ease;
    overflow: hidden;
}

.kem-door::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 194, 75, 0.1), transparent);
    transition: left 0.6s ease;
}

.kem-door:hover::before {
    left: 100%;
}

.kem-door:hover {
    transform: translateY(-8px);
    border-color: var(--kem-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.kem-door-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--kem-muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.kem-door-label::before {
    content: "𓃚";
    position: absolute;
    left: 0;
}

.kem-door h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    color: var(--kem-gold);
}

/* Timeline sacrée */
.kem-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.kem-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--kem-gold), transparent);
    transform: translateX(-50%);
}

.kem-timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(26, 19, 16, 0.8);
    border-radius: 15px;
    border: 1px solid var(--kem-gold-soft);
}

.kem-timeline-item:nth-child(odd) {
    left: 0;
}

.kem-timeline-item:nth-child(even) {
    left: 55%;
}

.kem-timeline-dot {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--kem-gold);
    box-shadow: 0 0 20px rgba(242, 194, 75, 0.9);
    animation: pulse-glow 2s ease-in-out infinite;
}

.kem-timeline-item:nth-child(odd) .kem-timeline-dot {
    right: -38px;
    transform: translateY(-50%);
}

.kem-timeline-item:nth-child(even) .kem-timeline-dot {
    left: -38px;
    transform: translateY(-50%);
}

/* FOOTER SACRÉ */
.kem-footer {
    border-top: 1px solid var(--kem-gold-soft);
    background: linear-gradient(to top, #050304, #090605);
    padding: 40px 20px;
    position: relative;
}

.kem-footer::before {
    content: "𓃒𓃓𓃔𓃕𓃖𓃗";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
    letter-spacing: 20px;
}

.kem-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.kem-footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--kem-gold);
}

.kem-footer-col p {
    font-size: 0.9rem;
    color: var(--kem-muted);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kem-hero {
        padding: 100px 20px 60px;
        min-height: 70vh;
    }
    
    .kem-title {
        font-size: 2.5rem;
        letter-spacing: 0.3em;
    }
    
    .kem-timeline::before {
        left: 30px;
    }
    
    .kem-timeline-item {
        width: calc(100% - 60px);
        left: 30px !important;
        margin-left: 30px;
    }
    
    .kem-timeline-dot {
        left: -38px !important;
        right: auto !important;
    }
    
    .kem-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .kem-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .kem-doors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .kem-footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .kem-two-cols {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

/* Animations pour mobile */
@media (prefers-reduced-motion: reduce) {
    .kem-hero-glyph,
    .kem-brand-mark,
    .kem-timeline-dot {
        animation: none;
    }
	/* ====================================================================
   STYLES PERSONNAGES ET SHORTCODES
   ==================================================================== */

/* Shortcodes LOY */
.kem-loy-symbole {
    display: inline-block;
    font-size: 1.2em;
    margin: 0 2px;
}

.kem-loy-symbole.kem-taille-l {
    font-size: 2em;
}

.kem-loy-symbole.kem-taille-m {
    font-size: 1.5em;
}

.kem-loy-symbole.kem-loy-anime {
    animation: loy-float 3s ease-in-out infinite;
}

.kem-glyphe-element {
    font-size: 1.8em;
    margin: 0 5px;
    display: inline-block;
}

/* Cartes des Maisons */
.kem-cartes-maisons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.kem-maison-card {
    background: linear-gradient(135deg, var(--kem-bg-alt), #1a1310);
    border: 1px solid var(--kem-gold-soft);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kem-maison-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 194, 75, 0.1), transparent);
    transition: left 0.6s ease;
}

.kem-maison-card:hover::before {
    left: 100%;
}

.kem-maison-card:hover {
    transform: translateY(-5px);
    border-color: var(--kem-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.kem-maison-glyphe {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.kem-maison-card h4 {
    color: var(--kem-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.kem-maison-card p {
    color: var(--kem-muted);
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* Page personnage individuel */
.kem-personnage-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.kem-personnage-image {
    position: relative;
}

.kem-personnage-portrait {
    width: 100%;
    border-radius: 15px;
    border: 2px solid var(--kem-gold-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.kem-personnage-glyphes {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.kem-element-badge {
    background: rgba(0, 0, 0, 0.8);
    color: var(--kem-gold);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--kem-gold-soft);
}

.kem-personnage-title {
    font-family: "Cinzel", serif;
    font-size: 2.5em;
    color: var(--kem-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.kem-personnage-meta {
    margin-bottom: 20px;
}

.kem-maison-badge,
.kem-statut-badge {
    background: var(--kem-gold-soft);
    color: var(--kem-text);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-left: 10px;
}

.kem-personnage-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--kem-muted);
    font-style: italic;
}

/* Grille des personnages */
.kem-personnages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.kem-personnage-card {
    background: linear-gradient(135deg, var(--kem-bg-alt), #1a1310);
    border: 1px solid var(--kem-gold-soft);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.kem-personnage-card:hover {
    transform: translateY(-5px);
    border-color: var(--kem-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.kem-personnage-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.kem-personnage-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kem-personnage-card:hover .kem-personnage-card-image img {
    transform: scale(1.05);
}

.kem-personnage-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2b1b0d, #1a1310);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kem-placeholder-glyph {
    font-size: 4em;
    opacity: 0.5;
}

.kem-personnage-card-elements {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.kem-element-indicator {
    background: rgba(0, 0, 0, 0.8);
    color: var(--kem-gold);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    border: 1px solid var(--kem-gold-soft);
}

.kem-personnage-card-content {
    padding: 20px;
}

.kem-personnage-card-title {
    margin-bottom: 10px;
}

.kem-personnage-card-title a {
    color: var(--kem-text);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
}

.kem-personnage-card-title a:hover {
    color: var(--kem-gold);
}

.kem-maison-tag {
    background: var(--kem-gold-soft);
    color: var(--kem-text);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.kem-personnage-card-excerpt {
    color: var(--kem-muted);
    margin: 10px 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.kem-btn-small {
    padding: 8px 16px;
    font-size: 0.8em;
}

/* Filtres */
.kem-filters {
    margin-bottom: 30px;
    text-align: center;
}

.kem-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.kem-filter-btn {
    background: transparent;
    color: var(--kem-text);
    border: 1px solid var(--kem-gold-soft);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8em;
}

.kem-filter-btn.active,
.kem-filter-btn:hover {
    background: var(--kem-gold);
    color: var(--kem-bg);
    border-color: var(--kem-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .kem-personnage-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kem-personnages-grid {
        grid-template-columns: 1fr;
    }
    
    .kem-cartes-maisons {
        grid-template-columns: 1fr;
    }
    
    .kem-filter-buttons {
        justify-content: flex-start;
    }
}
	
}