@font-face {
  font-family: 'Noto';
  src: url('../fonts/NotoSerifSC-Variable.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
    font-family: 'Noto', sans-serif;
}

body {
    background-color: #7b2c2c;
}

footer {
    color: #f5ecd9
}

.ivory {
    color: #f5ecd9 !important;
}

.badge-gold {
    background-color: rgba(200, 160, 96, 0.8) !important;
}

.btn-fb {
  background: linear-gradient(45deg, #1877F2, #166FE5);
  color: #fff;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-fb:hover, .btn-fb:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
  color: #fff;
}

.btn-x {
  background: linear-gradient(45deg, #000, #222);
  color: #fff;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-x:hover, .btn-x:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.btn-gold {
  background: linear-gradient(45deg, #c8a060, #b8935a);
  color: #000;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-gold:hover, .btn-gold:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200,160,96,0.25);
  color: #000;
}

a {
    color: rgba(200,160,96,0.95);
}


/* Empêcher le scroll quand le menu mobile est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 280px;
  background-image: url('../images/banner/chibi-banner.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 75% 85%;
  overflow: hidden;
}

.hero-banner::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.35) 30%,
    rgba(216,46,46,0.18) 60%,
    rgba(123,44, 44, 1) 100%
  );
  pointer-events:none;
}

/* ============================================ */
/* MENU UNIFIÉ - STYLES DE BASE */
/* ============================================ */

/* Bouton menu mobile */
.menu-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background: linear-gradient(45deg, #c8a060, #b8935a) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.menu-toggle-btn svg {
    width: 24px;
    height: 24px;
    color: #000;
}

/* Overlay pour menu mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1054;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Menu de base */
#menu {
    background-color: transparent !important;
}

#menu .accordion-item {
    background-color: transparent !important;
    border: none !important;
    margin-bottom: 5px !important;
}

#menu .accordion-button {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

#menu .accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: #f5ecd9 !important;
}

#menu .accordion-button:focus {
    box-shadow: none !important;
}

#menu .accordion-body {
    background-color: transparent !important;
}

#menu .accordion-button::after {
    display: none !important;
}

/* ============================================ */
/* MENU VERSION DESKTOP */
/* ============================================ */

@media (min-width: 992px) {
    .menu-toggle-btn {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }

    /* Styles pilule pour desktop */
    #menu a,
    #menu .accordion-button {
        color: #f5ecd9 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        margin-left: -15px !important;
        padding-left: 25px !important;
        background: linear-gradient(45deg, rgba(245, 236, 217, 0.25), rgba(200, 160, 96, 0.2)) !important;
        border-radius: 0 25px 25px 0 !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 1.2rem !important;
        padding: 0.8rem !important;
        font-weight: 500 !important;
    }

    #menu a:hover,
    #menu .accordion-button:hover {
        background: linear-gradient(45deg, rgba(245, 236, 217, 0.4), rgba(200, 160, 96, 0.35)) !important;
        color: #c8a060 !important;
        transform: translateX(5px) !important;
    }

    /* Sous-menus desktop */
    #menu .accordion-body a {
        background: transparent !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
        padding-left: 15px !important;
        color: #f5ecd9 !important;
        border-bottom: none !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        padding: 0.6rem !important;
    }

    #menu .accordion-body a:hover {
        background: rgba(245, 236, 217, 0.1) !important;
        color: #c8a060 !important;
        transform: none !important;
    }

    #menu .accordion-body ul li {
        border-bottom: none !important;
    }

    #menu .accordion-body ul li a {
        border-bottom: none !important;
    }
}

/* ============================================ */
/* MENU VERSION MOBILE */
/* ============================================ */

@media (max-width: 991px) {
    #menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #7b2c2c 0%, #6a2525 100%);
        z-index: 1055;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        display: block !important; /* Override Bootstrap d-none */
    }
    
    #menu.show {
        left: 0;
    }

    /* Réinitialiser les styles pour mobile */
    #menu .accordion-item {
        border-bottom: 1px solid rgba(200, 160, 96, 0.2);
        margin-bottom: 0 !important;
    }
    
    #menu a,
    #menu .accordion-button {
        margin-left: 0 !important;
        padding: 15px 20px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #f5ecd9 !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    #menu a:hover,
    #menu .accordion-button:hover {
        background: linear-gradient(45deg, rgba(245, 236, 217, 0.1), rgba(200, 160, 96, 0.05)) !important;
        color: #c8a060 !important;
        transform: none !important;
    }

    #menu .accordion-button:not(.collapsed) {
        background: linear-gradient(45deg, rgba(245, 236, 217, 0.15), rgba(200, 160, 96, 0.1)) !important;
        color: #c8a060 !important;
    }

    #menu .accordion-button::after {
        display: block !important;
        filter: invert(1);
        opacity: 0.7;
    }

    /* Sous-menus mobile */
    #menu .accordion-body {
        background: rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    #menu .accordion-body ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #menu .accordion-body li a {
        color: rgba(245, 236, 217, 0.8) !important;
        padding: 12px 30px !important;
        display: block;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(200, 160, 96, 0.1) !important;
        text-align: left !important;
    }

    #menu .accordion-body li:last-child a {
        border-bottom: none !important;
    }

    #menu .accordion-body li a:hover {
        background: rgba(245, 236, 217, 0.05) !important;
        color: #c8a060 !important;
        padding-left: 35px !important;
    }
}

