/* public/css/about.css */

/* Imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/gill-sans-nova");

/* Fonts locales */
@font-face {
  font-family: "Amallicita";
  src: url("../asset/Amallicita-8ff9adc9d0aa88f39eba089d4571938d.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "GillSansMTPro-Light", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.property-hero {
  padding: 40px 0;
  background: white;
}
.property-hero-content {
  position: relative;
  width: 100%;
  min-height: 50vh;
  overflow: hidden;
  margin-top: 120px;
}
.property-info {
  position: relative;
  z-index: 1;
  width: 60%;
  min-height: 50vh;
  background: white;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end; 
  align-items: center;  
}
.property-info .content {
  width: var(--content-width, 790px);       
  padding: 6rem 2rem;
  box-sizing: border-box;
}
@media (max-width:768px){
	.property-hero {
        margin-top: 20px !important;
    }
	.property-hero-content {
		height: auto !important;
	}
	.property-info {
		padding: 0 20px;
	}
	.property-info .content {
		width: 100% !important;
		padding: 0;
	}
	.panoramic-description {
		text-align: justify;
	}
}

.property-name {
  font-family: "GillSansMTPro-Medium", sans-serif;
  font-size: 44px;
  color: #00305C;
  margin-bottom: 25px;
  line-height: 1.1;
}
.property-price {
  font-family: "GillSansMTPro-Medium", sans-serif;
  font-size: 40px;
  color: #00305C;
  margin-bottom: 25px;
  line-height: 1.1;
}
.property-description {
  font-size: 25px;
  line-height: 1.5;
  margin-bottom: 30px;
  font-family: "GillSansMTPro-Light", sans-serif;
  font-weight: 300;
}
.property-contact-btn {
  background: #00305C;
  border: none;
  color: white;
  padding: 8px 25px 10px;
  font-size: 20px;
  font-family: "GillSansMTPro-Light", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  margin-bottom: 40px;
}
.property-contact-btn:hover {
  background: #b5d0e6;
}

/* Features */
.property-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 25px;
  overflow: hidden;
  gap: 0;
  margin-top: 50px;
}
.feature-item {
  padding: 20px 25px;
  text-align: center;
  position: relative;
}
.feature-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  height: 50%; 
  width: 1px;
  background: grey;
}

.feature-number {
  font-size: 30px;
  color: #1A1A1A;
  margin-bottom: 5px;
  font-family: "GillSansMTPro-Medium", sans-serif;
}
.feature-label {
  font-size: 17px;
  color: #1A1A1A;
  font-family: "GillSansMTPro-Light", sans-serif;
  font-weight: 300;
}

.feature-number sup {
	font-size: 15px;
}
.property-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  transition: transform 0.6s ease;
  z-index: 2;
  border-radius: 51px;
}

/* Panoramic */
.panoramic-section {
  padding: 80px 0;
  background: white;
  text-align: center;
}
.panoramic-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 40px;
  font-family: "GillSansMTPro-Bold", sans-serif;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.panoramic-description {
  font-size: 20px;
  line-height: 1.6;
  font-family: "GillSansMTPro-Light", sans-serif;
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
}

/* Section Plans */
.plans-section {
  padding: 80px 0;
  background: #F3F5F7;
}

.plans-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.plans-carousel,
.plans-info {
  width: 100%;
}

.plans-carousel {
	position: relative;
	order: 1;
}

.plans-info {
	order: 0;
}

.plans-slides {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.plan-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.plan-slide.active {
  opacity: 1;
}

.plan-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.plan-image:hover {
  transform: scale(1.02);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #00305C;
}

.dot:hover {
  background: #00305C;
  opacity: 0.7;
}

.plans-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: "GillSansMTPro-Light", sans-serif;
}

.plans-description {
  font-size: 30px;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 300;
  font-family: "GillSansMTPro-Light", sans-serif;
}

.plans-btn-mobile { 
	display: block !important;
	margin: 40px auto 0 auto;
}

/* Modal Plein Écran */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  backdrop-filter: blur(5px);
  overflow: auto;
}

