/* 
 * FinovExpert - Financial Audit Company
 * Modern, responsive website with CSS animations
 */

/* Base Styles & Reset */
:root {
    --dark-bg: #1E1E2F;
    --yellow-accent: #F4E409;
    --white: #FFFFFF;
    --blue-accent: #7FDBFF;
    --green-accent: #2ECC71;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #1E1E2F 0%, #2C2C45 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark-bg);
    background-image: var(--gradient);
    overflow-x: hidden;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--yellow-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--white);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--yellow-accent);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

section h2 {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.cta-button, .submit-button, .primary-button, .secondary-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--yellow-accent);
    color: var(--dark-bg);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.cta-button:hover, .submit-button:hover, .primary-button:hover {
    background-color: var(--green-accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background-color: transparent;
    border: 2px solid var(--yellow-accent);
    color: var(--yellow-accent);
}

.secondary-button:hover {
    background-color: var(--yellow-accent);
    color: var(--dark-bg);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow-accent);
    transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a:focus::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--yellow-accent);
    color: var(--dark-bg) !important;
    padding: 8px 20px !important;
    border-radius: 30px;
}

.nav-cta:hover {
    background-color: var(--green-accent);
    color: var(--white) !important;
}

.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--white);
}

/* Hero Section */
.hero-section {
    padding: 50px 0;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url('./img/C7Nl4E.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 120%;
    background: linear-gradient(to right, rgba(30, 30, 47, 0.95), rgba(30, 30, 47, 0.9));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-section .cta-button {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* About Section */
.about-section {
    background-color: rgba(30, 30, 47, 0.8);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.value {
    flex: 1 1 30%;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.value:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.value-icon {
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    background-color: var(--dark-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(46, 204, 113, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
}

/* Why Choose Us Section */
.why-us-section {
    background-color: rgba(30, 30, 47, 0.9);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.feature:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.feature-icon {
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--dark-bg);
    position: relative;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
}

.testimonial:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--blue-accent);
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonials-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonials-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.contact-section {
    background-color: rgba(30, 30, 47, 0.8);
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style pour les erreurs du formulaire */
.form-errors {
    max-width: 600px;
    margin: 0 auto 20px;
    background-color: rgba(220, 53, 69, 0.2);
    border-radius: 6px;
    padding: 15px 20px;
    border-left: 4px solid #dc3545;
    color: var(--white);
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: circle;
}

.form-errors li {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgb(32 32 50);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-accent);
    background-color: rgb(32 32 50);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.submit-button {
    width: 100%;
    margin-top: 10px;
}

/* FAQ Section */
.faq-section {
    background-color: var(--dark-bg);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow-accent);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

/* Contact Info Section */
.contact-info-section {
    background-color: rgba(30, 30, 47, 0.9);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background-color: rgba(20, 20, 35, 0.95);
    padding: 60px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    grid-column: span 2;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
    color: var(--yellow-accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thank You Page */
.thank-you-section {
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.thank-you-icon {
    margin-bottom: 30px;
}

.submission-details {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 25px;
    margin: 20px 0;
    text-align: left;
    border-left: 4px solid var(--yellow-accent);
}

.submission-details p {
    margin-bottom: 8px;
}

.form-notice {
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    padding: 15px 25px;
    margin: 20px 0;
    border-left: 4px solid var(--green-accent);
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 35, 0.95);
    padding: 15px 20px;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hide {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

#accept-cookies {
    background-color: var(--green-accent);
    color: var(--white);
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

#accept-cookies:hover {
    background-color: var(--yellow-accent);
    color: var(--dark-bg);
}

/* CSS Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value,
.service-card,
.feature,
.testimonial {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.value:nth-child(2),
.service-card:nth-child(2),
.feature:nth-child(2),
.testimonial:nth-child(2) {
    animation-delay: 0.2s;
}

.value:nth-child(3),
.service-card:nth-child(3),
.feature:nth-child(3),
.testimonial:nth-child(3) {
    animation-delay: 0.4s;
}

.value:nth-child(4),
.feature:nth-child(4) {
    animation-delay: 0.6s;
}

/* Section Transitions */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: inherit;
    transform: skewY(-2deg);
    z-index: -1;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 15px);
    }
    
    .testimonials-image {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero-section h1{
        font-size: 2.2rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-bg);
        padding: 80px 30px 30px;
        transition: 0.4s;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        display: flex;
        flex-direction: column;
    }
    .testimonial {
        flex: 0 0 100%;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 20px;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .value {
        flex: 1 1 100%;
    }
} 