/*
 * Utilitaires CSS pour SpotHotels-CHR
 * Classes d'aide et modifications rapides
 */

/* ==========================================================================
   CLASSES UTILITAIRES RAPIDES
   ========================================================================== */

/* Espacements */
.mt-small { margin-top: 20px !important; }
.mt-medium { margin-top: 40px !important; }
.mt-large { margin-top: 60px !important; }
.mb-small { margin-bottom: 20px !important; }
.mb-medium { margin-bottom: 40px !important; }
.mb-large { margin-bottom: 60px !important; }

.pt-small { padding-top: 20px !important; }
.pt-medium { padding-top: 40px !important; }
.pt-large { padding-top: 60px !important; }
.pb-small { padding-bottom: 20px !important; }
.pb-medium { padding-bottom: 40px !important; }
.pb-large { padding-bottom: 60px !important; }

/* Textes */
.text-small { font-size: 0.85rem !important; }
.text-normal { font-size: 1rem !important; }
.text-large { font-size: 1.2rem !important; }
.text-xl { font-size: 1.5rem !important; }

.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.uppercase { text-transform: uppercase !important; }
.lowercase { text-transform: lowercase !important; }
.capitalize { text-transform: capitalize !important; }

/* Couleurs rapides */
.text-gold { 
    background: var(--gradient-gold-text) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.text-white { color: var(--color-text-light) !important; }
.text-muted { color: var(--color-text-muted) !important; }

.bg-dark { background: var(--color-bg-dark) !important; }
.bg-darker { background: var(--color-bg-darker) !important; }
.bg-gold-light { background: rgba(212, 175, 55, 0.1) !important; }

/* Bordures et ombres */
.border-gold { 
    border: 2px solid var(--color-primary-gold) !important;
    border-radius: 10px !important;
}

.border-gold-light { 
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px !important;
}

.shadow-gold { box-shadow: var(--shadow-gold) !important; }
.shadow-light { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important; }
.shadow-none { box-shadow: none !important; }

/* Effets visuels */
.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 15px !important; }
.rounded-full { border-radius: 50% !important; }

.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

/* Flexbox utilitaires */
.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }

.flex-1 { flex: 1 !important; }
.flex-none { flex: none !important; }

/* Grid utilitaires */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
.gap-small { gap: 15px !important; }
.gap-medium { gap: 30px !important; }
.gap-large { gap: 45px !important; }

/* Largeurs */
.w-full { width: 100% !important; }
.w-half { width: 50% !important; }
.w-auto { width: auto !important; }

.max-w-sm { max-width: 400px !important; }
.max-w-md { max-width: 600px !important; }
.max-w-lg { max-width: 800px !important; }
.max-w-xl { max-width: 1000px !important; }

/* Hauteurs */
.h-auto { height: auto !important; }
.h-screen { height: 100vh !important; }

/* Positions */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }
.right-0 { right: 0 !important; }

/* Z-index */
.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }

/* Visibilité */
.hidden { display: none !important; }
.invisible { visibility: hidden !important; }
.visible { visibility: visible !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-auto { overflow: auto !important; }

/* Curseur */
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* Transitions */
.transition { transition: all 0.3s ease !important; }
.transition-fast { transition: all 0.15s ease !important; }
.transition-slow { transition: all 0.5s ease !important; }

/* Hover effects */
.hover-lift:hover { transform: translateY(-5px) !important; }
.hover-scale:hover { transform: scale(1.05) !important; }
.hover-opacity:hover { opacity: 0.8 !important; }

/* ==========================================================================
   COMPOSANTS PRÉFABRIQUÉS
   ========================================================================== */

/* Badge/Tag */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-primary-gold);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-gold {
    background: var(--color-primary-gold);
    color: var(--color-bg-dark);
    border-color: var(--color-primary-gold);
}

/* Carte simple */
.card-simple {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.card-simple:hover {
    border-color: var(--color-primary-gold);
    box-shadow: var(--shadow-gold);
}

/* Séparateur doré */
.divider-gold {
    height: 2px;
    background: var(--gradient-gold);
    border: none;
    margin: 40px auto;
    width: 100px;
    border-radius: 2px;
}

.divider-gold.full-width {
    width: 100%;
}

/* Bouton outline */
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary-gold);
    color: var(--color-primary-gold);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--color-primary-gold);
    color: var(--color-bg-dark);
}

/* Liste avec puces dorées */
.list-gold {
    list-style: none;
    padding: 0;
}

.list-gold li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.list-gold li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary-gold);
    font-weight: bold;
}

/* Alerte/Notice */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary-gold);
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-text-light);
    margin: 20px 0;
}

.alert-info {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.alert-success {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.alert-warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

/* Blockquote stylisé */
.quote-gold {
    border-left: 4px solid var(--color-primary-gold);
    padding: 20px 30px;
    margin: 30px 0;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.quote-gold::before {
    content: """;
    font-size: 4rem;
    color: var(--color-primary-gold);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

/* ==========================================================================
   ANIMATIONS PERSONNALISÉES
   ========================================================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.8); }
}

/* ==========================================================================
   RESPONSIVE UTILITAIRES
   ========================================================================== */

/* Masquer sur mobile */
@media (max-width: 768px) {
    .hidden-mobile { display: none !important; }
    .text-center-mobile { text-align: center !important; }
    .grid-cols-1-mobile { grid-template-columns: 1fr !important; }
}

/* Masquer sur desktop */
@media (min-width: 769px) {
    .hidden-desktop { display: none !important; }
}

/* Utilitaires responsive */
@media (max-width: 480px) {
    .text-sm-mobile { font-size: 0.9rem !important; }
    .p-sm-mobile { padding: 15px !important; }
    .mt-sm-mobile { margin-top: 15px !important; }
    .mb-sm-mobile { margin-bottom: 15px !important; }
}
