:root {
  --text-color: #111528;
  --subtext-color: #555;
  --header-color: #081935;
  --background-icon: white;
  --line-color: #000000;
}

.darkmode {
  --background-color: linear-gradient(to bottom left, #002d36, #310026);
  --text-color: #ffffff;
  --subtext-color: #c7c7c7;
  --background-icon: black;
  --line-color: #ffdd77;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: black;
}

body {
  background: antiquewhite;
  background-size: cover;
  color: var(--text-color);
}

.card-color {
  color: rgb(48, 20, 20);
}

footer {
  background: rgb(36, 11, 11);
  font-size: 20px;
}

.navbar-custom {
  background-image: url("../images/wood3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent !important;
}

.navbar-custom .nav-link {
  color: white;
}

.container-fluid,
.navbar {
  position: relative;
  z-index: 100;
}

.btn-retour {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.img_accueil {
  background-image: url("images/Illustration_Wild_West.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 50em;
  width: 100%;
}

.swiper {
  width: 100%;
  height: 500px;
}

.swiper-slide-active img {
  z-index: 10;
  opacity: 1;
  transform: scale(1.15);
}

.swiper-slide {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 50px;
  padding: 2em;
  margin: 2em;
}

#titre {
  font-size: 20px;
  text-align: center;
}

.conteneur-image {
  text-align: center;
  gap: 10px;
}

.section-carte {
  background-color: antiquewhite;
}

.board {
  background: var(--background-color);
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
  height: 150em;
  padding: 3em 2em;
  box-sizing: border-box;
}

/* ---------- Attraction (liste + fiche) ---------- */

.attraction-page {
  padding-bottom: 4rem;
}

.attraction-hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.attraction-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.05em;
}

.attraction-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.attraction-card {
  background: var(--background-icon);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(8, 25, 53, 0.15);
}

.attraction-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.attraction-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.attraction-card:hover .attraction-card-image img {
  transform: scale(1.05);
}

.attraction-card-content {
  padding: 1.2rem 1.4rem 1.4rem;
}

.attraction-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.attraction-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.attraction-location {
  text-align: right;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.attraction-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.attraction-meta span {
  background: var(--line-color);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
}

@media screen and (max-width: 768px) {
  .attraction-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .attraction-hero h1 {
    font-size: 2rem;
  }

  .attraction-card-image {
    height: 180px;
  }
}

/* ---------- Connexion / Inscription ---------- */

.img_connexion {
  display: block;
  height: auto;
  width: 600px;
  justify-content: flex-end;
  padding-right: 0;
}

.box {
  flex-direction: column;
  justify-content: center;
}

.selection {
  display: flex;
  justify-content: center;
}

.image {
  flex-direction: row-reverse;
}

.illustrafond {
  min-height: 100svh;
  background-image: url("/images/Illustration_Wild_West.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rectInscription {
  background-color: antiquewhite;
  width: 500px;
  height: 750px;
  border-radius: 20px;
  padding: 50px 45px;
  text-align: center;
  position: absolute;
  align-items: center;
}

.rectConnexion {
  background-color: antiquewhite;
  width: 500px;
  height: 650px;
  border-radius: 20px;
  padding: 50px 45px;
  text-align: center;
  position: absolute;
  align-items: center;
}

.logo {
  height: 200px;
  width: 200px;
  justify-content: center;
}

/* ---------- Fiche bien / simulation ---------- */

.Card {
  display: flex;
  gap: 30px;
  align-items: stretch;
  padding: 30px;
  max-width: 1400px;
  margin: auto;
  flex-wrap: nowrap;
}

.ImageContainer {
  flex: 2;
  max-width: 853px;
  height: 472px;
  overflow: hidden;
  border-radius: 10px;
}

.ImageBien {
  width: 100%;
  height: 100%;
}

.ImageBien img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.Description {
  flex: 1;
  min-width: 280px;
  max-width: auto;
  background-color: var(--background-icon);
  border-radius: 15.44px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-color);
}

.location {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.txtgris {
  color: var(--subtext-color);
  font-size: 0.95rem;
  margin: 0;
}

.stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats h4:first-child {
  font-size: 0.9rem;
  color: var(--subtext-color);
  font-weight: 500;
}

.stats .txtgris {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.cash {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cash h1 {
  font-size: 1.8rem;
  white-space: nowrap;
  color: var(--text-color);
}

.Grey {
  display: flex;
  background-color: #eaeaea;
  border-radius: 15.44px;
  padding: 16px 20px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.Profil {
  display: flex;
  align-items: center;
  gap: 12px;
}

.Profil img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.Profil p {
  margin: 0;
  color: var(--subtext-color);
  font-size: 1rem;
  line-height: 1.3;
}

.Info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.Info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

.text-muted {
  font-size: 0.85rem;
  color: var(--subtext-color);
}

.map-container {
  width: 1260px;
  margin: 20px auto;
}

#map {
  height: 300px;
  border-radius: 15px;
}

.loan {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1260px;
  margin: 20px auto;
  background-color: var(--background-icon);
  border-radius: 15.44px;
  height: 460px;
  padding: 20px;
  color: var(--text-color);
}

.calculation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: rgb(196, 196, 196);
  border-radius: 15.44px;
  min-height: 295px;
  height: auto;
}

.amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #b6f3ff;
  border-radius: 15.44px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--text-color);
}

.cash h1,
.room h1,
.piece h1,
.surface h1,
.location h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sim-input {
  border-bottom: 2px solid #b0a080 !important;
  outline: none;
  box-shadow: none !important;
  color: var(--text-color);
}

.sim-input:focus {
  border-bottom-color: var(--line-color) !important;
}

.sim-input::placeholder {
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.4;
}

.agent-card {
  min-width: 180px;
}

.btn-sim-calc,
.btn-sim-reset,
.btn-contact,
.btn-agent-cta,
.btn-plus,
.villa-fav {
  flex: unset !important;
  height: unset !important;
  cursor: pointer;
  border-radius: 50px;
  font-size: 1rem;
}

.btn-sim-calc {
  background-color: #b6f3ff;
  border: none;
  padding: 10px 28px;
}
.btn-sim-calc:hover {
  background-color: #8de8f8;
}

.btn-sim-reset {
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 10px 28px;
  color: var(--text-color);
}
.btn-sim-reset:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-contact {
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 6px 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}
.btn-contact:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-agent-cta {
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 10px 24px;
  margin-top: 10px;
  color: var(--text-color);
}
.btn-agent-cta:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-plus {
  border: 1px solid var(--line-color);
  background: transparent;
  padding: 10px 28px;
  color: var(--text-color);
}
.btn-plus:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.appartement-card {
  background: var(--background-icon);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.appartement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(8, 25, 53, 0.15);
}

.appartement-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.appartement-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.appartement-card:hover .appartement-card-image img {
  transform: scale(1.05);
}

.appartement-card-content {
  padding: 1.2rem 1.4rem 1.4rem;
}

.appartement-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.appartement-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.appartement-location {
  text-align: right;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.appartement-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.appartement-meta span {
  background: var(--line-color);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
}

@media screen and (max-width: 768px) {
  .appartement-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .appartement-hero h1 {
    font-size: 2rem;
  }

  .appartement-card-image {
    height: 180px;
  }
}

.drop {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  background-color: var(--input-bg);
  border-radius: 15.44px;
  height: 500px;
  padding: 20px;
  gap: 60px;
}

.Add_bien {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  color: var(--text-color);
}

.Describe {
  flex: 1;
  display: flex;
  align-items: flex-end;
  width: 578px;
  height: 102px;
}

.pill-filter {
  flex: 1;
  height: 70px;
  padding: 0 25px;
  border-color: #ddd !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.Add_files {
  font-size: 25px;
  color: var(--text-color);
}

.content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  flex-wrap: nowrap;
  padding: 20px 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

.features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.content form {
  flex: 1;
  min-width: 0;
}

#file-input {
  display: none;
}

#drop-zone {
  cursor: pointer;
}

.page-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1rem;
}

.col-gauche {
  flex: 0 0 300px;
  position: sticky;
  top: 1rem;
}

.col-droite {
  flex: 1;
  min-width: 0;
}

.champ-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 0.2rem;
  padding-left: 0.5rem;
}

