/* 
   Styles pour site d'audit financier domain
   Palette: #F6F5F3 (fond), #574AE2 et #FF8C42 (accents), #1F1F1F (texte)
*/

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    background-color: #F6F5F3;
    color: #1F1F1F;
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
header {
    background-color: #EFEFED;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #574AE2;
    text-decoration: none;
}

/* Menu de navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #1F1F1F;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #574AE2;
}

/* Menu hamburger pour mobile */
#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: #1F1F1F;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-checkbox {
    display: none;
}

/* Hero section */
.hero {
    background-image: url('./img/GVeZL.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    margin: auto;
    max-width: max-content;
    display: block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #574AE2, #FF8C42);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #1F1F1F;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    margin: 15px auto;
    background: linear-gradient(90deg, #574AE2, #FF8C42);
}

/* À propos */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: #574AE2;
    margin-bottom: 15px;
}

/* Avantages */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #574AE2, #FF8C42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

/* Étapes */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.step-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #574AE2, #FF8C42);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 50px;
    color: #574AE2;
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h4 {
    margin-bottom: 5px;
}

.client-details p {
    color: #666;
    font-size: 0.9rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 15px 20px;
    display: block;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    transition: background-color 0.3s;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-checkbox {
    display: none;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 15px 20px;
}

.faq-checkbox:checked ~ .faq-question:after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
    padding: 0 20px;
}

/* Formulaire */
.form-section {
    background: linear-gradient(135deg, rgba(87, 74, 226, 0.05), rgba(255, 140, 66, 0.05));
    padding: 80px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group select {
    background-color: white;
}

.form-group select option {
    background-color: white;
}

.checkbox-group {
    margin-top: 25px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.submit-btn {
    background: linear-gradient(135deg, #574AE2, #FF8C42);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

/* Merci page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    margin: 5rem auto;
}

.thanks-icon {
    font-size: 50px;
    color: #574AE2;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #E6E5E3;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #574AE2;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #1F1F1F;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #574AE2;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 10px;
    color: #574AE2;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s;
}

.cookie-content {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.cookie-accept {
    background: linear-gradient(135deg, #574AE2, #FF8C42);
    color: white;
    border: none;
}

.cookie-decline {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

/* Pages de politique */
.policy-container {
    max-width: 900px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-title {
    color: #574AE2;
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h2 {
    color: #FF8C42;
    margin-top: 40px;
    margin-bottom: 20px;
}

.policy-content p, .policy-content ul {
    margin-bottom: 20px;
}

.policy-content ul {
    padding-left: 20px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .menu-button {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #F6F5F3;
        transition: right 0.3s ease;
        overflow-y: auto;
        max-height: 0;
        transition: max-height 0.3s ease-in-out;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 5px;
    }
    
    nav ul li {
        width: 100%;
        margin: 10px 0;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
        text-align: center;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
        height: 100vh;
        right: 0;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
    
    .menu-checkbox:checked ~ .menu-button span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-checkbox:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-checkbox:checked ~ .menu-button span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .thanks-section {
        height: auto;
    }
    
    .thanks-container {
        padding: 30px;
    }
    
    .footer-grid {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .form-container {
        padding: 20px;
    }
}
