
body {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: 'Roboto', sans-serif;
  color: #e0e0e0;
  background-color: #121212;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 1rem;
  font-family: 'Cinzel', serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #40C4FF;
}

/* header */
.header {
  background: linear-gradient(90deg, #000, #001d32);
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #2E7D32;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

header a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: color 0.3s, transform 0.3s;
  padding: 1rem;
}

header a:hover {
  color: #40C4FF;
  transform: translateY(-2px);
}

header a.active {
  color: #2E7D32;
}
.page-actuelle{
    border-bottom: solid 3px #02a71b;
}

.nav-icon {
  font-size: 1.1rem;
}

/*principal*/
.main-content {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: calc(100vh - 80px);
}

/* accueil*/
.hero {
  padding: 3rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero-images {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
  height: 400px;
}

.lara-fixed-video {
  position: absolute;
  top: 50%;
  right: -47%;
  transform: translateY(-50%);
  height: 900px;
  pointer-events: none;
  object-fit: contain;
  opacity: 1;
}

.main-logo {
  height: 120px;
  position: absolute;
  left: 10%;
  top: -10%;
  z-index: 2;
}

.lara-img {
  height: 600px;
  z-index: 1;
  position: absolute;
  right: 10%;
  top: -7%;
  bottom: 0;
}

.rocks-img {
  height: 500px;
  position: absolute;
  right: 50%;
  top: -7%;
  bottom: 0;
  z-index: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  text-align: center;
  margin-top: 200px;
  z-index: 3;
}

.parchment {
  background-color: rgba(240, 230, 210, 0.9);
  color: #3a2e18;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #c9b18b;
  font-size: 1.1rem;
  position: relative;
}

.parchment::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(201, 177, 139, 0.5);
  border-radius: 5px;
  pointer-events: none;
}

.adventure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background-color: #2E7D32;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.adventure-btn:hover {
  background-color: #1B5E20;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/*ajoits recents*/
.recent-items {
  padding: 3rem 0;
  background-color: rgba(0, 29, 50, 0.7); 
  backdrop-filter: blur(3px);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/*cartes */
.item-card {
  background-color: rgba(46, 125, 50, 0.1);
  border: 2px solid rgba(46, 125, 50, 0.4);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #2E7D32;
  background-color: rgba(46, 125, 50, 0.2);
}

.item-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-icon img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.item-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.item-category, .item-game {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-bottom: 0.3rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}

.item-preview {
  padding: 1rem;
  background: rgba(30, 30, 30, 0.9);
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  transition: bottom 0.3s ease;
  border-top: 1px solid #2E7D32;
}

.item-card:hover .item-preview {
  bottom: 0;
}

.see-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #d4af37;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.item-card:hover .see-more {
  transform: translateX(5px);
}

/* page d'inventaire  */
.inventory-main {
  background-image: url('img/fondjungle.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
}

.inventory-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.inventory-header h2 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.inventory-header p {
  color: #e0e0e0;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* filtres */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(0, 29, 50, 0.7);
  border: 1px solid rgba(64, 196, 255, 0.3);
  border-radius: 8px;
  max-width: 900px;
  backdrop-filter: blur(4px);
}

.filters input[type="text"],
.filters select {
  padding: 0.8rem 1rem;
  border-radius: 50px;
  border: 1px solid #40C4FF;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  min-width: 200px;
  transition: all 0.3s ease;
}

.filters input::placeholder {
  color: #cccccc;
  font-style: italic;
}

.filters input[type="text"]:focus,
.filters select:focus {
  outline: none;
  border-color: #2E7D32;
  background-color: rgba(255, 255, 255, 0.2);
}

.filters select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.filters select option {
  background-color: #121212;
  color: white;
}

/* statistqies*/
.inventory-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.stat-card {
  background-color: rgba(64, 196, 255, 0.1);
  border: 2px solid rgba(64, 196, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(3px);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #40C4FF;
  background-color: rgba(64, 196, 255, 0.2);
}

.stat-card i {
  font-size: 1.8rem;
  color: #40C4FF;
  margin-bottom: 0.5rem;
}

.stat-card h3 {
  font-family: 'Cinzel', serif;
  color: white;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.stat-card p {
  color: #e0e0e0;
  font-size: 0.9rem;
}

/* inventaires cartes */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* details cartes*/
.objet-details {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.objet-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.objet-image {
  flex: 1;
  min-width: 300px;
}

.objet-image img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #d4af37;
}

.objet-info {
  flex: 2;
  min-width: 300px;
}

.objet-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.objet-category, .objet-game {
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  font-size: 0.9rem;
}

.objet-description {
  margin: 2rem 0;
  line-height: 1.7;
}

.objet-features {
  margin: 2rem 0;
}

.feature-list {
  list-style-type: none;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
}

.feature-label {
  font-weight: 500;
  min-width: 150px;
  color: #d4af37;
}

.back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background: #2d2d2d;
  color: #d4af37;
  border: 1px solid #d4af37;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #d4af37;
  color: #121212;
}

/* a propos */
.about-main {
  background-color: #001d32;
  color: #e0e0e0;
  min-height: calc(100vh - 80px);
}

.about-hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 3px solid #2E7D32;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 29, 50, 0.8);
}

.about-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.about-hero-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #d4af37;
}

.about-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-section {
  padding: 4rem 0;
}

.about-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.creator-photo {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.creator-photo img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #2E7D32;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.photo-credits {
  text-align: right;
  font-size: 0.8rem;
  color: #a0a0a0;
  margin-top: 0.5rem;
}

.about-text {
  flex: 2;
}

.about-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #40C4FF;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.personal-trivia {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.trivia-item {
  background-color: rgba(64, 196, 255, 0.1);
  border: 1px solid rgba(64, 196, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.trivia-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.trivia-item h4 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-section {
  padding: 4rem 0;
  background-color: rgba(0, 29, 50, 0.7);
  backdrop-filter: blur(5px);
}

.concept-content {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.concept-image {
  flex: 1;
}

.concept-image img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #d4af37;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.concept-text {
  flex: 1;
}

.concept-text p {
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.concept-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(212, 175, 55, 0.2);
}

.feature-card i {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-family: 'Cinzel', serif;
  margin-bottom: 0.5rem;
}

.legal-section {
  padding: 4rem 0;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.legal-card {
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid #3d3d3d;
  transition: all 0.3s;
}

.legal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.legal-card h4 {
  font-family: 'Cinzel', serif;
  color: #40C4FF;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* formulaire ou ajouter */
.add-item-main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.add-item-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #3d3d3d;
  padding-bottom: 1.5rem;
}

.add-item-header h2 {
  font-family: 'Cinzel', serif;
  color: #f4f4f4;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.add-item-header p {
  color: #a0a0a0;
  font-size: 1.1rem;
}

.add-item-form {
  background: #1e1e1e;
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid #3d3d3d;
}

.form-section {
  margin-bottom: 2.5rem;
}

.form-section h3 {
  color: #ffffff;
  font-family: 'Cinzel', serif;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: #2d2d2d;
  border: 1px solid #3d3d3d;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #02a71b;
}

.hint {
  margin-top: 0.3rem;
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox input {
  width: auto;
}

.checkbox label {
  margin-bottom: 0;
  color: #b0b0b0;
  font-size: 0.85rem;
}

.submit-btn {
  background: #03cf1190;
  color: #121212;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  transition: all 0.3s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: #c9a227;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  color: #666;
  font-size: 0.85rem;
}

.success-message {
  background-color: #2E7D32;
  color: white;
  padding: 1rem;
  margin: 1rem auto;
  text-align: center;
  border-radius: 5px;
  max-width: 600px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* footer*/
.footer {
  background-color: #001a12;
  color: #c8e6c9;
  padding: 3rem 0 2rem;
  border-top: 2px solid #2E7D32;
  text-align: center;
  font-size: 0.95rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo-img {
  height: 100px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.footer-link {
  color: #c8e6c9;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #81c784;
}

.footer-text {
  color: #a5d6a7;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-collab {
  font-size: 0.85rem;
  color: #b5e0b5;
  font-style: italic;
  margin-top: -0.5rem;
}

/* responsive */
@media (max-width: 1200px) {
  .items-grid, .inventory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .inventory-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-images {
    flex-direction: column;
    height: auto;
  }
  
  .main-logo, .lara-img, .rocks-img {
    position: relative;
    left: auto;
    right: auto;
    margin: 1rem auto;
  }
  
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  .about-container, .concept-content {
    flex-direction: column;
  }
  
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .inventory-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .creator-photo, .concept-image {
    max-width: 500px;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 600px) {
  .items-grid, .inventory-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-text {
    margin-top: 100px;
  }
  
  .filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filters input, .filters select {
    width: 100%;
  }
  
  .inventory-stats {
    grid-template-columns: 1fr;
  }
  
  .add-item-main {
      padding: 0 1rem;
  }
  
  .add-item-form {
      padding: 1.5rem;
  }
  
  .form-grid {
      grid-template-columns: 1fr;
  }
}