@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@200&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap");
@import url("color.css");
@import url("navbar.css");
body {
  background-color: var(--background);;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}
* {
  font-weight: normal;
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
  width: fit-content;
}
a.span{
  color: var(--couleurPrimaire);
  font-weight: bolder;
  display: flex;
  flex-wrap: wrap;
  word-break: break-all;
}
span {
  color: var(--couleurPrimaire);
}
.title_rank {
  color: inherit;
  font-weight: 800;
  white-space: nowrap;
  
}
h4 {
  font-weight: lighter;
}
.top h3 {
  font-weight: lighter;
}

li {
  list-style: none;
}
ul {
  margin-top: 0px;
  margin-left: 0px;
  padding: 0px;
  margin: 0px;
}
/*notif */ 
.card_notification {
  width: 330px;
  height: 80px;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 10px 15px;
  background-color: #ffffff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
}
.wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31px;
  top: 32px;
  width: 80px;
  fill: #04e4003a;
}
.icon-container {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #04e40048;
  border-radius: 50%;
  margin-left: 8px;
}
.icon {
  width: 17px;
  height: 17px;
  color: #269b24;
}
.message-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}
.message-text,
.sub-text {
  margin: 0;
  cursor: default;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.message-text {
  color: #269b24;
  font-size: 17px;
  font-weight: 700;
}
.sub-text {
  font-size: 14px;
  color: #555;
}
.cross-icon {
  width: 18px;
  height: 18px;
  color: #555;
  cursor: pointer;
}
/*page*/
.card h4, .element_card h4 {
    white-space: pre-line;
}
#welcome {
  margin-top: 5px;
  margin-bottom: 0px;
  font-size: calc(30px + 2vw);
  margin-left: 0px;
  font-weight: 700;
}
#welcome.immeuble {
  margin-bottom: -10px;
}
#sous_titre {
  font-size: calc(20px + 1vw);
  margin-bottom: 10px;
  margin-top: -0px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
#adresse {
  font-size: calc(10px + 0.5vw);
  margin-bottom: 0px;
  margin-top: 15px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.card_container {
  width: 100%;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}
.header {
  width: 100%;
  min-height: calc(100vh - 100px);
  margin-top: 0px;
}
.card {
  position: relative;
  padding: 1rem;
  flex-basis: calc(33.5% - 5px);
  word-break: keep-all;
  overflow: hidden;
  max-width: 33.33%;
  max-width: 700px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  border-radius: 6px;
  display: grid;
  justify-content: start;
  align-items: start;
  overflow: hidden;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  cursor: pointer;
  transition: 0.1s ease-in-out;
}
#wifi{
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
), url(/image/wifi.jfif);
background-position: center;
background-size: cover;
}
.element_card.wifi_container{
  display: grid;
  align-items: center;
  align-content: center;
}
#supp{
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
), url(supp.jpg);
background-position: center;
background-size: cover;
}
#reglement{  background: linear-gradient(
  to bottom,
  rgba(0, 0, 0, 0),
  rgba(0, 0, 0, 0.7)
), url(reglement.webp);
background-position: center;
background-size: cover;
}
#none{
  font-weight: lighter;
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
  width: 100%;
  opacity: 0;
  pointer-events: none;

}
#arrivee{
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
), url(arrivée.webp);
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
#adresses{
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
), url(lieux.jpg);
background-position: center;
background-size: cover;
}
#depart{
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
), url(depart.webp);
background-position: center;
background-size: cover;
}
.element_card{
  position: absolute;
  z-index: -1;
  display: flex;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  color: var(--background);
  padding: 1rem;
  flex-wrap: wrap;
  align-items: start;
  justify-content: start;
  transition: 0.2s ease-in-out;
  border-radius: 6px;
  overflow-x: hidden;

}
.element_card h4{
  font-weight: lighter;
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
  width: 100%;
  }