.fullscreen-modal.active {
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#fullscreenImage {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.modal-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.modal-prev,
.modal-next {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* CSS pour carrousel auto-scroll infini */
.gallery-section {
  padding: 80px 0;
  background: white;
  overflow: hidden;
}

.container-full {
  width: 100%;
  max-width: 100vw;
  padding: 0;
}

.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab; /* Cursor pour indiquer qu'on peut dragger */
  user-select: none;
}

.gallery-carousel:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 30px;
  height: 100%;
  /* Supprimer transition - géré par JavaScript */
  transition: none;
  will-change: transform;
  padding: 0;
}

.gallery-slide {
  flex-shrink: 0;
  width: 600px;
  height: 400px;
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease;
}



/* Mobile responsive */
@media (max-width: 600px) {
  .gallery-section {
    padding: 60px 0;
  }

  .gallery-track {
    gap: 20px;
  }
  
  .gallery-slide {
    width: 400px;
    height: 280px;
  }
  
  .gallery-carousel {
    height: 280px;
  }
}

@media (max-width: 400px) {
  .gallery-slide {
    width: 300px;
    height: 200px;
  }
  
  .gallery-carousel {
    height: 200px;
  }
}

.plans-btn {
 display: none !important;
}
@media (min-width: 992px) {
  .plans-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .plans-carousel,
  .plans-info {
    width: 50%;
  }

  .plans-carousel {
    order: 0;
  }

  .plans-info {
    order: 1;
    padding-left: 40px;
  }
  .plans-btn {
	display:block !important;
  }
  .plans-btn-mobile {
	display:none !important;
  }
}
@media (max-width: 768px) {
  .plans-section {
    padding: 60px 0;
  }
  .plans-slides {
    height: 300px;
  }
  .plans-title {
    font-size: 35px;
  }
  .modal-content {
    padding: 40px 10px 20px;
  }
  #fullscreenPdf {
    width: 95vw;
    height: 85vh;
  }
  .property-hero-content {
    height: auto; 
    display: flex;
    flex-direction: column;
    margin-top: 80px;
  }

  .property-info {
    position: relative;
    width: 100%;
    height: auto;
    align-items: center; 
    text-align: center;
  }

  .property-image {
    position: relative;
    width: 100%;
    height: 250px; 
    transform: none !important;
    transition: none !important;
  }
  .property-description p {
	text-align: left !important;
  }
  .property-features {
	margin-top: 20px;
  }
  .property-contact-btn {
	margin-bottom: 0;
  }
}
.form-section {
  align-items: center;
  justify-items: center;
  padding: 50px 0;
}

/* Responsive Panoramic & Hero */
@media (max-width: 768px) {
  .panoramic-section {
    padding: 30px 0;
  }
  .panoramic-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}
@media (max-width: 1024px) {
  .property-hero {
	margin-top: 100px;
  }
  .property-hero-content {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .property-info {
    max-width: 100%;
  }
  .property-image {
    width: 100%;
    height: 300px;
  }
}

/* Responsive features grid */
@media (max-width: 768px) {
  .property-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
  }
  
  .feature-item:nth-child(1) {

  }
  .feature-item:nth-child(2)::before {
	background: grey;
  }
  .feature-item:nth-child(3)::before {
    background: white;
  }
  .feature-item:nth-child(4)::before {
    background: grey;
  }
  .container {
    padding: 0 20px;
  }
}

/* Responsive */
@media (max-width: 480px) {
	.property-name {
		font-size: 50px;
	}
	.property-price {
		font-size: 40px;
	}
}


.slick-next, .slick-prev {
	width: 50px !important;
	height: 50px !important;
}
.slick-next {
    right: 35px !important;
    padding: 0 10px 0 12px !important;
}
.slick-prev {
    left: 20px !important;
    z-index: 1;
    padding: 0 12px 0 10px !important;
}
.slick-prev:before, .slick-next:before {
  content: "" !important;
  display: block;
  width: 50px;
  height: 100%;
  opacity: 1 !important;
  background: url("../asset/slider-arrow-849cf6e9c6d6edc04374891eb8e5ebf0.png") no-repeat center center;
  background-size: contain;
}

.slick-slide {
  margin: 0 10px;
}

.slick-list {
  overflow: visible; 
  margin: 0 -10px;
}

@media (max-width: 768px) {
  .slick-slide {
    margin: 0;
  }
  .slick-list {
    margin: 0;
  }
}
.slick-prev:before {
	transform: rotate(180deg); 
}

#galleryTrack.single-slide {
	display: flex;
	justify-content: center;
}

#galleryTrack.single-slide > div {
	max-width: 600px;
}
