@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

:root {
  /* Premium Colors */
  --color-bg-primary: #FDFCF8; 
  --color-bg-secondary: #FFFFFF;
  --color-text-main: #333333; 
  --color-text-muted: #7A7A7A;
  
  --color-accent-brown: #2D1B14; 
  --color-accent-caramel: #B88E5B; 
  --color-accent-green: #1A2F2B; 
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Alex Brush', cursive;
  
  /* Layout */
  --max-width: 1300px;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 6rem;
  --spacing-xl: 10rem; 
  
  /* Effects */
  --radius: 4px; 
  --radius-lg: 8px;
  --transition-fast: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  --border-thin: 1px solid rgba(0, 0, 0, 0.06); 
}

/* Redéfinition des variables pour le mobile/tablette */
@media (max-width: 768px) {
  :root {
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400; 
  line-height: 1.1;
  color: var(--color-accent-brown);
  letter-spacing: -0.02em; 
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Réduction des tailles de polices sur mobile pour éviter l'overflow */
h1 { font-size: clamp(2.2rem, 6vw, 5.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }

.accent-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-accent-caramel);
  transform: rotate(-2deg);
  margin-bottom: -10px;
  opacity: 0.9;
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-xl) 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-accent-caramel); font-style: italic; }

/* Buttons Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px; 
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  gap: 10px;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .btn { width: 100%; padding: 1rem 1.5rem; }
}

.btn-primary {
  background-color: var(--color-accent-brown);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent-caramel);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent-brown);
  border-color: rgba(0,0,0,0.2);
}

.btn-outline:hover {
  border-color: var(--color-accent-brown);
  background-color: var(--color-bg-primary);
}

.btn .arrow {
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(5px);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-slow);
  background: transparent;
}

.header.scrolled {
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: var(--border-thin);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-img {
  height: 60px; /* Vous pouvez ajuster cette taille selon votre logo */
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--color-text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent-caramel);
  transition: var(--transition-slow);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--color-accent-brown);
  margin: 6px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05); 
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(253,252,248,0.95) 0%, rgba(253,252,248,0.7) 60%, rgba(253,252,248,0.2) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Deux Univers */
.univers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.univers-card {
  background: var(--color-bg-secondary);
  border: var(--border-thin);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.univers-card:hover {
  border-color: rgba(0,0,0,0.15);
}

.univers-img-container {
  height: 350px;
  overflow: hidden;
}

.univers-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.univers-card:hover .univers-img-container img {
  transform: scale(1.03);
}

.univers-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides (Mobile Menu & General Mobile Layout) */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(253, 252, 248, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .hamburger { display: block; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(253,252,248,0.95) 0%, rgba(253,252,248,0.8) 100%);
  }

  .univers-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; }
  .hero { text-align: center; }
  .hero-content { margin: 0 auto; }
}

@media (max-width: 480px) {
  .univers-img-container { height: 250px; }
  .univers-content { padding: 1.5rem; }
}

/* Premium Timeline */
.timeline-premium {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-step-premium {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.timeline-step-premium:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 8rem);
  line-height: 1;
  color: rgba(0,0,0,0.03);
  position: absolute;
  z-index: -1;
  top: -20px;
}

.timeline-step-premium:nth-child(odd) .timeline-number { left: -20px; }
.timeline-step-premium:nth-child(even) .timeline-number { right: -20px; }

.timeline-content h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline-step-premium, .timeline-step-premium:nth-child(even) {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
  }
  .timeline-number { position: relative; top: 0; left: 0 !important; right: auto !important; margin-bottom: 0.5rem; }
}

/* Floating WhatsApp (Conversion Optimized) */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 100;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float::before {
  content: 'Besoin d\'un devis ?';
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  animation: none;
  background-color: #128C7E;
}

.whatsapp-float:hover::before {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* Footer */
.footer {
  background-color: var(--color-accent-brown);
  color: #fff;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: var(--color-accent-caramel);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #aaa; transition: var(--transition-fast); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
}
