/* Réinitialisation de base et configuration globale */
:root {
    --primary-color: #2c3e50; /* Un bleu-gris foncé */
    --secondary-color: #d35400; /* Une touche d'orange pour les accents */
    --light-gray: #f8f9fa;
    --text-color: #333;
    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

/* Conteneur principal pour centrer le contenu */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titres */
h1, h2, h3 {
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	color: var(--primary-color);
	margin-bottom: 20px;
}
h2 {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 50px;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
}

/* Header et Navigation */
.main-header {
    background: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-header .logo img {
    height: 50px;
}
.main-nav ul {
    list-style: none;
    display: flex;
}
.main-nav ul li {
    margin-left: 25px;
}
.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--secondary-color);
}

/* Section Hero */

/* keyframes pour l'animation du diaporama */
@keyframes hero-slideshow {
    0%   { background-image: url('data1/images/b1.jpg'); }
    16%  { background-image: url('data1/images/b1.jpg'); } /* L'image reste pendant 16% de la durée */
    20%  { background-image: url('data1/images/b2.jpg'); }
    33%  { background-image: url('data1/images/b2.jpg'); }
    37%  { background-image: url('data1/images/b3.jpg'); }
    50%  { background-image: url('data1/images/b3.jpg'); }
    55%  { background-image: url('data1/images/b4.jpg'); }
    67%  { background-image: url('data1/images/b4.jpg'); }
    71%  { background-image: url('data1/images/b5.jpg'); }
    84%  { background-image: url('data1/images/b5.jpg'); }
    89%  { background-image: url('data1/images/b6.jpg'); }
    100% { background-image: url('data1/images/b6.jpg'); }
}

/* Section Hero modifiée pour inclure l'animation */
.hero {
    height: 80vh;
    /* Propriétés de base de l'image de fond */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* Animation */
    animation: hero-slideshow 20s linear infinite; /* Durée totale 30s (5s par image), en boucle */
    
    /* Le reste est identique pour le contenu superposé */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before { /* Superposition pour la lisibilité du texte */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1rem;
    font-family: var(--font-primary);
    margin-bottom: 30px;
}

.cta-button {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #e67e22; /* Un orange plus clair */
}

/* Sections de contenu */
.content-section {
    padding: 80px 0;
}

.gray-bg {
    background-color: var(--light-gray);
}

/* Section À Propos */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 5px;
}
.about-text {
    flex: 1.5;
}
.about-text .signature {
    width: 200px;
    margin-top: 20px;
}
.bucket-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.bucket-list h4 {
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
	color: var(--primary-color);
}

/* Section Galeries */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px;
    text-align: center;
}
.gallery-item .caption h3 {
    color: #fff;
    margin: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:hover .caption h3 {
    transform: translateY(0);
    opacity: 1;
}

/* Section Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}

/* Section Contact */
.contact-container {
    text-align: center;
}
.contact-methods {
    margin: 30px 0;
}
.contact-link {
    display: inline-block;
    margin: 0 15px;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.contact-link:hover {
    background: var(--primary-color);
    color: #fff;
}
.social-icons {
    margin-bottom: 30px;
}
.social-icons a {
    margin: 0 10px;
}
.social-icons img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.social-icons img:hover {
    opacity: 1;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.footer-links {
    margin-top: 10px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.footer-links a:hover {
    opacity: 1;
}

/* --- Styles for Mobile Navigation Toggle --- */
.nav-toggle {
    display: none; /* Hidden by default on desktop */
    z-index: 1001; /* Must be above the nav and header */
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0.5em;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--primary-color);
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: 6px; }
.hamburger::after { bottom: 6px; }

/* Hamburger animation to 'X' when nav is open */
.nav-open .nav-toggle .hamburger {
    transform: rotate(45deg);
}

.nav-open .nav-toggle .hamburger::before {
    transform: rotate(90deg) translate(-6px);
    opacity: 0; /* Hide the top bar */
}

.nav-open .nav-toggle .hamburger::after {
    transform: rotate(90deg) translate(0px, -6px);
}


/* Responsive pour tablettes et mobiles */
@media(max-width: 768px) {
    h2 { font-size: 2rem; }
    
    .about-container {
        flex-direction: column;
    }

    /* --- Mobile Navigation Styles --- */
    .nav-toggle {
        display: block; /* Show the hamburger button */
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .main-nav {
        position: fixed;
        background: rgba(44, 62, 80, 0.98); /* Semi-transparent primary color */
        color: white;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        
        /* Hide it by default by moving it off-screen */
        transform: translateX(100%);
        transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
    }
    
    .main-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav a {
        color: white;
        font-weight: bold;
        font-size: 1.5rem;
        text-decoration: none;
    }

    .main-nav a:hover {
        color: var(--secondary-color);
    }

    /* State when navigation is open */
    .nav-open .main-nav {
        transform: translateX(0);
    }

    /* Prevents scrolling of the background content when menu is open */
    .nav-open {
        overflow: hidden; 
    }
}