/* 
 * Main CSS Stylesheet
 * Color Palette:
 * - Bright lilac: #C084FC
 * - Deep sapphire: #252B42
 * - Warm orange: #FF6A3D
 * - Creamy milk: #FAF3E0
 * - Contrasting ash: #4A4E69
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajouter un padding pour le scroll vers les ancres */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #252B42;
    background-color: #FAF3E0;
}

main {
    padding-top: 80px; /* Add padding to prevent header overlap */
}

/* Policy Pages - Ajustement supplémentaire pour les pages de politique */
.policy {
    padding-top: 100px !important; /* Force une marge supplémentaire en haut pour éviter le chevauchement */
    margin-top: -80px; /* Compenser le padding de main */
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #C084FC;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6A3D;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #C084FC;
    color: white;
    border: 2px solid #C084FC;
}

.btn-primary:hover {
    background-color: transparent;
    color: #C084FC;
}

.btn-secondary {
    background-color: transparent;
    color: #252B42;
    border: 2px solid #252B42;
}

.btn-secondary:hover {
    background-color: #252B42;
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #252B42;
    color: #FAF3E0;
    padding: 1rem;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #C084FC;
}

.cookie-content button {
    flex-shrink: 0;
    margin-left: auto;
}

/* Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: fixed; /* Change from sticky to fixed for consistent behavior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 200px;
    font-weight: bold;
    font-size: 1.8rem;
    color: #252B42;
}

.logo a {
    color: #252B42;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    color: #252B42;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover, .nav-list a.active {
    color: #C084FC;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 2rem;
    height: 1.5rem;
    position: relative;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #252B42;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .bar:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle .bar:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: #FAF3E0;
    position: relative;
    margin-top: -80px; /* Compensate for header height */
    padding-top: 120px; /* Add extra padding to the top to accommodate the header */
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #252B42;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about h2 {
    text-align: center;
    color: #252B42;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Advantages Section */
.advantages {
    padding: 5rem 0;
    background-color: #252B42;
    color: white;
}

.advantages h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    color: #C084FC;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    color: #252B42;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0;
    color: #252B42;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: #4A4E69;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background-color: #FAF3E0;
}

.pricing h2 {
    text-align: center;
    color: #252B42;
    margin-bottom: 3rem;
}

.pricing-image {
    max-width: 600px;
    margin: 0 auto 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #C084FC 0%, #FF6A3D 100%);
    color: white;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    color: inherit;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: inherit;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-card li {
    margin-bottom: 0.5rem;
    position: relative;
}

.pricing-card li:before {
    content: "✓";
    color: #C084FC;
    margin-right: 0.5rem;
}

.pricing-card.featured li:before {
    color: white;
}

.pricing-card .btn-secondary {
    color: #252B42;
    border-color: #252B42;
}

.pricing-card .btn-secondary:hover {
    background-color: #252B42;
    color: white;
}

.pricing-card.featured .btn-primary {
    background-color: white;
    color: #C084FC;
    border-color: white;
}

.pricing-card.featured .btn-primary:hover {
    background-color: transparent;
    color: white;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    color: #252B42;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #FAF3E0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card:after {
    content: """;
    position: absolute;
    top: 0;
    right: 2rem;
    font-size: 5rem;
    font-family: serif;
    color: rgba(192, 132, 252, 0.2);
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    color: #252B42;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: #4A4E69;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #FAF3E0;
}

.contact h2 {
    text-align: center;
    color: #252B42;
    margin-bottom: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: linear-gradient(135deg, #C084FC 0%, #FF6A3D 100%);
    border-radius: 8px;
    padding: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item h3 {
    color: #252B42;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #4A4E69;
    margin-bottom: 0;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.main-footer {
    background-color: #252B42;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #C084FC;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: #C084FC;
}

.footer-logo {
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Policy Pages */
.policy {
    padding: 4rem 0;
}

.policy h1 {
    margin-bottom: 2rem;
    color: #252B42;
}

.policy h2 {
    color: #252B42;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.policy h3 {
    color: #252B42;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
}

.policy-content {
    max-width: 800px;
}

.policy ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy ul li {
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-content h1 {
    color: #252B42;
    margin-bottom: 1.5rem;
}

.thank-you-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4A4E69;
}

.thank-you-icon {
    margin: 2rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero .container,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list li {
        margin: 0 0 1rem 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content button {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
        padding-top: 100px; /* Adjust for smaller screens */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .advantages-grid,
    .services-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
} 