/* Styles pour les pages d'hôtels - LuxeStay Tailwind Version */

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* Variables racine */
:root {
  --color-primary: #9333ea;
  --color-primary-dark: #7e22ce;
  --color-secondary: #3b82f6;
  --color-secondary-dark: #2563eb;
  --color-purple: #6b21a8;
  --color-blue: #1e40af;
  
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Typographie */
.font-inter {
  font-family: var(--font-heading);
}

.font-ibm {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Header fixe */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

header nav a {
  position: relative;
  transition: color var(--transition-normal);
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #93c5fd;
  transition: width var(--transition-normal);
}

header nav a:hover::after {
  width: 100%;
}

/* Main content */
main {
  padding-top: 80px;
  min-height: 100vh;
}

/* Card animations */
.card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Card content */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Buttons */
button, .btn {
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before, .btn:hover::before {
  width: 300px;
  height: 300px;
}

button:active, .btn:active {
  transform: scale(0.95);
}

/* Gradient backgrounds */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

/* Shadow utilities */
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Rounded corners */
.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Icon animations */
.w-16.h-16 {
  transition: transform var(--transition-slow);
}

.card:hover .w-16.h-16 {
  transform: rotateY(360deg);
}

/* Grid layouts */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Gap utilities */
.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Spacing utilities */
.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-purple-800 {
  color: #6b21a8;
}

.text-purple-600 {
  color: #9333ea;
}

.text-blue-300 {
  color: #93c5fd;
}

.text-slate-700 {
  color: #334155;
}

.text-white {
  color: #ffffff;
}

/* Background colors */
.bg-white {
  background-color: #ffffff;
}

.bg-purple-600 {
  background-color: #9333ea;
}

.bg-purple-700 {
  background-color: #7e22ce;
}

.bg-blue-600 {
  background-color: #2563eb;
}

/* Hover effects */
.hover\:bg-purple-700:hover {
  background-color: #7e22ce;
}

.hover\:bg-purple-600:hover {
  background-color: #9333ea;
}

.hover\:text-white:hover {
  color: #ffffff;
}

.hover\:text-blue-300:hover {
  color: #93c5fd;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}

/* Transform utilities */
.transform {
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

/* Transition utilities */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 300ms;
}

/* Footer */
footer {
  background: linear-gradient(to right, #581c87, #1e3a8a);
  color: white;
}

footer a {
  transition: color var(--transition-normal);
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #93c5fd;
  transition: width var(--transition-normal);
}

footer a:hover::after {
  width: 100%;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .md\:hidden {
    display: none;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:w-1\/2 {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Max width utilities */
.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-3 {
  gap: 0.75rem;
}

/* Space utilities */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

/* Border utilities */
.border-t {
  border-top-width: 1px;
}

.border-blue-800 {
  border-color: #1e40af;
}

/* Overflow utilities */
.overflow-hidden {
  overflow: hidden;
}

/* Font weight */
.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Font size */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Animations personnalisées */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.8s ease-out;
}

/* Padding utilities */
.pt-20 {
  padding-top: 5rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Border radius */
.rounded-lg {
  border-radius: 0.5rem;
}

/* Width utilities */
.w-full {
  width: 100%;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

/* Z-index */
.z-50 {
  z-index: 50;
}

/* Position */
.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

/* Display utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}