:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-subtle: #e0e7ff;
    --secondary-color: #6B7280;
    --dark-color: #111827;
    --light-color: #F9FAFB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --body-bg: #FFFFFF;
    --body-color: #1F2937;
    --heading-color: #111827;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-family);
    color: var(--body-color);
    background-color: var(--body-bg);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.bg-primary-subtle {
    background-color: var(--primary-subtle) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Header */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--primary-subtle);
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 5rem;
    padding-bottom: 3rem;
    overflow: hidden;
    margin-bottom: -1px;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border-radius: 1rem;
    overflow: hidden;
}

/* Smaller hero image on the vacances page */
.hero-image-sm {

    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: inline-block; /* Le conteneur s'ajuste à la taille de l'image */
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: contain;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

/* Features */
.features {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modes Section */
.modes {
    position: relative;
    z-index: 2;
}

.mode-card {
    transition: var(--transition);
    border-radius: 0.75rem;
}

.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow) !important;
}

.mode-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modes .list-unstyled li {
    padding: 0.5rem 0;
}

.mode-screenshot {
    position: relative;
    height: 250px;
}

.mode-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-content {
    width: 100%;
    max-width: 90%;
}

@media (max-width: 768px) {
    .mode-screenshot {
        height: auto;
    }
    
    .mode-screenshot img {
        opacity: 0.1;
    }
}

/* Testimonials */
.testimonials {
    overflow: hidden;
}

.testimonial-card {
    border-radius: 1rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
}

/* Subscribe Section */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.subscribe-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    height: 54px;
    border: 1px solid #dee2e6;
}

.subscribe-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-weight: 600;
}

.subscribe .badge {
    background-color: var(--primary-subtle) !important;
    color: var(--primary-color) !important;
}

/* Pricing Section */
.pricing-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card .card-header {
    border-radius: 0;
}

.price-value {
    line-height: 1;
}

.price-value .h1 {
    font-size: 4rem;
    line-height: 1;
}

.price-value .period {
    align-self: flex-end;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
    font-weight: 400;
}

.pricing-card .list-unstyled li {
    padding: 0.5rem 0;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-subtle);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--primary-color), 0.1);
}

.accordion-item {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Footer */
.footer {
    position: relative;
}

.footer a:hover {
    color: var(--primary-light) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding-top: 3rem;
    }
    
    .hero-image {
        margin-top: 3rem;
        transform: none;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    h2.display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        text-align: center;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}