/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


:root {
    --primary: #030213;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f6;
    --secondary-foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #e9ebef;
    --accent-foreground: #030213;
    --background: #ffffff;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --card-foreground: #0a0a0a;
    --border: rgba(0, 0, 0, 0.4);
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --success: #16a34a;
    --success-foreground: #ffffff;
    --radius: 0.625rem;
    --font-family: system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: rgba(3, 2, 19, 0.9);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (max-width: 767px) {
    .header-content {
        justify-content: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.125rem;
}

.nav {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info {
    display: none;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--accent-foreground);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .contact-info {
        display: flex;
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-badge {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
}

@media (min-width: 640px) {
    .hero-badges {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 4rem;
    }
}

/* Property Details */
.property-details {
    padding: 4rem 0;
}

section {
  scroll-margin-top: 3rem; /* décale le scroll de 4rem depuis le haut */
}


.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.property-content {
    display: grid;
    gap: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.feature-value {
    font-weight: 600;
    color: var(--foreground);
}

.property-location {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--accent-foreground);
    margin-bottom: 2rem;
}

.property-location i {
    color: var(--primary);
    margin-top: 0.125rem;
}

.description-text {
    margin-bottom: 2rem;
}

.amenities {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amenity-badge {
    padding: 0.5rem 0.75rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .property-content {
        grid-template-columns: 1fr 1fr;
        align-items:center;
    }
}

/* Section Contact */
.contact-section {
  padding: 4rem 0;
  background: rgba(35, 35, 224, 0.3);
}

/* Contenu principal */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  background: var(--muted-foreground);
}

/* Carte */
.contact-card {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
}

/* En-tête */
.contact-card-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-card-header h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
}

.contact-card-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Détails */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Carte Google Maps */
.map-frame {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

/* Tablette */
@media (min-width: 640px) {
  .map-frame {
    height: 350px;
  }
}

/* Desktop */
/* Desktop */
@media (min-width: 1024px) {
  .contact-content {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
  }

  .map-frame {
    height: 450px;
  }

  .contact-card {
    max-width: 800px; /* largeur maximale */
    margin: 0 auto;   /* centrage horizontal */
  }
}



.detail-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Form */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-header h3 {
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-wrapper, .textarea-wrapper {
    position: relative;
}

.input-wrapper i, .textarea-wrapper i {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: var(--muted-foreground);
    width: 1rem;
    height: 1rem;
}

.input-wrapper input, .textarea-wrapper textarea {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.input-wrapper input:focus, .textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.textarea-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    display: block;
    color: var(--destructive);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* Footer */
.footer {
    background: rgba(236, 236, 240, 0.5);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    text-align: center;
}

.footer-contact {
    display: flex;
            flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-contact-item i {
    width: 1rem;
    height: 1rem;
}

.footer-services {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-services li {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-separator {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive improvements */
@media (max-width: 767px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    
}

