/* Variables globales */
:root {
    --primary-color: #e67e22;
    --secondary-color: #d35400;
    --text-color: #2c3e50;
    --bg-color: #ffffff;
    --heading-color: #2c3e50;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    margin-bottom: inherit !important;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hero--small {
    height: 60vh;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.4rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 2rem;
}

.hero h1.with-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: #FF6B35;
    border-radius: 2px;
}

.hero p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #FFFFFF;
    margin: 2rem auto 0;
    max-width: 800px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive styles for hero section */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-custom {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-custom--primary {
    background: #fff;
    color: #333;
}

.btn-custom--primary:hover {
    background: #fff;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-custom--outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-custom--outline:hover {
    background: #fff;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Styles globaux pour les titres */
h2 {

    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Pour éviter que certaines sections n'écrasent ces styles */
.section h2,
.section-title,
.display-4,
.gallery-section h2,
.weather-section h2,
.testimonials h2,
#destinations h2 {
    font-family: 'Playfair Display', serif !important;
 
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

/* Style pour les h2 avec text-align center */
.text-center h2,
.section-title h2,
.container > h2 {
    text-align: center;
    display: block;
}

/* Style pour le span.subtitle */
.subtitle {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Bouton de thème */
.theme-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    background: black;
    transform: scale(1.1);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Animation AOS */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Effets de survol */
.btn-custom {
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonials Carousel */
.testimonials {
    background: linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02));
    padding: 4rem 0;
}

#testimonialCarousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

#testimonialCarousel .carousel-inner {
    padding: 1rem;
}

#testimonialCarousel .carousel-item {
    transition: transform .6s ease-in-out;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 600px;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Carousel Controls */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    filter: invert(56%) sepia(83%) saturate(1995%) hue-rotate(346deg) brightness(98%) contrast(91%);
}

#testimonialCarousel .carousel-control-prev {
    left: 0;
}

#testimonialCarousel .carousel-control-next {
    right: 0;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
    opacity: 1;
}

#testimonialCarousel .carousel-indicators {
    bottom: -3rem;
}

#testimonialCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    margin: 0 5px;
}

#testimonialCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Modification du style pour ajouter le trait orange sous tous les h2 */
section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

section h2 + p,
section h2 + .lead,
.text-center h2 + p,
.text-center h2 + .lead {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.text-center h2 {
    margin-left: auto;
    margin-right: auto;
}

/* Styles responsifs */
@media (max-width: 768px) {
    #testimonialCarousel {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    h1, .h1 {
        font-size: 3rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-title,
    .section-title h1,
    .page-title h1,
    .main-title,
    .header-title {
        font-size: 3rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    /* Ajustement des sous-titres pour la cohérence */
    h2, .h2 {
        font-size: 2.25rem !important;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(44, 62, 80, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}