/* 
* Domain - Services comptables professionnels
* Style principal
*/

/* Variables globales */
:root {
    --color-primary: #005B6B;
    --color-secondary: #93C572;
    --color-tertiary: #F3E9D2;
    --color-accent: #F68D6E;
    --color-dark: #1A1F2B;
    
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    
    --transition-speed: 0.3s;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-secondary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Header et navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.header-logo {
    width: 120px;
    height: 40px;
}

.header-logo-text {
    fill: var(--color-primary);
    font-weight: bold;
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-primary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.nav-cta:hover {
    background-color: var(--color-accent);
}

.menu-toggle, .menu-icon {
    display: none;
}

/* Main Content */
.main-content {
    padding-top: 70px; /* Pour compenser le header fixe */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-section h1, .hero-section p {
    color: white;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 200px;
    height: 60px;
    margin: 0 auto;
}

.logo-text {
    fill: white;
    font-weight: bold;
    font-size: 40px;
    text-transform: lowercase;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.cta-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    background-color: var(--color-tertiary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
    transition: transform var(--transition-speed);
}

.about-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Services Section */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: 50%;
    color: var(--color-dark);
}

.icon {
    width: 30px;
    height: 30px;
    fill: var(--color-primary);
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--color-tertiary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-secondary);
}

.timeline-step {
    position: relative;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.timeline-step:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 55%;
}

.timeline-step:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

/* Testimonials Section */
.testimonials-section {
    background-color: white;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial {
    background-color: #f9f9f9;
    padding: 30px;
    text-align: center;
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 3rem;
    opacity: 0.2;
    color: var(--color-primary);
}

.rating {
    margin-bottom: 20px;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
}

.star.star-filled {
    color: #FFD700;
}

.author-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.author-company {
    font-size: 0.9rem;
    color: #666;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: var(--color-secondary);
}

/* Why Choose Us Section */
.why-us-section {
    background-color: var(--color-tertiary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

/* Contact Section */
.contact-section {
    background-color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input:focus, select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(147, 197, 114, 0.3);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

.submit-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    width: 100%;
}

.submit-button:hover {
    background-color: var(--color-accent);
}

/* Blog Section */
.blog-section {
    background-color: var(--color-tertiary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform var(--transition-speed);
    display: inline-block;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* FAQ Section */
.faq-section {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-toggle {
    display: none;
}

.faq-question {
    position: relative;
    display: block;
    padding: 20px;
    padding-right: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}


.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-primary);
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    transform: translateY(-50%) rotate(90deg);
    transition: transform var(--transition-speed);
}

.faq-toggle:checked + .faq-question {
    background-color: #f0f0f0;
}

.faq-toggle:checked + .faq-question .faq-icon::after {
    transform: translateY(-50%) rotate(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
    padding: 0 20px;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex-basis: 300px;
    flex-grow: 1;
}

.footer-logo-svg {
    width: 120px;
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo-text {
    fill: white;
    font-weight: bold;
    font-size: 24px;
}

.company-bio {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    flex-grow: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.footer-links-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-links-column ul {
    margin-bottom: 20px;
}

.footer-links-column li {
    margin-bottom: 8px;
}

.footer-links-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed);
}

.footer-links-column a:hover {
    color: var(--color-accent);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-icon {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-dark);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 400px;
    z-index: 1001;
    display: none;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--color-secondary);
}

.cookie-btn {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border: none;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.cookie-btn:hover {
    background-color: var(--color-accent);
    color: white;
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-number {
        left: 30px;
    }
    
    .timeline-content {
        width: 80%;
        margin-left: 60px !important;
        text-align: left;
    }
    
    .menu-icon {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 1002;
    }
    
    .menu-icon-line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        position: absolute;
        left: 0;
        transition: all var(--transition-speed);
    }
    
    .menu-icon-line:first-child {
        top: 0;
    }
    
    .menu-icon-line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .menu-icon-line:last-child {
        bottom: 0;
    }
    
    .menu-toggle:checked + .menu-icon .menu-icon-line:first-child {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon .menu-icon-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon .menu-icon-line:last-child {
        opacity: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right var(--transition-speed);
        z-index: 1001;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 15px;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-links-column {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .services-grid,
    .blog-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: 75%;
    }
}