/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9f9;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* En-tête */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
    color: #ff8c38;
    margin: 0;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 2rem;
}

nav a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.3rem;
}

nav a.active, nav a:hover {
    color: #ff8c38;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff8c38;
    transition: width 0.3s;
}

nav a.active::after, nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: #ffece0;
    padding: 6rem 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: #ff8c38;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #e67d29;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid #ff8c38;
    color: #ff8c38;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #ff8c38;
    color: white;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-between;
    padding: 5rem 5%;
    background-color: white;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    color: #ff8c38;
}

/* About Preview Section */
.about-preview {
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.about-text {
    flex: 1;
    padding-right: 3rem;
}

.about-text h2 {
    color: #ff8c38;
}

.about-image {
    flex: 1;
}

/* Styles pour les images */
.placeholder-image {
    background-color: #eee;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    border-radius: 10px;
}


/* Nouveaux styles pour les vraies images */
.gallery-item img,  
.gallery-preview img,
.about-image img {
    width: 100%;
    height: 300px;
    object-fit: contain; /* Affiche l'image entière sans la rogner */
    border-radius: 10px;
    background-color: #f5f5f5; /* Ajoute un fond si l'image ne remplit pas tout l'espace */
}


.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-preview img {
    width: 100%;
    height: auto; /* Permet à l'image de garder ses proportions naturelles */
    max-height: 250px; /* Limite la hauteur maximale si nécessaire */
    object-fit: contain; /* Affiche l'image entière sans la rogner */
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
    background-color: #f5f5f5; /* Fond léger si l'image ne remplit pas tout l'espace */
}

.about-image img {
    height: 300px;
}

/* Gallery Preview */
.gallery-preview {
    padding: 5rem 5%;
    text-align: center;
}

.gallery-preview h2 {
    color: #ff8c38;
    margin-bottom: 2rem;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item .placeholder-image {
    height: 200px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-info, .footer-nav, .footer-social {
    flex: 1;
}

.footer-info h3, .footer-nav h3, .footer-social h3 {
    color: #ff8c38;
    margin-bottom: 1.5rem;
}

.footer-nav ul li {
    margin-bottom: 0.7rem;
}

.footer-nav a:hover {
    color: #ff8c38;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #ff8c38;
}

/* Styles pour les icônes Font Awesome */
.social-icon i {
    font-size: 1.2rem;
    color: white;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Styles de galerie améliorés */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-family: 'Playfair Display', serif;
    color: #ff8c38;
    margin-bottom: 0.3rem;
}

.gallery-item-category {
    font-size: 0.9rem;
    color: #666;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff8c38;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e67d29;
    transform: translateY(-3px);
}

/* FAQ styles */
.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ff8c38;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    height: auto;
    padding: 0 1.5rem 1.5rem;
}

/* Form styles */
.form-control:focus {
    border: 2px solid #ff8c38;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 140, 56, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        margin-bottom: 2rem;
    }
    
    .about-preview {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .gallery-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-nav, .footer-social {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-items {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .btn, .btn-secondary {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
/* Styles pour la lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff8c38;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Curseur sur les images pour indiquer qu'on peut cliquer */
.gallery-item img, 
.gallery-preview img, 
.about-image img {
    cursor: pointer;
}
}