body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-size: cover;
    color: #413e3e;
    margin: 0;
    padding: 0;
}

.main-header {
    background-color: #c91b21;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    margin-bottom: 40px;
}

/* Logo */
.main-title {
    text-align: center;
    padding: 10px 0;
}

.main-title img {
    width: 120px;
    height: auto;
}

/* barre de navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.main-nav a i {
    margin-right: 8px;
    font-size: 20px;
}

/* Effet au survol et page active */
.main-nav a:hover,
.main-nav a.active {
    background-color: #ffffff;
    color: #c91b21;
}

/* Indicateur de page active */
.main-nav a[aria-current="page"] {
    background-color: #ffffff;
    color: #c91b21;
}

/* Utilisation sur écrans de 768px*/
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    main {
        width: 95%;
    }
}

/* Contenu principal */
main {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
}

h2 {
    color: #b71c1c;
    border-bottom: 2px solid #b71c1c;
}

section {
    margin-bottom: 20px;
}

p {
    margin-bottom: 10px;
}

.legal {
    font-size: 0.9em;
    color: #514e4e;
    margin-top: 20px;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
h1{
  padding : 10px;
  width: 800 px;
  height: 800 px; 
}

.name{
  color:rgb(244, 234, 234); 
  display: block;
  margin-top: 20px;
}

:root {
  --color-light-gray: #f0e7e7;
  --color-light-red: #b71c1c;
  --color-white: #ffffff;
  --color-blue: #2c1f4e;
  --color-dark: #000000;
}

p{
  color:rgb(244, 234, 234);
  margin-bottom: 20px;
}
body {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background-color: #b71c1c;
}

strong {
  font-weight: 600;
}

.site-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: transparent;
}

.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.main-title img {
  width: 120px;
}

.filters {
  font-size: 1rem;
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  margin-top:30px;
}

.select-box {
  display: inline-block;
  width: 210px;
  overflow: hidden;
  text-align: left;
  background-color: var(--color-white);
  position: relative;
  box-shadow: rgba(99, 99, 99, 0.5) 0px 2px 8px 0px;
  &::after {
  content: '';
  display: inline-block;
  border-top: solid 7px var(--color-dark);
  border-right: solid 4px transparent;
  border-left: solid 4px transparent;
  pointer-events: none;
  position: absolute;
  top: 18px;
  right: 13px;
  }
}

.select-box select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: transparent;
  border-radius: 100;
  box-sizing: border-box;
  color: var(--cllor-dark);
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  &:focus {
    outline: none;
  }
}

/*style de la barre de recherche*/
.search-container {
  margin: 20px 0;
  text-align: center;
}

.search-box {
  padding: 10px 15px;
  width: 60%;
  max-width: 500px;
  border: 2px solid #ccc;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

.search-box:focus {
  border-color: #e62429; 
  box-shadow: 0 0 8px rgba(230, 36, 41, 0.5);
}
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 5px;
}
.suggestions-title {
  padding: 10px 15px;
  font-weight: bold;
  color: #e62429; 
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.search-suggestions .suggestion-card {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}
.search-suggestions .suggestion-card:hover {
  background-color: #f5f5f5;
}
.search-suggestions .suggestion-image {
 width: auto;
 height: 70px;
 border-radius: 5px;
 object-fit: cover;
 object-position: top center;
 margin-right: 15px;
 top: 30%; 
}
.search-suggestions .suggestion-name {
  color:  #e62429;
  font-weight: bold;
}
.search-container {
  position: relative;
}
/* Style pour les sections */
.section-title {
  color: #e62429;
  border-bottom: 2px solid #e62429;
  padding-bottom: 5px;
  margin-top: 30px;
}
/* Grid pour les cartes */
.marvel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px;
}

/* Styles des cartes Marvel */
.Marvel-card {
  background: #0e014d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.Marvel-card .image-container {
  height: 250px;
  overflow: hidden;
}

.Marvel-image {
  width: 100%;
  height: 120%; 
  object-fit: cover;
  object-position: center 2%;
}

.Marvel-card:hover .Marvel-image {
  transform: scale(1.1);
}

.card-content {
  padding: 15px;
  position: relative;
}

.card-content h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.search-container {
  margin: 30px auto;
  max-width: 600px;
  position: relative;
}

.search-box {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #e62429;
  border-radius: 30px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.search-box:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(230, 36, 41, 0.5);
}

.card-badge {
  position: absolute;
  top: 57px;
  right: 15px;
  padding: 5px 7px;
  border-radius: 20px;
  background-color: #c7161c;
  color: white;
  font-size: 0.6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(2px);
}
/* Suite de l'utilisation sur écrans 768px*/
@media (max-width: 768px) {
  .marvel-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .Marvel-card .image-container {
    height: 200px;
  }
}
/* style du tri al^phabétique*/
.sortOrder {
  background-color: #e62429;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.sortOrder {
  background-color: #c11a1f;
}