.blur_card > .element_card{
  transition: .35s ease-in-out;
  opacity: 1;
  display: grid;
  backdrop-filter: blur(5px) brightness(0.7) ;
  -webkit-backdrop-filter: blur(5px) brightness(0.7);
  z-index: 2;
  overflow-y: auto;

}
.blur_card > .card{
  scale: 1.7;
}
.blur_card > .bottom_card {
  opacity: 0;
}

.bottom_card{
    position: absolute;
    bottom: 5px;
    padding: 1rem;
    width: 100%;
    color: var(--background);
    text-align: left;
}
.card.immeuble {
  line-height: 300px;
}
.card:first-child {
  margin-top: 0px;
  display: grid;
  justify-content: space-between;
}
.card:last-child{
  margin-bottom: 3rem;
}
.card.adresse {
  padding-bottom: 1.6rem;
}
.icon_card_restaurant {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  box-shadow: rgba(17, 17, 26, 0.08) 0px 4px 16px;
  border-radius: 7px;
  border: 2px solid var(--couleur-texte);
}
.icon_container_restaurant {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
}
.top .icon-tabler {
  margin-right: 5px;
}
.card:nth-child(2) {
  margin-top: 0px;
}
.top_card {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0.8rem;
}
.title_icon_card.airbnb {
  font-size: 20px;
  font-weight: 800;
}
.title_card {
  font-weight: 800;
}
#info_supp {
  margin-left: 8px;
}
.avis h4 {
  text-align: center;
}
.form_incident {
  display: grid;
  align-items: center;
  padding-bottom: 0.7rem;
}
.btn_incident {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  background: none;
  cursor: pointer;
  font-weight: bolder;
  padding-top: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
  background-color: var(--couleurPrimaire);
  color: var(--background);
  border-radius: 5px;
  border: none;
}
.textarea_incident {
  margin-top: 5px;
  width: calc(100% - 2rem);
  min-height: 90px;
  background: none;
  border: 1px solid var(--couleur-texte);
  border-radius: 7px;
  outline: none;
  padding: 1rem;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  resize: none;
  font-size: 15px;
  margin-left: auto;
  margin-right: auto;
  font-weight: normal;
}
.textarea_incident::placeholder {
  color: var(--couleur-texte);
  font-weight: normal;
}
.arrivee h3 {
  margin-left: 15px;
}
.adresse h3 {
  margin-left: 15px;
}
.wifi h3 {
  margin-left: 8px;
}
.avis h3 {
  margin-left: 12px;
}
.depart h3 {
  margin-left: 5px;
}
.reglement h3 {
  margin-left: 5px;
}
.demande h3 {
  margin-left: 10px;
}
.incident h3 {
  margin-left: 5px;
}
.incident h3 {
  margin-left: 5px;
}
.social_media h3 {
  margin-left: 10px;
}
.adresse_container {
  display: grid;
}
.adresse_element {
  margin-top: 10px;
  display: flex;
  align-items: center;
  color: var(--couleurPrimaire);
}
#id_wifi {
  margin-top: 3.5px;
  margin-bottom: 0px;
}


