/* Main color palette */
:root {
    --color-bg-main: #00594F;       /* Main background: deep emerald */
    --color-accent: #FF6F4E;        /* Accent: bright coral orange */
    --color-secondary: #F5E1DA;     /* Secondary: powder beige */
    --color-text: #333333;          /* Main text: coal grey */
    --color-text-secondary: #B5B5B5; /* Secondary text: light grey */
    --color-button-gradient-start: #FF6F4E; /* Button gradient start: coral */
    --color-button-gradient-end: #FFD46B;   /* Button gradient end: golden */
    --font-main: 'Roboto', Arial, sans-serif;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-bg-main);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--color-button-gradient-start), var(--color-button-gradient-end));
    color: white;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 78, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 111, 78, 0.3);
    color: white;
}

h1, h2, h3, h4, h5 {
    color: var(--color-bg-main);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 4rem 0;
    /* Ajouter une marge de défilement supérieure pour les ancres */
    scroll-margin-top: 100px;
}

/* Pour les navigateurs qui ne supportent pas scroll-margin-top */
section:target {
    padding-top: 100px;
    margin-top: -100px;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-bg-main);
}

.logo a {
    color: inherit;
}

.mobile-toggle-form {
    display: none;
    margin: 0;
    padding: 0;
}

.mobile-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-bg-main);
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a, .nav-menu button {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-main);
}

.nav-menu a:hover, .nav-menu button:hover {
    color: var(--color-accent);
}

.header-contact {
    margin-left: 2rem;
}

.header-contact a {
    color: var(--color-bg-main);
    font-weight: 600;
}

/* Banner Section */
.banner {
    background-color: var(--color-bg-main);
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.banner h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* About Section */
.about {
    background-color: white;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Services Section */
.services {
    background-color: #f9f9f9;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--color-bg-main);
    margin: 1rem 0;
}

/* Features Section */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    background-color: var(--color-secondary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-bg-main);
    font-size: 2rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-secondary);
    padding: 5rem 0;
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slides::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
    text-align: center;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-bg-main);
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-nav-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 89, 79, 0.3);
    margin: 0 5px;
    cursor: pointer;
}

.testimonial-nav-item.active {
    background-color: var(--color-bg-main);
}

/* Contact Form */
.contact {
    background-color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-bg-main);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-btn {
    width: 100%;
    padding: 15px;
}

/* FAQ Section */
.faq {
    background-color: #f9f9f9;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: var(--color-bg-main);
    color: white;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.accordion-item.active .accordion-content {
    padding: 1rem;
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background-color: var(--color-bg-main);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-contact li {
    margin-bottom: 1rem;
    list-style: none;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 400px;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s;
}

.cookie-popup p {
    margin-bottom: 1rem;
}

.cookie-btn {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 8rem auto 4rem;
    padding: 2rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.policy-container h2 {
    color: var(--color-bg-main);
    margin: 2rem 0 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-inner {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-toggle-form {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }
    
    .header-contact {
        margin: 1rem 2rem;
    }
    
    .banner {
        padding: 7rem 0 3rem;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .banner {
        padding: 6rem 0 2rem;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 10rem 0 5rem;
}

.thank-you-box {
    background-color: #fff;
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.thank-you h1 {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.thank-you p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