.champ-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.champ-wrapper input,
.champ-wrapper textarea,
.champ-wrapper select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ffc107;
  border-radius: 1rem;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  outline: none;
  background-color: var(--input-bg);
  display: block;
  color: var(--text-color);
  max-width: 100%;
  margin-left: 0;
}

.champ-wrapper input:focus,
.champ-wrapper textarea:focus,
.champ-wrapper select:focus {
  border-color: #fd7e14;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.champ-wrapper input::placeholder,
.champ-wrapper textarea::placeholder {
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.5;
  color: var(--text-color);
}

#preview {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.recommendation {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }
  .col-gauche {
    flex: unset;
    width: 100%;
    position: static;
  }
}

.reservation {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.creneaux-jour {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.illustrabillet {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.illustrabillet::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("/images/banniere.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.achat-ticket {
  background-color: rgba(250, 235, 215, 0.733);
  width: 500px;
  height: auto;
  border-radius: 20px;
  padding: 50px 45px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 65vh;
  z-index: 10;
  align-items: center;
}

.billet {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.place,
.jour {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.place label,
.jour label {
  font-weight: 500;
  font-size: 15px;
  color: #333;
}

.form-control {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.prix {
  margin-top: 10px;
  text-align: center;
}

.prix h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

.prix_total {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a2e;
}

.avis-card {
  background: #3e2516;
  border: 1px solid #4a3c2a;
  border-radius: 12px;
  padding: 20px;
  max-width: 100vh;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-family: "Segoe UI", sans-serif;
  color: #eee;
  margin: 5px;
}

.avis-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.avis-photo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0c040;
}

.avis-nom {
  margin: 0;
  font-size: 1rem;
  color: #f0c040;
}

.avis-etoiles {
  color: #f0c040;
  font-size: 0.9rem;
  margin-top: 3px;
}

.avis-texte {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
  margin: 10px 0;
}

.avis-date {
  font-size: 0.75rem;
  color: #888;
}

.container-avis {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropfile-avis {
  width: 50vh;
  height: 50vh;
}

.forum-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 15px;
}

.top-actions {
  margin-bottom: 20px;
}

.thread-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.thread-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.thread-info {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.forum-header {
  margin: 30px 0 15px;
}

.forum-header h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.empty-box {
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #888;
  margin-bottom: 20px;
}

.search-box {
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-custom {
  border-radius: 6px;
}

.alert {
  border-radius: 6px;
}

#forum_button {
  padding: 5px;
}

.espacement {
  gap: 5px;
}

.container-communaute {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.rect-communaute {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.rect-communaute:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.communaute-card {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.communaute-card-image {
  flex-shrink: 0;
  width: 220px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
}

.communaute-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.rect-communaute:hover .communaute-card-image img {
  transform: scale(1.08);
}

.communaute-infos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.communaute-infos h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #222;
}

.date-sortie {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.description {
  font-size: 0.95rem;
  color: #444;
  margin: 4px 0;
  line-height: 1.4;
}

.communaute-infos h4 {
  margin: 6px 0 0;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.rejoindre-communaute {
  display: flex;
  gap: 15px;
  padding: 0 20px 15px;
}

.rejoindre-communaute .btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe14d, #ffea00);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.rejoindre-communaute .btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .communaute-card {
    flex-direction: column;
  }

  .communaute-card-image {
    width: 100%;
    height: 180px;
  }
}

.creer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message-autre {
  justify-content: flex-start;
}

.message-moi {
  justify-content: flex-end;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.bulle {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 15px;
  position: relative;
}

.message-autre .bulle {
  background-color: #e5e5ea;
  color: black;
  border-bottom-left-radius: 4px;
}

.message-moi .bulle {
  background-color: #007bff;
  color: white;
  border-bottom-right-radius: 4px;
}

.auteur {
  display: block;
  font-size: 0.8em;
  margin-bottom: 3px;
}

.contenu {
  margin: 0;
  word-wrap: break-word;
}

.date {
  display: block;
  font-size: 0.7em;
  margin-top: 5px;
  opacity: 0.7;
  text-align: right;
}

.chat-container {
  display: flex;
  height: 90vh;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.chat-principal {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #f5e6c8;
}
.chat-header {
  background: #6b4226;
  color: #f5e6c8;
  padding: 15px;
  text-align: center;
}
.chat-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.messages-zone {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 70%;
}

.message-moi {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message-moi .bulle {
  background: #8a6d3b;
  color: white;
  border-radius: 15px 15px 0 15px;
}

.message-autre {
  align-self: flex-start;
}
.message-autre .bulle {
  background: #fff8ec;
  border: 1px solid #d9c7a3;
  border-radius: 15px 15px 15px 0;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.bulle {
  padding: 10px 15px;
}
.auteur {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
}
.contenu {
  margin: 0;
}
.date {
  display: block;
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}

.chat-input-form {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #ede0c0;
  border-top: 2px solid #d9c7a3;
}
.chat-input {
  flex: 1;
  padding: 10px 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  outline: none;
}
.btn-envoyer {
  background: #6b4226;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
}
.btn-envoyer:hover {
  background: #8a6d3b;
}

.chat-body {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.chat-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("/images/background_chat.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.message-sondage {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.bulle-sondage {
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 400px;
}

.question-sondage {
  font-weight: bold;
  margin: 8px 0 12px;
}

.option-sondage {
  margin-bottom: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.barre-progression {
  background: #e0e0e0;
  border-radius: 6px;
  height: 8px;
  margin-top: 4px;
  overflow: hidden;
}

.barre-remplie {
  background: #4a90d9;
  height: 100%;
  transition: width 0.3s ease;
}

.pourcentage {
  font-size: 0.85em;
  color: #555;
}

.option-votee {
  font-weight: bold;
}

.btn-voter {
  margin-top: 12px;
  padding: 8px 16px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.total-votes {
  display: block;
  margin-top: 8px;
  font-size: 0.8em;
  color: #777;
}

:root {
  --bois-fonce: #3b2a1e;
  --bois-clair: #6b4a30;
  --creme: #f7ecd9;
  --or: #d9a441;
  --or-clair: #f0c975;
  --texte-principal: #2b2118;
  --texte-muet: #8a7c6d;
  --succes: #2e7d32;
  --carte-fond: #ffffff;
  --carte-ombre: 0 8px 24px rgba(59, 42, 30, 0.12);
  --rayon: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte-principal);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

h2,
h3,
h4 {
  color: var(--texte-principal);
  margin: 0 0 0.4em;
}

.txtgris {
  color: var(--texte-muet);
  font-weight: 600;
}

.Card-concours {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}

.Description-concours {
  background: var(--carte-fond);
  border-radius: var(--rayon);
  box-shadow: var(--carte-ombre);
  padding: 2rem;
  width: 100%;
  max-width: 720px;
}

.location h2 {
  font-size: 2rem;
}

.message-concours .bulle-concours {
  background: linear-gradient(180deg, #fffdf8, var(--creme));
  border: 1px solid #ecdcb8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.auteur {
  display: inline-block;
  color: var(--or);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.titre-concours {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.2rem 0;
}

.description-concours {
  color: #4a3d2f;
  margin: 0.4rem 0 0.8rem;
}

.dates-concours {
  color: var(--texte-muet);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.options-concours {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.option-photo {
  border: 1px solid #e6d7b8;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.option-photo:hover {
  border-color: var(--or);
}

.option-photo.option-votee {
  border-color: var(--or);
  background: #fff8e8;
}

.option-label {
  cursor: pointer;
  font-weight: 600;
}

.barre-progression {
  background: #efe4cc;
  border-radius: 999px;
  height: 10px;
  margin-top: 0.6rem;
  overflow: hidden;
}

.barre-remplie {
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.pourcentage {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--texte-muet);
}

.btn-voter {
  margin-top: 1rem;
  background: var(--bois-fonce);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-voter:hover {
  background: var(--bois-clair);
}

.total-votes {
  display: block;
  margin-top: 1rem;
  color: var(--texte-muet);
  font-size: 0.9rem;
}

.stats {
  margin-top: 1.5rem;
  border-top: 1px solid #eee0c4;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.stats .description-text {
  grid-column: 1 / -1;
}

.stats h4 {
  font-size: 0.95rem;
  color: var(--texte-muet);
  margin-bottom: 0.2rem;
}

.cash {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cash h4:first-child {
  color: var(--texte-muet);
  font-weight: 400;
}

.container-button-avis {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-warning {
  background: var(--or);
  border: none;
  color: #2b2118;
}

.btn-warning:hover {
  background: var(--or-clair);
}

.text-success {
  color: var(--succes);
}

.espacement {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.espacement h3 {
  font-size: 1.6rem;
}

.galerie-concours {
  margin-top: 1.5rem;
}

.photo-card {
  background: var(--carte-fond);
  border-radius: var(--rayon);
  box-shadow: var(--carte-ombre);
  padding: 1rem;
  text-align: center;
  transition: transform 0.15s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
}

.photo-card.photo-gagnante {
  border: 2px solid var(--or);
  box-shadow: 0 8px 24px rgba(217, 164, 65, 0.35);
}

.ImageBien img {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.progress {
  background: #efe4cc;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar.bg-warning {
  background: linear-gradient(90deg, var(--or), var(--or-clair)) !important;
  color: #2b2118;
  font-weight: 700;
}

.form-check-label {
  cursor: pointer;
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .Description-concours {
    padding: 1.25rem;
  }
}
:root {
  --creme: #f6ead2;
  --or: #d3a95c;
  --or-fonce: #c2913f;
  --navy: #1b2140;
  --gris-texte: #6b6b6b;
  --noir-badge: #17181f;
  --succes: #2e7d32;
  --carte-fond: #fff;
  --carte-ombre: 0 6px 18px rgba(27, 33, 64, 0.08);
  --rayon: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--navy);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

h2,
h3,
h4 {
  margin: 0 0 0.4em;
  color: var(--navy);
}

.entete-page,
.grille-concours {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.entete-page {
  margin: 2.5rem auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.entete-page h2 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.btn-warning {
  background: var(--or);
  border: 0;
  color: var(--navy);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(211, 169, 92, 0.4);
}

.btn-warning:hover {
  background: var(--or-fonce);
}

.grille-concours {
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.carte-concours {
  background: var(--carte-fond);
  border-radius: var(--rayon);
  box-shadow: var(--carte-ombre);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.carte-concours:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(27, 33, 64, 0.14);
}

.carte-concours.statut-termine {
  opacity: 0.75;
}

.carte-entete {
  padding: 1.1rem 1.25rem 0.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.carte-entete h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.carte-entete .carte-info-droite {
  flex-shrink: 0;
  text-align: right;
  color: var(--gris-texte);
  font-size: 0.85rem;
  line-height: 1.35;
}

.carte-description {
  padding: 0 1.25rem;
  color: var(--gris-texte);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.7rem;
}

.carte-badges {
  padding: 0 1.25rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-pilule {
  display: inline-block;
  background: var(--noir-badge);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-pilule.badge-or {
  background: var(--or);
  color: var(--navy);
}

.carte-carrousel {
  position: relative;
  background: #eee0c4;
}

.carte-carrousel .carousel-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.carte-carrousel .carousel-caption {
  position: static;
  background: linear-gradient(
    0deg,
    rgba(23, 24, 31, 0.85),
    rgba(23, 24, 31, 0.45)
  );
  color: #fff;
  padding: 0.6rem 0.9rem 0.8rem;
  border-radius: 0;
  text-align: left;
}

.carte-carrousel .carousel-caption .nom-auteur {
  font-weight: 700;
  font-size: 0.95rem;
}
.carte-carrousel .carousel-caption .votes-info {
  font-size: 0.78rem;
  opacity: 0.9;
  margin: 0.15rem 0 0.5rem;
}

.btn-vote-carrousel {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--or);
  color: var(--navy);
}

.btn-vote-carrousel:hover {
  background: var(--or-fonce);
}

.btn-vote-carrousel:disabled {
  background: var(--succes);
  color: #fff;
  cursor: default;
}

.badge-gagnante {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--or);
  font-weight: 700;
  font-size: 0.8rem;
}

.carte-vide {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-texte);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 1rem;
}

.carte-pied {
  padding: 0.9rem 1.25rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gris-texte);
  margin-top: auto;
}

.carte-pied .lien-ajout {
  color: var(--navy);
  font-weight: 700;
}

.search-container {
  max-width: 400px;
  margin: 20px auto;
}

#searchInput {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

#results {
  top: 100%;
  left: 0;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  list-style: none;
}

#results li {
  cursor: pointer;
}

#results:empty {
  display: none;
}

.photo_concours {
  display: flex;
  align-items: center;
}

.footer_actions_links a {
  text-decoration: none;
  color: rgb(252, 243, 243);
}
.footer_title1,
.footer_title2,
.footer_title3 {
  color: #ffffffd7;
  font-size: 22px;
  text-align: center;
}

.footer_actions_links_2 a {
  text-decoration: none;
  color: rgb(252, 243, 243);
  text-align: center;
}
.footer_actions_links_3 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: auto;
}
.footer_actions_links_3 a {
  text-decoration: none;
  color: rgb(252, 243, 243);
  padding-bottom: 24px;
}
.footer_social_links {
  display: flex;
  gap: 2.4rem;
  flex-direction: row;
}
.footer_copyright {
  color: #ffffffd7;
  text-align: center;
  border-top: 1px solid rgb(255, 253, 253);
  padding-top: 24px;
}
.footer_copyright a {
  color: #ffffffd7;
  text-decoration: none;
}
.footer_bottom {
  display: flex;
  flex-direction: column;
  padding: 3rem 5% 8rem;
  margin: auto;
}
