/* ═══════════════════════════════════════════════
   MODERN-MAP — GLOBAL.CSS
   Variables globales, reset, composants partagés
   ═══════════════════════════════════════════════ */

:root {
    /* Couleurs du site */
    --mm-bg-color: #F4EFE6;
    --mm-dark: #1a1a1a;
    --mm-text: #444444;
    --mm-accent-red: #b73253;
    --mm-accent-gold: #bc8a5f;
    --mm-card-bg: #FFF8F0;

    /* Texture à points */
    --mm-dot-color: rgba(51, 51, 51, 0.12);

    /* Bordure dorée partagée */
    --card-border-gold: #DCCFBC;

    /* TCG defaults (surchargeables par page) */
    --card-bg-gradient: linear-gradient(135deg, #1a1505 0%, #5c4a18 45%, #8a7a2a 100%);
    --card-border-color: #a09030;
    --card-inner-border: #0e0c02;
    --parchment-bg: #fdfbf7;
    --text-dark: #1b1b1b;
    --text-muted: #555;
    --hp-color: #2e2808;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Roboto', sans-serif;
    background-color: var(--mm-bg-color);
    background-image: radial-gradient(var(--mm-dot-color) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    color: var(--mm-dark);
    overflow-x: hidden;
}

/* ─── HEADER ─── */
.mm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mm-bg-color, #f5f0e8);
}
body.home .mm-header,
body.front-page .mm-header {
    background: transparent;
}
.mm-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
}

/* Bande rose sticky séparatrice */
.mm-header-bar {
    width: 100%;
    height: 5px;
    background: var(--mm-accent-red);
    box-shadow: 0 2px 8px rgba(183, 50, 83, 0.3);
}

/* Logo — sombre (pas de filtre invert) */
.mm-header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    max-height: 50px;
    overflow: hidden;
}
.mm-header-logo-img {
    height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
    transition: opacity 0.2s;
}
.mm-header-logo-link:hover .mm-header-logo-img {
    opacity: 0.7;
}

/* Navigation — texte noir */
.mm-header-nav {
    display: flex;
    align-items: center;
}
.mm-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mm-header-menu li a {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mm-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid var(--mm-dark);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}
.mm-header-menu li a:hover {
    background: var(--mm-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* Lien Distributeur — doré, poussé à droite */
.mm-header-menu li a.mm-nav-highlight,
.mm-header-menu li a[href*="distributeur"] {
    color: var(--mm-accent-gold);
    font-weight: 800;
    border: 2px solid var(--mm-accent-gold);
}
.mm-header-menu li a.mm-nav-highlight:hover,
.mm-header-menu li a[href*="distributeur"]:hover {
    background: var(--mm-accent-gold);
    color: #fff;
}
.mm-header-menu li.mm-nav-distrib,
.mm-header-menu li:has(a[href*="distributeur"]) {
    margin-left: auto;
}

/* Lien CTA App — bouton rose */
.mm-header-menu li a.mm-nav-cta,
.mm-header-menu li a[href*="modern-map.app"] {
    background: var(--mm-accent-red);
    color: #fff;
    font-family: 'Russo One', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
}
.mm-header-menu li a.mm-nav-cta:hover,
.mm-header-menu li a[href*="modern-map.app"]:hover {
    background: #fff;
    color: var(--mm-dark);
    border: 2px solid var(--mm-accent-red);
    transform: translateY(-2px);
}

/* Burger (mobile) */
.mm-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.mm-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--mm-dark);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.2s;
}
.mm-burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mm-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.mm-burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 900px) {
    .mm-header-inner { padding: 0 20px; }
    .mm-burger { display: flex; }

    .mm-header-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--mm-bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 90px 30px 40px;
        transition: right 0.35s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        border-left: 4px solid var(--mm-accent-red);
    }
    .mm-header-nav.is-open {
        right: 0;
    }

    .mm-header-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 100%;
    }
    .mm-header-menu li a {
        font-size: 1.05rem;
        padding: 14px 20px;
        border-radius: 10px;
        text-align: left;
    }
    .mm-header-menu li a:hover {
        background: rgba(0,0,0,0.05);
    }
    .mm-header-menu li a.mm-nav-cta,
    .mm-header-menu li a[href*="modern-map.app"] {
        margin-top: 15px;
        text-align: center;
        padding: 16px;
        border-radius: 30px;
    }
}

