/* 
   Comptabilité Intelligente - Main Stylesheet
   Color Palette:
   - Primary Background: #e3f9b7 (warm mint-lemon)
   - Secondary Background: #fca78b (apricot coral)
   - Accents: #ad91ff (lavender)
   - Text: #2a2a2a (anthracite gray)
   - Buttons & Icons: #00d1ff (neon blue)
*/

/* Base Styles & Reset */
:root {
    --primary-bg: #e3f9b7;
    --secondary-bg: #fca78b;
    --accent: #ad91ff;
    --text: #2a2a2a;
    --buttons: #00d1ff;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #dddddd;
    --dark-gray: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--buttons);
}

section {
    padding: 80px 0;
}

ul {
    list-style: none;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    flex: 0 0 200px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--buttons);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--buttons);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: 30px;
}

.nav-cta:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu ul {
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    font-size: 1.2rem;
}

body.mobile-menu-open .mobile-menu {
    transform: translateY(0);
    display: block;
}

body.mobile-menu-open .mobile-menu-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content Styles */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    opacity: 0.5;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--accent);
    opacity: 0.3;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    flex: 0 0 50%;
    animation: fadeIn 1s ease;
}

.hero-image {
    flex: 0 0 50%;
    animation: slideInRight 1s ease;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-section h1 {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 3.5rem;
}

.hero-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: left;
    padding-bottom: 0;
}

.hero-section h2::after {
    display: none;
}

.hero-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--buttons);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 0 0 60%;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    opacity: 0.5;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

/* Services Section */
.services-section {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--accent);
}

.service-card p {
    padding: 0 20px 20px;
}

.service-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: var(--buttons);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Why Choose Us Section */
.why-us-section {
    background-color: var(--secondary-bg);
    color: var(--text);
}

.why-us-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-us-text {
    flex: 0 0 60%;
}

.why-us-image {
    flex: 0 0 40%;
}

.why-us-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-us-text ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.why-us-text ul li:last-child {
    border-bottom: none;
}

.why-us-section h2::after {
    background-color: var(--buttons);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author p {
    margin-bottom: 5px;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-bg);
    position: relative;
}

.form-errors {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff3333;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-errors .error {
    color: #cc0000;
    margin: 5px 0;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 0 0 40%;
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 0 0 50%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    background-color: var(--white);
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(173, 145, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: 400;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--buttons);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--text);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--buttons);
}

.map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 250px;
}

/* Footer Styles */
.main-footer {
    background-color: var(--text);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-contact h3,
.footer-legal h3 {
    color: var(--buttons);
    margin-bottom: 20px;
}

.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-legal ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-legal ul li a:hover {
    color: var(--buttons);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

#accept-cookies {
    background-color: var(--buttons);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

#accept-cookies:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-section h1{
        font-size: 2.4rem;
    }
    .hero-content {
        flex: 0 0 100%;
    }
    
    .hero-image {
        flex: 0 0 100%;
    }
    
    .hero-section h2 {
        text-align: center;
    }
    
    .about-content,
    .why-us-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text,
    .why-us-text,
    .about-image,
    .why-us-image {
        flex: 0 0 100%;
    }
    
    .why-us-text ul {
        text-align: left;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form,
    .contact-info {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .benefits-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-content p {
        padding-right: 0;
    }
    
    .map-container iframe {
        height: 200px;
    }
} 