/* =============================================
   AniBase – style.css
   Basé sur TemplateMo 602 Graph Page (templatemo.com)
   ============================================= */

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0e27;
  color: #ffffff;
  overflow-x: hidden;
}

/* =============================================
   NAVIGATION — utilisé dans header.php
   ============================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: padding 0.3s ease;
}

nav.scrolled {
  padding: 15px 50px;
  background: rgba(10, 14, 39, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00ffcc 0%, #00ccff 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  stroke: #0a0e27;
  fill: none;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00ffcc;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00ffcc;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =============================================
   HERO — utilisé dans index.php
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to right,
    #0a0e27 0%,
    rgba(10, 14, 39, 0.85) 40%,
    rgba(10, 14, 39, 0.1) 75%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 50px;
}

.hero-text {
  max-width: 550px;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #00ffcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: #a0a0a0;
  margin-bottom: 40px;
  max-width: 500px;
}

/* =============================================
   BOUTON CTA — utilisé dans index.php
   ============================================= */
.cta-button {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* =============================================
   SECTIONS — utilisé dans index.php et apropos.php
   ============================================= */
.dashboard-section {
  padding: 100px 50px 80px;
  background: linear-gradient(180deg, #0a0e27 0%, #0f1329 100%);
  min-height: 88vh;
}

.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #00ffcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   DETAIL CARD — utilisé dans detail.php et apropos.php
   ============================================= */
.detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

/* Ligne lumineuse animée en haut de chaque carte */
.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffcc, transparent);
  animation: scan 3.5s linear infinite;
}

.detail-card:hover {
  border-color: rgba(0, 255, 204, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.detail-card h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 22px;
}

.detail-card > p {
  font-size: 15px;
  color: #a0a0a0;
  line-height: 1.7;
  margin-top: 12px;
}

.detail-card p + p {
  margin-top: 10px;
}

.detail-card a {
  color: #00ffcc;
  text-decoration: none;
}

.detail-card a:hover {
  text-decoration: underline;
}

/* Badges catégories dans detail.php */
.detail-card span {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  margin: 4px 4px 0 0;
}

/* =============================================
   LIEN RETOUR
   ============================================= */
.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.btn-retour:hover {
  color: #00ffcc;
}

/* =============================================
   HEADER DE CARD (titre + badge rareté)
   ============================================= */
.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.item-card-header h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #00ffcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.item-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.item-rarete {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 204, 0.15),
    rgba(0, 204, 255, 0.1)
  );
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #00ffcc;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================
   MÉTA (Animé / Lieu)
   ============================================= */
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-meta-ligne {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.detail-meta-ligne span:first-child {
  color: #00ffcc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
}

.detail-meta-ligne span:last-child {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =============================================
   PERSONNAGES
   ============================================= */
.personnage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.personnage-item:last-child {
  margin-bottom: 0;
}

.personnage-item:hover {
  background: rgba(0, 255, 204, 0.05);
  border-color: rgba(0, 255, 204, 0.2);
  transform: translateX(4px);
}

.personnage-nom {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.personnage-role {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =============================================
   CATÉGORIES
   ============================================= */
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categories-list span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.categories-list span:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* =============================================
   SECTION DERNIERS OBJETS — latest-items
   ============================================= */
.latest-items {
  padding: 80px 50px;
  background: #0a0e27;
}

.latest-items h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #00ffcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 204, 0.3);
}

.item-card p {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.6;
}

.item-link {
  font-size: 14px;
  color: #00ffcc;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.3s ease;
}

.item-link:hover {
  color: #ffffff;
}

.see-all {
  text-align: center;
  margin-top: 40px;
}

/* =============================================
   FOOTER — utilisé dans footer.php
   ============================================= */
footer {
  padding: 35px 50px;
  background: #0a0e27;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.copyright {
  font-size: 16px;
  /* color: #707070; */
  color: #c0c0c0;
}

.copyright a {
  /* color: #707070; */
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: #00ffcc;
}

/* =============================================
   RECHERCHE — recherche.php
   ============================================= */
.search-description {
  color: #a0a0a0;
  font-size: 15px;
  margin-bottom: 24px;
  text-align: center;
}

.search-form {
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: rgba(0, 255, 204, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.search-bar input::placeholder {
  color: #505050;
}

.search-bar button {
  padding: 14px 28px;
  background: #00c8c8;
  color: #0a0e27;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 204, 0.3);
}

.search-empty {
  color: #a0a0a0;
  font-size: 15px;
  text-align: center;
  padding: 60px 0;
}

.search-count {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
  font-style: italic;
}

/* Barre de tri */
.search-tri {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search-tri span {
  font-size: 0.9rem;
  color: #666;
}

.tri-btn {
  padding: 6px 16px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background: white;
  color: #333;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tri-btn:hover {
  border-color: #e63946;
  color: #e63946;
}

.tri-btn.actif {
  background: #e63946;
  border-color: #e63946;
  color: white;
  font-weight: bold;
}

/* =============================================
   FORMULAIRE AJOUTER
   ============================================= */
.ftco-section {
  padding: 60px 0;
  margin-top: 50px;
}

.ftco-section .container {
  max-width: 550px;
  margin: 0 auto;
  padding: 0 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: #1a1f3a;
  border: 1px solid #2e3560;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #00d4ff;
}

.btn-primary {
  padding: 10px 28px;
  background: #00d4ff;
  color: #0a0e1a;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 0 auto;
}

.btn-primary:hover {
  background: #00b8db;
}

.alert-success {
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid #00d4ff;
  border-radius: 8px;
  color: #00d4ff;
  margin-bottom: 20px;
}
.password-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

#toggle-mdp {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #a0a0a0;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  transition: all 0.3s ease;
}

#toggle-mdp:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* =============================================
   ANIMATION
   ============================================= */
@keyframes scan {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 968px) {
  nav {
    padding: 15px 20px;
  }
  .hero-text h1 {
    font-size: 42px;
  }
  .dashboard-section {
    padding: 90px 20px 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-content {
    padding: 0 20px;
  }
  .latest-items {
    padding: 60px 20px;
  }
  .detail-card {
    padding: 22px 20px;
  }
  .dashboard-section {
    padding: 90px 20px 60px;
  }
  .item-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-card-header h2 {
    font-size: 24px;
  }
  .personnage-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
