/* 
   Feuille de style principale pour le site d'audit financier
   Palette de couleurs:
   - Primaire: #8000FF (pourpre)
   - Secondaire: #00FFC8 (vert menthe)
   - Tertiaire: #001233 (bleu foncé)
   - Fond clair: #F5F3E7 (sable clair)
   - Texte: #333333 (gris graphite)
   - Accent: #FF6A00 (néon orange)
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables globales */
:root {
    --color-primary: #8000FF;
    --color-secondary: #00FFC8;
    --color-tertiary: #001233;
    --color-bg-light: #F5F3E7;
    --color-text: #333333;
    --color-accent: #FF6A00;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

/* Typographie de base */
body {
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    color: var(--color-text);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-tertiary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--color-accent);
}

/* Layout principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.97);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo img {
    max-height: 40px;
}

/* Navigation principale */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: var(--color-tertiary);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-speed) ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    padding-top: 6rem;
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-nav.show {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0 2rem;
}

.mobile-nav ul li {
    margin: 1.5rem 0;
}

.mobile-nav ul li a {
    color: var(--color-tertiary);
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

/* Hero section */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.1) 0%, rgba(0, 255, 200, 0.1) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding-right: 3rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--color-tertiary);
}

.hero-text h1 span {
    color: var(--color-primary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* À propos */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

/* Services */
.services {
    background-color: var(--color-bg-light);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--color-tertiary);
    margin-bottom: 1rem;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.service-card-icon i {
    color: white;
    font-size: 1.5rem;
}

/* Pourquoi nous choisir */
.why-us {
    background-color: white;
}

.why-us-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    text-align: center;
    padding: 1.5rem;
}

.why-us-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon i {
    font-size: 2rem;
    color: white;
}

/* Témoignages */
.testimonials {
    background-color: var(--color-bg-light);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    margin-right: 1rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    position: relative;
}

.testimonial-card:last-child {
    margin-right: 0;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-name {
    font-weight: 600;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: #666;
}

/* Formulaire */
.contact-form-section {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-primary) 100%);
    color: white;
}

.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.form-title {
    color: var(--color-tertiary);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(128, 0, 255, 0.2);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background-color: white;
    padding: 0 0.5rem;
    color: #999;
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

/* FAQ */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background-color: #f8f8f8;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 500px;
}

/* Footer */
.footer {
    background-color: var(--color-tertiary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-nav h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-nav h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: #ddd;
}

.footer-nav ul li a:hover {
    color: var(--color-secondary);
}

.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: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-popup p {
    margin-bottom: 1rem;
}

.cookie-popup-actions {
    display: flex;
    justify-content: flex-end;
}

/* Policy pages */
.policy-page {
    padding: 8rem 0 5rem;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Merci page */
.thank-you {
    padding: 10rem 0 5rem;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thank-you-icon i {
    color: white;
    font-size: 3rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 7rem 0 4rem;
    }
    
    .hero-image {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .service-cards, .why-us-items {
        grid-template-columns: 1fr;
    }
}
