/* Style général */
:root {
    --color-yellow: #F9D976;
    --color-blue: #8ACDEA;
    --color-purple: #A067AB;
    --color-dark: #2C2C2C;
    --color-text: #333333;
    --color-white: #FFFFFF;
    --header-height: 90px; /* Hauteur approximative de l'en-tête */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Correction pour le défilement des ancres */
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-blue) 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
}

/* Solution universelle pour les sections ancrées */
section[id] {
    padding-top: calc(var(--header-height) + 20px);
    margin-top: calc(-1 * var(--header-height));
}

/* Correction spécifique pour la section contact qui posait problème */
#contact {
    padding-top: calc(var(--header-height) + 40px);
    margin-top: calc(-1 * var(--header-height) - 20px);
}

/* Classe pour les liens de navigation qui ciblent des sections problématiques */
.contact-link {
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--color-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    font-weight: 500;
    position: relative;
}

.menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-purple);
    transition: width 0.3s ease;
}

.menu a:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    text-decoration: none;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border: 2px solid var(--color-purple);
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-purple);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-purple);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    background-image: url('../img/JYzIgg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.hero h1 {
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* About Section */
.about {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
    text-align: center;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-purple);
    margin-top: 15px;
}

/* Why Choose Us Section */
.features {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--color-purple);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonials-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-purple) transparent;
}

.testimonials-container::-webkit-scrollbar {
    height: 8px;
}

.testimonials-container::-webkit-scrollbar-thumb {
    background-color: var(--color-purple);
    border-radius: 4px;
}

.testimonial-card {
    scroll-snap-align: center;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    min-width: 300px;
    flex: 0 0 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-rating {
    color: var(--color-yellow);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-company {
    font-size: 0.9rem;
    color: #777;
    margin-left: 5px;
}

/* Order Form Section */
.order-form {
    padding: 60px 0;
}

.form-container {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-blue));
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-purple);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-btn {
    text-align: center;
}

/* FAQ Section */
.faq {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--color-white);
    padding: 15px 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-content {
    padding: 20px;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--color-purple);
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 20px;
}

.footer-contact li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-actions {
    display: flex;
}

.cookie-btn {
    padding: 8px 20px;
    margin-left: 10px;
}

/* Page de remerciement */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you-card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.check-icon {
    font-size: 5rem;
    color: var(--color-purple);
    margin-bottom: 30px;
}

/* Policy Pages */
.policy-page {
    padding: 60px 0;
}

.policy-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.policy-content h2 {
    color: var(--color-purple);
    font-size: 1.5rem;
    margin-top: 30px;
    text-align: left;
}

.policy-content h3 {
    font-size: 1.25rem;
    margin-top: 20px;
}

.policy-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .menu.active {
        transform: translateY(0);
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        flex: 0 0 90%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
} 