@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Palette de couleurs */
    --color-primary: #0149ad;
    --color-primary-dark: #376fbd;
    --color-text: #1f2a40;
    --color-text-light: #4c5c78;
    --color-text-footer: #9db2d1;
    --color-text-muted: #b7c6dd;
    --color-background: #f4f8fc;
    --color-white: #ffffff;
    --color-border: #dce6f4;
    --color-dark: #0e1e3a;
    --color-dark-lighter: #bdd0e9;
    --color-dark-border: #2e3e5c;
    --color-blue: #007bff;
    --color-gray-light: #e9f0fa;


    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 10px 10px 30px rgba(0, 0, 0, 0.3);

    --spacing-xl: 2rem;
    --border-radius-lg: 8px;
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

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

/* Slider Banner */
.slider {
    margin-top: 90px;
    position: relative;
    overflow: hidden;
    height: 60vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--color-primary);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 38px;
    color: var(--color-text);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

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

.welcome-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: var(--color-text-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cards {
    background-color: var(--color-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.cards:hover {
    transform: translateY(-5px);
}

.cards-img {
    height: 200px !important;
    border-radius: 0;
    background-size: cover;
    background-position: center;
}

.cards-content {
    padding: 20px;
}

.cards-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
}

.cards-text {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cards-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 500;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

/* Sections */
section {
    margin-bottom: 60px;
}

.guide-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    overflow: hidden;
    background-color: #f9f5e9;
}

.map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    background: url('https://media.gettyimages.com/id/955427324/fr/photo/vue-de-la-grande-mosqu%C3%A9e-de-dakar-s%C3%A9n%C3%A9gal.jpg?s=612x612&w=0&k=20&c=PUxy0IgGkVsMgFZSPmEQT-bU_m2cmWCTB4yywBue2aI=') center/cover no-repeat;
}

.banner-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.banner-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.promo-banner {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.promo-banner:hover {
    transform: translateY(-5px);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.promo-banner:hover .banner-image {
    transform: scale(1.02);
}

.banner-container {
    overflow: hidden;
}

.promo-banner {
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.3s ease-in-out;
}

.view-more-btn {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.promo-banner:hover .view-more-btn {
    display: block;
    opacity: 1;
}

.promo-banner:hover .banner-image {
    filter: brightness(60%);
}

/* Responsive styles */
@media (max-width: 768px) {
    .banner-section {
        padding: 30px 0;
    }

    .promo-banner {
        border-radius: 8px;
    }

}

@media (max-width: 480px) {
    .banner-section {
        padding: 20px 0;
    }

    .banner-container {
        padding: 0 15px;
    }
}


.content-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 20px;
}

.text-content {
    flex: 1;
    padding: 40px;
    background-color: var(--color-blue);
    color: var(--color-white);
}

.text-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.text-content .highlight {
    font-weight: bold;
}

.book-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-blue);
}

.book-image img {
    height: 450px;
}

.book {
    max-width: 80%;
    max-height: 80%;
    transform: perspective(1000px) rotateY(-10deg);
    box-shadow: var(--shadow-lg);
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #555;
}

/* Main Content Media Queries */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }

    .text-content {
        padding: 30px 20px;
    }

    .text-content h1 {
        font-size: 2rem;
    }

    .book-image {
        padding: 30px 0;
    }

    .book-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .slide {
        display: none;
        opacity: 0;
        position: relative;
    }

    .slide.active {
        display: flex;
        opacity: 1;
    }

    .slider {
        margin-top: 150px;
        height: auto;
    }

    .slide {
        flex-direction: column;
        position: relative;
        height: auto;
    }

    .slide img {
        width: 100%;
        height: 100%;
    }

    .slide-content {
        width: 100%;
        padding: 30px;
    }

    .slider-nav {
        left: 50%;
        bottom: 10px;
    }
}

@media (max-width: 600px) {
    .text-content h1 {
        font-size: 1.7rem;
    }

    .text-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .slider {
        height: auto;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }
}

/* Sections vides */
.empty-section {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
}

.empty-section p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.empty-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}