/* STYLES DE BASE MOBILE FIRST */
.one-hero-container {
  padding: 10px 0;
  width: 90%;
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  flex-direction: column;
}

/* Styles mobile par défaut */
main{
  margin: 7vh;
}

h2 {
  font-size: 0.9em;
  text-align: end;
}

h4{
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.filter-hero-container {
  align-items: center;
  width: 95%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
  gap: inherit;
}

.fieldset-filter-container {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  /* Mobile: vertical stack */
  align-items: center;
  justify-content: space-evenly;
}

.fieldset-filter-container button {
  width: 120px;
}

.filter-item,
.categories-item,
.categories-size-item {
  width: 95%;
  padding: 5px;
  display: flex;
  justify-content: space-between;
}

.size-item {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 0 0 15px;
  align-items: center;
}

.size_range {
  width: 60%;
  
}
input[type="range"] {
    accent-color: #ff5722;
}

select {
  padding: 10px 0;
  border-radius: 10px;
  text-align: center;
  color: var(--h1-h2-titles);
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.filter-item select option {
  color: rgb(65, 44, 0);
  font-size: 1em;
  border-radius: 10px;
}

.hero-container {
  width: 95%;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
}

.palette-attration {
  display: flex;
  height: 100px;
  /* Plus petit pour mobile */
  width: 95%;
  overflow: hidden;
  margin: 10px;
  border-radius: 15px;
}

.cards-attraction {
  width: 50%;
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  transition: all 0.3s ease-out;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cards-attraction:nth-child(1) {
  background-image: url(../images/prehistoire.webp);
}

.cards-attraction:nth-child(2) {
  background-image: url(../images/antiquite.webp);
}

.cards-attraction:nth-child(3) {
  background-image: url(../images/moyen-age.webp);
}

.cards-attraction:nth-child(4) {
  background-image: url(../images/futur.webp);
}


.cards-attraction:hover {
  flex: 4;
  box-shadow: rgba(21, 21, 104, 0.2) 0px 7px 29px 0px;
  transition: all 1s ease-in-out;
}

.parc-info{
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--titles-font);
  color: var(--p-contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3em;
  letter-spacing: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 30px 0;
  backdrop-filter: blur(5px);
  border-radius: 5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.prehistoire-hero-container {
  width: 100%;
  padding: 15px 0;
}

.prehistoire-container {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  margin: 0 auto;
  gap: 10px;
}

.prehistoire-content {
  width: 100%;
  padding: 15px 0;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  /* Mobile: vertical stack */
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}

.prehistoire-item {
  overflow: visible;
  width: 100%;
  /* Mobile: pleine largeur */
  height: 600px;
  padding: 10px;
  flex-wrap: wrap;
}

.prehistoire-item:hover .content {
  transform: rotateY(180deg);
}

.prehistoire-item .content {
  width: 100%;
  height: 100%;
  background-color: rgb(240, 248, 255);
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000027;
  border-radius: 5px;
}
.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* -webkit-backface-visibility: hidden; */
  border-radius: 5px;
  overflow: hidden;
}

.front {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.front-item h4 {
  padding: 15px;
}

.front-item {
  display: flex;
  padding: 0px 15px;
  margin: auto;
  max-height: 100%;
  justify-content: center;
}

.front-item p {
  font-size: 1.2em;
  align-items: center;
}

.back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}


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

p {
  font-size: 0.9rem;
}
  .rating {
    margin: 0.5rem 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }

  .no-ride-filter{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
  font-size: 1.5rem;
  }

/* ===== MEDIA QUERIES - MOBILE FIRST ===== */

/* Small phones and up (358px+) */
@media screen and (min-width: 375px) {
  .one-hero-container {
    padding: 10px 0;
    width: 96%;
    gap: 10px;
  }

  h2 {
    font-size: 0.89em;
  }

  .filter-hero-container {
    align-items: center;
    width: 100%;
  }

  .fieldset-filter-container {
    padding: 10px;
    border-radius: 20px;
  }

  .filter-item,
  .categories-item,
  .categories-size-item {
    width: 100%;
  }

  .prehistoire-item {
    width: 100%;
    height: 420px;
    max-width: 358px;
  }

  .size-item {
    width: 100%;
    align-items: center;
  }

  .size_range {
    width: 48px;
  }

  p {
    font-size: 1rem;
  }

  .palette-attration {
    width: 100%;
    margin: 0;
  }

  .hero-container {
    margin: 0;
    width: 100%;
  }

  .front {
    background-color: antiquewhite;
  }

  .front-item p {
    font-size: 0.9em;
    line-height: 1.4em;
  }
  input  {
    width: 100%;
    
  }
}

/* Large phones (500px+) */
@media screen and (min-width: 500px) {

  /* .one-hero-container{
  padding: 10px 0;
  width: 100%;
 } */
  h2 {
    font-size: 1.05em;
  }

  .prehistoire-item {
    max-width: 60%;
    height: 370px;
  }

  p {
    font-size: 1.1rem;
  }
}

/* Small tablets (641px+) */
@media screen and (min-width: 641px) {
  h2 {
    font-size: 1.3em;
  }

  .filter-hero-container {
    width: 90%;
  }

  .palette-attration {
    width: 95%;
    height: 128px;
  }
  .prehistoire-item {
    width: 85%;
    height: 370px;
  }
  p {
    font-size: 1.2rem;
  }
}

/* Medium tablets (790px+) */
@media screen and (min-width: 790px) {
  h2 {
    font-size: 1.7em;
  }

  p {
    font-size: 1.3rem;
  }
}

/* Large tablets (991px+) */
@media screen and (min-width: 991px) {
  h2 {
    font-size: 2em;
  }

  .fieldset-filter-container {
    flex-direction: row;
    /* Retour à horizontal */
    align-items: center;
  }

  .filter-item {
    width: 60%;
  }

  .categories-item {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .categories-size-item {
    width: 55%;
    text-align: center;
  }

  .prehistoire-content {
    flex-direction: row;
    /* Retour à horizontal */
    width: 95%;
  }

  .prehistoire-item {
    width: 31%;
    height: 432px;
  }

  p {
    font-size: 1.4rem;
  }
}

/* Desktop small (1025px+) */
@media screen and (min-width: 1025px) {
  h2 {
    font-size: 2.3em;
  }

  .filter-hero-container {
    width: 80%;
  }

  .palette-attration {
    height: 250px;
  }

  p {
    font-size: 1.5rem;
  }
}

/* Large desktop (1441px+) */
@media screen and (min-width: 1441px) {
  .filter-hero-container {
    width: 65%;
  }

  .hero-container {
    width: 100%;

  }

  .palette-attration {
    width: 70%;
  }

  .prehistoire-item {
    width: 30%;
  }

  p {
    font-size: 1.6rem;
  }
}

/* Extra large screens (2561px+) */
@media screen and (min-width: 2561px) {
  body {
    font-size: 1.6rem;
  }
}