/* Styles pour domain - Site web d'audit financier */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #2B2B2B;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 40px;
    padding: 4rem 1rem;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Variables de couleur */
:root {
    --main-color: #2D2A6E;
    --accent-color: #D8F81E;
    --additional-color: #27C7C2;
    --gradient-start: #6D3BD4;
    --gradient-end: #FF6F61;
    --text-color: #2B2B2B;
    --white: #FFFFFF;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--main-color);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--main-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--gradient-end);
    
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--main-color);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--main-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--accent-color);
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--white);
    font-weight: 600;
}

nav a:hover {
    color: var(--accent-color);
}

/* Menu hamburger */
.burger-menu {
    display: none;
}

.burger-checkbox {
    display: none;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .burger-menu::before,
    .burger-menu::after,
    .burger-menu span {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        transition: all 0.3s ease;
    }

    .burger-menu::before {
        top: 0;
    }

    .burger-menu span {
        top: 9px;
    }

    .burger-menu::after {
        bottom: 0;
    }

    .burger-checkbox:checked ~ .burger-menu::before {
        transform: rotate(45deg);
        top: 9px;
    }

    .burger-checkbox:checked ~ .burger-menu span {
        opacity: 0;
    }

    .burger-checkbox:checked ~ .burger-menu::after {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    nav ul {
        position: absolute;
        top: 100%;
        right: -20px;
        width: 200px;
        flex-direction: column;
        background-color: var(--main-color);
        padding: 20px;
        gap: 10px;
        transform: translateY(-200%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .burger-checkbox:checked ~ ul {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 42, 110, 0.7);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about {
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--main-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Services Section */
.services {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
}

.services .section-title::after {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--main-color);
    margin-bottom: 15px;
}

/* Advantages Section */
.advantages {
    background-color: var(--white);
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-item i {
    font-size: 3rem;
    color: var(--additional-color);
    margin-bottom: 15px;
    display: inline-block;
}

/* Steps Section */
.steps {
    background-color: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--main-color);
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--main-color);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    color: var(--white);
}

.testimonials .section-title::after {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--main-color);
}

.testimonial-position {
    font-size: 0.9rem;
    color: #777;
}

/* Contact Form Section */
.contact {
    background-color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--main-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color);
}

select.form-control {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2A6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

select.form-control option {
    background-color: #fff;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    font-weight: normal;
}

.checkbox-group a {
    color: var(--main-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--main-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Policy Pages */
.policy-page {
    padding: 3rem 0;
}

.policy-content {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.policy-content h2 {
    color: var(--main-color);
    margin-bottom: 20px;
}

.policy-content p, .policy-content ul {
    margin-bottom: 20px;
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Thank You Page */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.thank-you-content {
    text-align: center;
    background-color: #f8f9fa;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 8rem auto 5rem;
    max-width: 600px;
    border: 2px solid var(--accent-color);
}

.thank-you-content h2 {
    color: var(--main-color);
    margin-bottom: 20px;
}

.thank-you-content p {
    margin-bottom: 30px;
}

/* FAQ */
.faq {
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--main-color);
    display: block;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-checkbox {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-answer {
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 20px 20px;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-checkbox:checked + .faq-question::after {
    content: "−";
}

/* Responsive */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}
