* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #000;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  line-height: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* HERO */

.hero-location {
  min-height: 100svh;
  padding: 0 10%;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.9) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 850px;
}

.mini-title {
  color: #86A5FF;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero-content h1 {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 25px;
  font-weight: 500;
}

.hero-content p {
  font-size: 20px;
  max-width: 720px;
  font-weight: 200;
  margin-bottom: 35px;
}

.hero-btn {
  display: inline-block;
  padding: 15px 35px;
  border: 1px solid white;
  font-weight: 300;
  transition: 0.3s;
}

.hero-btn:hover {
  background: white;
  color: black;
}

/* SECTIONS */

.intro-location,
.details-location,
.process-location {
  padding: 80px 10%;
  text-align: center;
}

h2 {
  font-size: 34px;
  font-weight: 400;
  margin: 0 auto 40px auto;
  border-bottom: 1px solid #86A5FF;
  width: fit-content;
}

/* INTRO */

.intro-box {
  max-width: 950px;
  margin: auto;
  padding: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
}

.intro-box p {
  font-weight: 200;
  line-height: 1.8;
}

/* CATALOGUE */

.details-location {
  padding: 80px 10%;
}

.accordion-item {
  max-width: 1100px;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.accordion-header {
  width: 100%;
  padding: 25px;
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.accordion-header span {
  font-size: 30px;
  color: #86A5FF;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header span {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 4000px;
}

.materiel-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.materiel-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.materiel-card h4 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.materiel-card p {
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.prix-location {
  color: #86A5FF !important;
  margin-top: 10px;
}

/* DESCRIPTION LONGUE */

.voir-plus-btn {
  margin-top: 10px;
  margin-bottom: 10px;
  background: transparent;
  border: 1px solid #444;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.voir-plus-btn:hover {
  background: white;
  color: black;
}

.description-longue {
  display: none;
  line-height: 1.6;
  margin-bottom: 10px;
  opacity: 0.9;
}

.description-longue.active {
  display: block;
}

/* BOUTONS / PANIER */

.btn-supprimer-panier {
    margin-top: 10px;
    padding: 8px 14px;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.5);
    color: #ff7070;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
    font-size: 14px;
}

.btn-supprimer-panier:hover {
    background: #ff4d4d;
    color: white;
}

.btn-ajouter-panier,
.btn-reserver {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 22px;
  border: 1px solid #86A5FF;
  background: transparent;
  color: white;
  font-family: inherit;
  font-weight: 300;
  transition: 0.3s;
  border-radius: 10px;
  cursor: pointer;
}

.btn-ajouter-panier:hover,
.btn-reserver:hover {
  background: #86A5FF;
  color: black;
}

.quantite-panier {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantite-panier input {
  width: 80px;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

.panier-flottant {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 999;
  background: white;
  color: black;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
}

.btn-quantite {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #86A5FF;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.btn-quantite:hover {
    background: #86A5FF;
    color: black;
}

.quantite-panier span {
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.actions-panier {
    text-align: center;
    margin-bottom: 30px;
}

.btn-vider-panier {
    padding: 12px 18px;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.5);
    color: #ff7070;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

.btn-vider-panier:hover {
    background: #ff4d4d;
    color: white;
}

/* PANIER / FORMULAIRE */

.reservation-page {
  padding: 120px 5% 80px;
  max-width: 1000px;
  margin: auto;
}

.total-location {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 20px;
  background: #161616;
  border: 1px solid #333;
  border-radius: 10px;
  font-size: 22px;
  text-align: center;
}

#totalPrix {
  color: #86A5FF;
  font-weight: 600;
}

.form-reservation {
  margin-top: 40px;
  padding: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
}

.form-reservation form,
form.form-reservation {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-reservation .ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-reservation .champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-reservation input,
.form-reservation select,
.form-reservation textarea {
  width: 100%;
  padding: 14px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-family: inherit;
  border-radius: 8px;
  font-size: 16px;
}

.form-reservation textarea {
  resize: none;
}

.form-reservation button {
  width: fit-content;
  padding: 10px 22px;
  background: white;
  color: black;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
}

.success {
  color: #7CFF8A;
  margin-bottom: 20px;
}

.error {
  color: #FF7070;
  margin-bottom: 20px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.info-tarif {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* PROCESS */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.process-grid div {
  padding: 30px;
  border: 1px solid rgba(134,165,255,0.25);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  text-align: left;
}

.process-grid span {
  color: #86A5FF;
  letter-spacing: 3px;
  font-size: 14px;
}

.process-grid h3 {
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 400;
  margin: 15px 0;
}

.process-grid p {
  font-weight: 200;
  line-height: 1.6;
}

/* CONTACT */

#contact {
  padding: 5% 10%;
}

#contact h2 {
  border-bottom: #86A5FF 1px solid;
  padding-bottom: 1px;
  width: fit-content;
  margin: 0 auto 5% auto;
  text-align: center;
}

#contact p {
  font-size: 20px;
}

#contact p:not(form p) {
  text-align: center;
}

#contact form {
  background-color: #161616;
  margin-top: 5%;
  border-radius: 10px;
  padding: 5% 10%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#contact .ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

#contact .champ {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#contact .champ label {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  color: #000;
}

#contact textarea {
  resize: none;
}

#contact .conteneur-bouton {
  text-align: center;
}

#contact button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background-color: white;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* RESPONSIVE */

@media screen and (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 56px;
  }
}

@media screen and (max-width: 700px) {
  .hero-location {
    padding: 120px 8% 60px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .intro-location,
  .details-location,
  .process-location {
    padding: 60px 8%;
  }

  h2 {
    font-size: 26px;
  }

  .intro-box,
  .form-reservation {
    padding: 25px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .accordion-header {
    font-size: 18px;
    padding: 20px;
  }

  .materiel-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .materiel-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
  }

  .materiel-card h4 {
    font-size: 20px;
  }

  .reservation-page {
    padding: 100px 8% 60px;
  }

  .form-reservation .ligne {
    grid-template-columns: 1fr;
  }

  .form-reservation button {
    width: 100%;
  }

  .panier-flottant {
    right: 15px;
    bottom: 15px;
    padding: 12px 18px;
  }

  #contact {
    padding: 60px 8%;
  }

  #contact p {
    font-size: 14px;
  }

  #contact .ligne {
    flex-direction: column;
  }
}

@media screen and (max-width: 380px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .mini-title {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}