.form_card {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding-bottom: 1.15rem;
}
.btn {
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  background: var(--couleurPrimaire);
  color: var(--background);
  font-weight: bolder;
  cursor: pointer;
  padding-top: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 5px;
  text-align: center;
  align-self: center;
}
/* HTML: <div class="loader"></div> */
#loader{
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader {
  height: 30px;
  aspect-ratio: 2.5;
  --_g: no-repeat radial-gradient(farthest-side,#000 90%,#0000);
  background:var(--_g), var(--_g), var(--_g), var(--_g);
  background-size: 20% 50%;
  animation: l43 1s infinite linear; 
}
@keyframes l43 {
  0%     {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
  16.67% {background-position: calc(0*100%/3) 0   ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
  33.33% {background-position: calc(0*100%/3) 100%,calc(1*100%/3) 0   ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
  50%    {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 100%,calc(2*100%/3) 0   ,calc(3*100%/3) 50% }
  66.67% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 100%,calc(3*100%/3) 0   }
  83.33% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 100%}
  100%   {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
}
.btn.trad{
  margin-left: 5px;
  background: none;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  padding-top: .5rem;
  padding-bottom: .5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.copy_button_container {
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: space-between; /* Place le texte à gauche et l'icône à droite */
  width: 100%;
  max-width: 100%;
  padding: 8px 0;
  box-sizing: border-box;
  flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
}

#mdp_wifi {
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
  max-width: calc(100% - 40px); /* Laisse de la place pour l'icône */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
  margin-right: 10px; /* Espace entre le texte et l'icône */
}

.icon-copy {
  flex-shrink: 0; /* Empêche l'icône de rétrécir */
  margin-left: auto; /* Pousse l'icône vers la droite */
  width: 24px;
  height: 24px;
}
.socialmedia_container {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.socialmedia_element {
  width: fit-content;
  padding: 1rem;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/*modifier_affiche.php*/
.top {
  display: grid;
  align-items: center;
  justify-content: center;
}
#welcome.editable {
  max-width: 90%;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.editable_container {
  width: fit-content;
}
.editable {
  width: fit-content;
  text-decoration: none;
  border: 1px solid var(--couleur-background-input);
  background: none;
  font-size: 16px;
  padding: 0.2rem;
  border-radius: 4px;
  outline: none;
  font-family: "Montserrat", sans-serif;
  margin-left: 5px;
}
.editable.adresse {
  text-align: center;
}
.editable.immeuble {
  text-align: center;
}
textarea.editable {
  width: 100%;
  margin-left: 0px;
  margin-top: 5px;
  height: 80px;
}
.rank {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.rank_immeuble {
  display: flex;
  justify-content: start;
  align-items: baseline;
  position: relative;
  width: calc(33vw - 5px);
}
.element_rank {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(18vw - 5px);
}
.location {
  white-space: nowrap;
}
.rank_immeuble .icon-tabler {
  margin-left: 5px;
}
.rank_airbnb {
  display: flex;
  height: 20px;
  margin-bottom: 10px;
}
.rank_airbnb:last-child {
  margin-bottom: 5px;
}
.title_rank_immeuble {
  font-weight: 700;
  margin-right: 4.5px;
  white-space: nowrap;
  height: min-content;
  width: fit-content;
}
.rank.immeuble_editable {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.save {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: var(--couleurPrimaire);
  color: var(--background);
  border-radius: 7px;
  border: none;
  padding: 0.7rem;
  padding-left: 3vw;
  padding-right: 3vw;
  font-size: 1rem;
  cursor: pointer;
}
.notif {
  position: fixed;
  display: grid;
  align-items: center;
  justify-content: center;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  border-radius: 5px;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  background-color: var(--background);
  animation: notif 10s forwards ease-in-out;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px;
  border-radius: 7px;
}
@keyframes notif {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/*footer*/
.footer {
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 0px 15px;
  border-top-left-radius: 5px;
  display: grid;
  justify-content: center;
  align-items: start;
  text-align: center;
  border-top-right-radius: 5px;
  margin-top: 100px;
  padding: 1rem;
  font-size: 15px;
  line-height: 24px;
  padding-bottom: 0px;
}
.footer .title {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.container_element_footer {
  display: flex;
  flex-wrap: wrap;
  width: 90vw;
  justify-content: space-around;
}
.page {
  display: grid;
  text-align: left;
  align-items: start;
  margin: 0 20px 0 20px;
}
.condition {
  display: grid;
  align-items: start;
}
.header_title {
  width: fit-content;
}
h4.header_title {
  margin-bottom: 5px;
  font-weight: 700;
}
.card_restaurant_container {
  width: 100%;
  padding-bottom: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: start;
  position: relative;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}
.card_restaurant_container::-webkit-scrollbar {
  height: 0px;
}
.card_adresse {
  margin-top: 0px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.title_card_adresse {
  position: absolute;
  text-align: left;
  display: flex;
  align-items: center;
  color: var(--background);
  width: 6.5rem;
  padding: 4px 5px;
  bottom: 0px;
  box-sizing: border-box;
  font-size: 0.9rem;
  font-weight: bolder;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card_adrsse_image {
  position: relative;
  width: 6.5rem;
  height: 5.7rem;
  border-radius: 7px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  display: grid;
  flex: 0 0 auto;
}
.blur {
  filter: blur(2px);
}
.icon-tabler-phone-call,
.icon-tabler-mail {
  flex-shrink: 0;
}
#activites {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.4)
), url("park.jpeg");
background-position: center;
background-size: cover;
}
#restaurant {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.6)
), url("restaurant.jpg");
background-position: center;
background-size: cover;
}
#bars {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.4)
), url("bar.jpg");
background-position: center;
background-size: cover;
}
#lieux {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.4)
), url("lieux.jpg");
background-position: center;
background-size: cover;
}

@media screen and (max-width: 1667px) {
  .rank.immeuble {
    display: grid;
    align-items: center;
    justify-content: center;
  }
  .rank.immeuble_editable {
    width: 100%;
    display: grid;
    align-items: center;
    justify-content: start;
  }
  .editable_container {
    display: grid;
    width: 100%;
    text-align: center;
    width: 33vw;
  }
}
@media screen and (max-width: 1140px) {
  .footer {
    text-align: center;
  }
  .container_element_footer {
    display: grid;
    text-align: center;
  }
  .header_title {
    margin-left: auto;
    margin-right: auto;
  }
  .condition {
    display: grid;
    text-align: center;
    align-items: center;
  }
  .page {
    display: grid;
    text-align: center;
    margin: 0 0 0 0;
    margin-bottom: 20px;
  }
  .footer a {
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 900px) {
  .editable.immeuble {
    width: fit-content;
    max-width: 90%;
  }
  .rank_immeuble {
    width: 87vw;
    max-width: 400px;
  }
  .element_rank {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(87vw - 5px);
  }
  #adresse {
    font-size: 1.05rem;
  }
  .card_container {
    display: grid;
    margin-top: 40px;
  }
  .first_card {
    margin-left: calc(6.5vw - 1rem);
  }
  .card {
    width: 80svw;
    max-width: 400px;
    min-height: 100px;
    font-size: 1.08rem;
  }
  #id_wifi{
    width: calc(87vw - 20%);
    max-width: 400px;
    flex-wrap: wrap;
    word-wrap: break-word;
  }
  .card li {
    font-size: 14px;
  }
  .card .demande .btn:last-child {
    margin-top: 10px;
  }
  textarea.editable {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 650px) {
  .navbar ul {
    padding-left: 10px;
  }
  .menu {
    position: fixed;
    bottom: 0px;
    height: 50px;
    width: 100vw;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
      rgba(17, 17, 26, 0.1) 0px 0px 15px;
    background: var(--background);
  }
  .icon_menu {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 70%;
  }
}
@media screen and (max-width:520px) {
  .card_restaurant_container {
    justify-content: start;
    margin-top: 17px;
  }
}
/* --- MOCKUP PHONE --- */
.phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--background, #fafafa);
}
.phone-mockup-inner {
  width: 390px;
  height: 844px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 0 0 16px #2222  , 0 8px 40px #0004;
  overflow: hidden;
  position: relative;
  border: 2px solid #e5e5e5;
  display: flex;
  flex-direction: column;
}
/* --- MOCKUP PHONE FIX --- */
@media (min-width: 1201px) {
  .phone-mockup-inner {
    width: 390px !important;
    min-width: 390px !important;
    max-width: 390px !important;
    height: 844px !important;
    min-height: 844px !important;
    max-height: 844px !important;
    overflow-y: auto;
    /* Empêche le contenu de s'étirer */
  }
  .phone-mockup-inner * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
  }
}
body, html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .copy_button_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
    min-height: 40px; /* Hauteur minimale pour s'assurer que l'icône est visible */
  }

  #mdp_wifi {
    max-width: calc(100% - 40px);
    word-wrap: break-word;
    white-space: normal;
    text-align: left;
    margin-right: 10px;
  }

  .icon-copy {
    position: relative;
    z-index: 10;
  }
}