/* styles.css - Design inspiré de Visit Abu Dhabi pour Marrakech Journey */

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #ffffff;
    --color-accent: #e6b54a;
    --color-background: #f4f4f4;
    --font-primary: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('chemin/vers/image/medina.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-secondary);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(17, 2, 2, 0.9);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d1a43c;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--color-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    list-style-type: none;
}

.footer-nav li {
    margin-right: 20px;
}

.footer-nav a {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .nav-menu {
        margin-top: 20px;
    }

    .nav-menu li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Ajoutez ces styles à votre fichier styles.css existant */

.background-alt {
    background-color: #f9f9f9;
}

.content-with-image {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.content-with-image.reverse {
    flex-direction: row-reverse;
}

.content-with-image .content {
    flex: 1;
}

.content-with-image .image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.content-with-image h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
    }

    .content-with-image.reverse {
        flex-direction: column;
    }

    .content-with-image .image {
        width: 100%;
        height: 300px;
    }
}

/* Ajoutez ces styles à votre fichier styles.css */

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--color-accent);
}

/* Mise à jour des styles de l'en-tête pour aligner le titre du site et la navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Ajustez les styles de la navigation si nécessaire */
.nav-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

/* Styles responsives */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-title {
        margin-bottom: 10px;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* Styles pour la page de contact */

.contact-section {
    padding: 60px 0;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
}

#contact-form {
    flex: 2;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.cta-button {
    background-color: var(--color-accent);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    #contact-form {
        padding: 20px;
    }
}

/* Styles pour la page d'activités */

.activities-section {
    padding: 60px 0;
}

.activity-card {
    display: flex;
    margin-bottom: 60px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-card:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-card img {
    width: 50%;
    object-fit: cover;
}

.activity-content {
    width: 50%;
    padding: 30px;
}

.activity-content h2 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.activity-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tips-section {
    background-color: var(--color-accent);
    color: white;
    padding: 60px 0;
}

.tips-list {
    list-style-type: none;
    padding: 0;
}

.tips-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: white;
}

@media (max-width: 768px) {
    .activity-card {
        flex-direction: column;
    }

    .activity-card:nth-child(even) {
        flex-direction: column;
    }

    .activity-card img,
    .activity-content {
        width: 100%;
    }
}

/* Styles pour la page d'hébergement */

.accommodation-section {
    padding: 60px 0;
}

.accommodation-card {
    display: flex;
    margin-bottom: 60px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accommodation-card:nth-child(even) {
    flex-direction: row-reverse;
}

.accommodation-card img {
    width: 50%;
    object-fit: cover;
}

.accommodation-content {
    width: 50%;
    padding: 30px;
}

.accommodation-content h2 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.accommodation-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tips-section {
    background-color: var(--color-accent);
    color: white;
    padding: 60px 0;
}

.tips-list {
    list-style-type: none;
    padding: 0;
}

.tips-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: white;
}

@media (max-width: 768px) {
    .accommodation-card {
        flex-direction: column;
    }

    .accommodation-card:nth-child(even) {
        flex-direction: column;
    }

    .accommodation-card img,
    .accommodation-content {
        width: 100%;
    }
}

/* Styles pour la page de transport */

.transport-section {
    padding: 60px 0;
}

.transport-card {
    display: flex;
    margin-bottom: 60px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transport-card:nth-child(even) {
    flex-direction: row-reverse;
}

.transport-card img {
    width: 50%;
    object-fit: cover;
}

.transport-content {
    width: 50%;
    padding: 30px;
}

.transport-content h2 {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.transport-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tips-section {
    background-color: var(--color-accent);
    color: white;
    padding: 60px 0;
}

.tips-list {
    list-style-type: none;
    padding: 0;
}

.tips-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: white;
}

@media (max-width: 768px) {
    .transport-card {
        flex-direction: column;
    }

    .transport-card:nth-child(even) {
        flex-direction: column;
    }

    .transport-card img,
    .transport-content {
        width: 100%;
    }
}

/* Styles pour la page des Conditions Générales de Vente */

.cgv-section {
    padding: 60px 0;
}

.cgv-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cgv-content h2 {
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cgv-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cgv-content h2:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .cgv-content {
        padding: 20px;
    }
}

/* Styles pour la page de Politique de Vie Privée et Cookies */

.privacy-section {
    padding: 60px 0;
}

.privacy-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.privacy-content h2 {
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.privacy-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-content a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 20px;
    }
}

/* Styles pour la page de blog */

.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--text-color);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
