/**
 * AMAK Travel - Custom Styles
 * Styles personnalisés pour le site PHP
 */

/* ===== Variables CSS ===== */
:root {
    --color-primary: #64bcc5;
    --color-primary-dark: #4a9aa3;
    --color-primary-light: #8fd1d8;
    --color-secondary: #f8ea23;
    --color-secondary-dark: #d4c91e;
    --color-dark: #0f172a;
    --color-dark-light: #1e293b;
    --color-dark-lighter: #334155;
    --color-text: #ffffff;
    --color-text-muted: #9ca3af;
    --color-text-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Header Styles ===== */
header {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/carte-du-monde.png') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* ===== Widget Container ===== */
.widget-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.widget-container h2 {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.widget-container p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== Button Styles ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 188, 197, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-dark);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(248, 234, 35, 0.4);
}

/* ===== Card Styles ===== */
.feature-card {
    background: linear-gradient(145deg, var(--color-dark-light), var(--color-dark));
    border: 1px solid rgba(100, 188, 197, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(100, 188, 197, 0.3);
    transform: translateY(-5px);
}

.destination-card {
    background: var(--color-dark-light);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 188, 197, 0.3);
}

.destination-card img {
    transition: transform 0.6s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

.bg-dark {
    background-color: var(--color-dark);
}

.bg-dark-light {
    background-color: var(--color-dark-light);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}

p {
    color: var(--color-text-muted);
}

/* ===== Form Styles ===== */
input, textarea, select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(100, 188, 197, 0.3);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
}

.animate-wave {
    animation: wave 2s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* ===== Scroll Animations ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-text);
}

.text-gray-300 {
    color: var(--color-text-light);
}

.text-gray-400 {
    color: var(--color-text-muted);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-10 { margin-top: 2.5rem; }

.grid {
    display: grid;
}

.gap-6 {
    gap: 1.5rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-24 {
    padding-top: 6rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* ===== Widget Scope Styles ===== */
.widget-scope {
    isolation: isolate;
}

.widget-scope * {
    box-sizing: border-box;
}

/* ===== Page Transitions ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation d'entrée pour le contenu principal */
body {
    animation: fadeIn 0.5s ease-out;
}

main {
    animation: fadeIn 0.6s ease-out;
}

/* Animation pour les sections */
section {
    animation: fadeIn 0.7s ease-out;
}

/* Animation pour les cartes et éléments */
.feature-card, .destination-card, .auth-box {
    animation: scaleIn 0.6s ease-out;
}

/* Transition au survol pour les liens */
a {
    transition: all 0.3s ease;
}

a:hover {
    transform: translateY(-2px);
}

/* Animation pour les boutons */
button, .btn-submit, .btn-primary {
    transition: all 0.3s ease;
}

button:hover, .btn-submit:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

/* Désactiver les animations pour les utilisateurs qui préfèrent les réduire */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}