/* ─── BOUTON RETOUR (partagé records + pays) ─── */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Russo One', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    transition: background 0.2s, transform 0.2s;
    align-self: flex-start;
}
.back-btn:hover {
    background: var(--text-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── CARTE TCG — STRUCTURE DE BASE ─── */
.tcg-card {
    width: 100%;
    background: var(--card-bg-gradient);
    border-radius: 20px;
    border: 12px solid var(--card-border-color);
    box-shadow:
        0 0 0 4px var(--card-inner-border),
        0 20px 45px rgba(0,0,0,0.3);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.tcg-card:hover { transform: translateY(-5px); }

.holo-fx {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(115deg,
        transparent 20%,
        var(--holo-color1, rgba(200,210,80,0.18)) 30%,
        transparent 40%,
        var(--holo-color2, rgba(255,255,255,0.07)) 60%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.content { position: relative; z-index: 10; }

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Russo One', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    border-bottom: 2px solid rgba(160,144,48,0.5);
    padding-bottom: 15px;
}
.card-title {
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.card-hp {
    font-size: 2.2rem;
    color: var(--hp-color);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 5px 20px;
    border-radius: 30px;
    border: 3px solid var(--text-dark);
    text-shadow: none;
    box-shadow: 2px 4px 0px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Text Box (stats + desc) */
.text-box {
    background: var(--parchment-bg);
    border-radius: 12px;
    border: 3px solid #dcd1b3;
    padding: 25px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Attack Rows (stats) */
.stats-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.attack-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e0d8c3;
}
.attack-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cost {
    display: flex;
    gap: 5px;
    margin-right: 15px;
    min-width: 45px;
}
.cost-icon {
    width: 30px; height: 30px;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.attack-details { flex-grow: 1; }
.attack-name {
    font-family: 'Russo One', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.attack-value {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 700;
}
.attack-value a {
    color: #6b5a10;
    text-decoration: none;
    transition: color 0.2s;
}
.attack-value a:hover {
    color: #3e3508;
    text-decoration: underline;
}

/* Description Column */
.desc-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.flavor-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    text-align: justify;
    margin: 0 0 20px 0;
    padding: 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Wiki Button */
.wiki-btn {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: block;
    cursor: pointer;
}
.wiki-btn:hover { transform: translateY(-2px); }

/* Footer Illustrator */
.illustrator {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-top: 20px;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
}

/* External Links */
.ext-link {
    color: var(--accent-color, #002654);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px dotted var(--accent-color, #002654);
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ext-link:hover {
    color: var(--hp-color);
    border-bottom-color: var(--hp-color);
}
.ext-link .ext-icon {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ─── BREADCRUMBS ─── */
.mm-breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: var(--mm-text, #444);
    position: relative;
    z-index: 10;
    background: var(--mm-bg-color, #f5f0e8);
}
.mm-breadcrumbs a {
    color: var(--mm-accent-red, #c8102e);
    text-decoration: none;
    font-weight: 600;
}
.mm-breadcrumbs a:hover { text-decoration: underline; }
.mm-bc-sep {
    margin: 0 8px;
    color: var(--card-border-gold, #c5b8a5);
    font-weight: 700;
}
.mm-breadcrumbs span:last-child {
    color: var(--mm-dark, #1b1b1b);
    font-weight: 700;
}

/* ─── FOOTER ─── */
.mm-footer {
    margin-top: 0;
    font-family: 'Nunito', sans-serif;
    position: relative;
    z-index: 10;
}

/* Bandeau rose du haut */
.mm-footer-topbar {
    background-color: var(--mm-accent-red);
    padding: 25px 40px;
}
.mm-footer-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mm-footer-logo img {
    height: 70px;
    width: auto;
}
.mm-footer-social a {
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
    display: inline-flex;
}
.mm-footer-social a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}
.mm-footer-insta-img {
    height: 45px !important;
    width: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
    border-radius: 10px;
}
.mm-footer-social a img {
    height: 45px !important;
    width: 45px !important;
    max-width: 45px !important;
}

/* Corps du footer (fond beige) */
.mm-footer-body {
    background-color: var(--mm-bg-color);
    border-top: 3px solid var(--card-border-gold);
    padding: 50px 40px 40px;
}
.mm-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

/* Colonne gauche */
.mm-footer-tagline {
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    color: var(--mm-dark);
    margin: 0 0 20px 0;
    line-height: 1.4;
}
.mm-footer-desc {
    font-size: 1rem;
    font-style: italic;
    color: var(--mm-text);
    line-height: 1.7;
    margin: 0 0 15px 0;
    max-width: 600px;
}
.mm-footer-desc strong {
    color: var(--mm-dark);
    font-weight: 800;
}

.mm-footer-heading {
    font-family: 'Rammetto One', cursive;
    font-size: 1.6rem;
    color: var(--mm-dark);
    margin: 30px 0 12px 0;
}

.mm-footer-email {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mm-dark);
    margin: 0 0 15px 0;
}
.mm-footer-copy {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--mm-text);
    margin: 0;
}

/* Colonne — Menu */
.mm-footer-nav {
    text-align: center;
}
.mm-footer-nav .mm-footer-heading {
    margin-top: 0;
}

.mm-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mm-footer-menu li a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mm-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.mm-footer-menu li a:hover {
    color: var(--mm-accent-red);
}

/* Lien "Devenir distributeur" en gold + uppercase */
.mm-footer-menu li a.mm-footer-highlight,
.mm-footer-menu li a[href*="distributeur"] {
    color: var(--mm-accent-gold);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mm-footer-menu li a.mm-footer-highlight:hover,
.mm-footer-menu li a[href*="distributeur"]:hover {
    color: var(--mm-accent-red);
}

/* Layout 3 colonnes */
.mm-footer-3col {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
}
.mm-footer-3col .mm-footer-heading:first-child {
    margin-top: 0;
}

/* Colonne légale */
.mm-footer-legal-col {
    text-align: center;
}
.mm-footer-legal-col .mm-footer-heading {
    margin-top: 0;
}
.mm-footer-legal-col .mm-footer-menu li a {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
}
.mm-footer-legal-col .mm-footer-menu li a:hover {
    opacity: 1;
}

/* Barre copyright */
.mm-footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.mm-footer-bottom p {
    font-size: 0.85rem;
    color: var(--mm-text);
    opacity: 0.6;
    margin: 0;
    font-style: italic;
}

/* ─── RESPONSIVE GLOBAL ─── */
@media (max-width: 768px) {
    .tcg-card { padding: 15px; border-width: 8px; border-radius: 15px; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 10px; border-bottom: none; padding-bottom: 5px; }
    .card-title { font-size: 2rem; }
    .card-hp { font-size: 1.5rem; padding: 4px 15px; align-self: flex-start; }
    .text-box { grid-template-columns: 1fr; gap: 20px; padding: 15px; }
    .attack-row { margin-bottom: 15px; padding-bottom: 15px; }
    .attack-name { font-size: 1.1rem; }
    .attack-value { font-size: 1.1rem; }
    .cost-icon { width: 25px; height: 25px; font-size: 1rem; }
    .flavor-text { font-size: 1rem; padding: 15px; }
    .wiki-btn { padding: 12px; font-size: 1rem; }
    .illustrator { font-size: 0.75rem; }
    .back-btn { font-size: 0.85rem; padding: 8px 16px; }

    /* Footer mobile */
    .mm-footer-topbar { padding: 20px 20px; }
    .mm-footer-logo img { height: 50px; }
    .mm-footer-social a svg { width: 36px; height: 36px; }
    .mm-footer-body { padding: 35px 20px 30px; }
    .mm-footer-3col { grid-template-columns: 1fr; gap: 35px; }
    .mm-footer-nav { text-align: left; }
    .mm-footer-legal-col { text-align: left; }
    .mm-footer-heading { font-size: 1.4rem; }
}