/* ============================================ */
/* SECTION COMMUNAUTÉ */
/* ============================================ */

.community-section {
    background: linear-gradient(135deg, rgba(200, 160, 96, 0.15), rgba(245, 236, 217, 0.08));
    border: 1px solid rgba(200, 160, 96, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 160, 96, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.community-section h3 {
    color: #f5ecd9;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.community-section p {
    color: rgba(245, 236, 217, 0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.community-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-discord {
    background: linear-gradient(45deg, #7289DA, #5865F2);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.4);
    color: white;
}

.btn-facebook {
    background: linear-gradient(45deg, #1877F2, #166FE5);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
    color: white;
}

/* ============================================ */
/* SECTION ACTUALITÉ */
/* ============================================ */

#news-title {
    color: #f5ecd9;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

#news-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #c8a060, transparent);
    margin: 10px auto 0;
}

.card {
    background: linear-gradient(135deg, rgba(245, 236, 217, 0.1), rgba(200, 160, 96, 0.05)) !important;
    border: 1px solid rgba(200, 160, 96, 0.2) !important;
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 25px !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #c8a060, #f5ecd9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 160, 96, 0.5) !important;
}

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

.card .col-md-2 {
    background: linear-gradient(45deg, rgba(200, 160, 96, 0.8), rgba(200, 160, 96, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    position: relative;
    min-height: 120px;
}

.card .col-md-2::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid rgba(200, 160, 96, 0.6);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.card .col-md-2 p {
    color: #000 !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.card .badge {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #f5ecd9 !important;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-body {
    padding: 25px !important;
    background: linear-gradient(135deg, rgba(245, 236, 217, 0.08), rgba(200, 160, 96, 0.03)) !important;
    border-radius: 0 15px 15px 0 !important;
}

.card-title {
    color: #f5ecd9 !important;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-text {
    color: rgba(245, 236, 217, 0.8) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card .btn-primary {
    background: linear-gradient(45deg, #c8a060, #b8935a) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 20px;
}

.card .btn-primary:hover {
    background: linear-gradient(45deg, #d4ac6a, #c8a060) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 160, 96, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideInUp 0.6s ease forwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-discord, .btn-facebook {
        width: 100%;
        max-width: 250px;
    }

    .card .col-md-2::after {
        display: none;
    }
    
    .card .col-md-2 {
        min-height: auto;
        padding: 15px;
    }
    
    #news-title {
        font-size: 1.6rem;
    }
    
    #main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================ */
/* ARTICLE */
/* ============================================ */

#article {
    color: #f5ecd9;
}

/* -------- Footer amélioré -------- */
.site-footer {
  background: linear-gradient(180deg, #6a2525 0%, #7b2c2c 100%);
  color: #f5ecd9;
  border-top: 2px solid rgba(200,160,96,0.6);
  font-size: 0.95rem;
  --gold: rgba(200,160,96,0.95);
  padding-bottom: 2rem;
}

.footer-logo {
  width: 56px;
  height: auto;
  border-radius: 8px;
  /*background: rgba(0,0,0,0.06);*/
  padding: 6px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f5ecd9;
  letter-spacing: 0.4px;
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(245,236,217,0.85);
}

/* Nav links */
.footer-link {
  color: rgba(200,160,96,0.95);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  outline-offset: 3px;
}

.footer-link:hover, .footer-link:focus {
  color: #f5ecd9;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Socials */
.social-icons .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #000;
  background: linear-gradient(45deg, var(--gold), #b8935a);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
  text-decoration: none;
}

.social-icons .social i {
  font-size: 1.05rem;
  color: #000;
}

.social-icons .social:hover, .social-icons .social:focus {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.06);
}

/* Newsletter small */
.footer-newsletter input[type="email"] {
  background: rgba(245,236,217,0.05);
  border: 1px solid rgba(245,236,217,0.08);
  color: #f5ecd9;
  padding: 8px 10px;
  border-radius: 8px 0 0 8px;
  min-width: 180px;
}

.btn-news {
  background: linear-gradient(45deg, #c8a060, #b8935a);
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

.btn-news:hover, .btn-news:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200,160,96,0.18);
}

/* small helpers */
.visually-hidden { 
  position: absolute !important; 
  height: 1px; width: 1px; 
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; 
}

/* Accessible focus */
a:focus, button:focus, input:focus {
  box-shadow: 0 0 0 3px rgba(200,160,96,0.18);
  outline: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .card, .community-section::before, .social-icons .social, .card:hover, .menu-toggle-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .footer-newsletter { display: none !important; } /* conserve espace sur mobile */
  .container > .d-flex { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-nav ul { flex-wrap: wrap; gap: 0.5rem; }
}

