/**
 * Main Stylesheet
 * Cabinet Comptable Website
 */

/* ----------------- */
/* Base & Typography */
/* ----------------- */
:root {
    --color-primary: #6F2DBD;
    --color-accent: #F54768;
    --color-background: #FFFFF0;
    --color-text: #2E2E2E;
    --color-button: #C4F1F9;
    --color-white: #FFFFFF;
    --color-light-gray: #F4F4F4;
    --color-medium-gray: #E0E0E0;
    --color-dark-gray: #888888;
    --gradient-primary: linear-gradient(135deg, #6F2DBD 0%, #F54768 100%);
    --box-shadow: 0 4px 20px rgba(111, 45, 189, 0.15);
    --transition: all 0.3s ease;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 6rem;
    height: 0.4rem;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: var(--transition);
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.6rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

section {
    padding: 8rem 0;
    position: relative;
}

section:target::before {
    content: "";
    display: block;
    height: var(--header-height);
    margin-top: calc(-1 * var(--header-height));
    visibility: hidden;
}

section:nth-child(odd) {
    background-color: var(--color-light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header p {
    font-size: 1.8rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* --------------- */
/* Buttons & Forms */
/* --------------- */
.btn-primary, 
.btn-secondary, 
.btn-tertiary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(245, 71, 104, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(245, 71, 104, 0.3);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-button);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(111, 45, 189, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(111, 45, 189, 0.2);
    color: var(--color-primary);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-tertiary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

input, 
select, 
textarea {
    width: 100%;
    padding: 1.2rem 1.6rem;
    border: 1px solid var(--color-medium-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.6rem;
    transition: var(--transition);
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(111, 45, 189, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-error {
    background-color: rgba(245, 71, 104, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-error p {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--color-accent);
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 3rem;
    cursor: pointer;
    font-size: 1.6rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    width: 2rem;
    background-color: #fff;
    border: 1px solid var(--color-medium-gray);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* ------------ */
/* Header & Nav */
/* ------------ */
.site-header {
    padding: 2rem 0;
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(111, 45, 189, 0.1);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 3rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--color-text);
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-menu a:hover::before,
.nav-menu a:focus::before {
    width: 100%;
}

.btn-contact {
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(111, 45, 189, 0.2);
}

/* Mobile menu toggle using CSS only */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 3rem;
    height: 2.4rem;
    position: relative;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 3px;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .nav-menu {
    right: 0;
}

#menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ------------ */
/* Hero Section */
/* ------------ */
.hero-section {
    padding: 12rem 0;
    background: linear-gradient(to right, rgba(255, 255, 240, 0.9), rgba(255, 255, 240, 0.7)), url('../img/vkpkZw.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    transform: perspective(800px) rotateY(-15deg);
}

.hero-content h1 {
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 2rem;
}

/* -------------- */
/* About Section */
/* -------------- */
.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text, 
.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    text-align: center;
}

.stat {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin: 0 1rem;
}

.stat-number {
    display: block;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.stat-text {
    font-size: 1.6rem;
    font-weight: 500;
}

/* ------------------ */
/* Advantages Section */
/* ------------------ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.advantage-card {
    background-color: var(--color-white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    margin-bottom: 2rem;
}

.advantage-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ----------------- */
/* Services Section */
/* ----------------- */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(111, 45, 189, 0.2);
}

.service-image {
    flex: 1;
    min-width: 35%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    flex: 2;
    padding: 3rem;
}

.service-price {
    margin: 2rem 0;
}

.price {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-detail {
    display: block;
    font-size: 1.4rem;
    color: var(--color-dark-gray);
    margin-top: 0.5rem;
}

/* -------------- */
/* Why Us Section */
/* -------------- */
.why-us-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.why-us-text, 
.why-us-image {
    flex: 1;
}

.why-us-list {
    margin-top: 3rem;
}

.why-us-list li {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
    position: relative;
}

.why-us-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 1.2rem;
    height: 1.2rem;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.why-us-list li strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.why-us-image img {
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.why-us-text .btn-primary {
    margin-top: 2rem;
}

/* -------------------- */
/* Testimonials Section */
/* -------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-rating {
    color: gold;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--color-primary);
}

.testimonial-author span {
    font-size: 1.4rem;
    color: var(--color-dark-gray);
}

/* ------------ */
/* FAQ Section - CSS-only accordion */
/* ------------ */
.faq-container {
    width: 100%;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    flex: 1;
}

.faq-toggle {
    font-size: 2.4rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.faq-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-item label {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    cursor: pointer;
    align-items: center;
}

.faq-item label h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.faq-item label::after {
    content: '+';
    font-size: 2.4rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    padding: 0 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item input:checked ~ .faq-content {
    max-height: 500px;
    padding-bottom: 2rem;
}

.faq-item input:checked ~ label::after {
    transform: rotate(45deg);
}

/* ---------------- */
/* Contact Section */
/* ---------------- */
.contact-content {
    display: flex;
    gap: 5rem;
}

.contact-info, 
.contact-form {
    flex: 1;
}

.contact-info {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info p svg {
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info address {
    font-style: normal;
    margin-bottom: 3rem;
}

.opening-hours {
    margin-bottom: 3rem;
}

.contact-map {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 2.5rem;
}

/* ---------------- */
/* Policy Pages Style */
/* ---------------- */
.policy-section {
    padding: 8rem 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 5rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.last-updated {
    font-style: italic;
    color: var(--color-dark-gray);
    margin-bottom: 3rem;
}

.policy-intro {
    margin-bottom: 4rem;
    font-size: 1.8rem;
}

.policy-item {
    margin-bottom: 4rem;
}

.policy-item h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.policy-item ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-top: 1rem;
}

.policy-item li {
    margin-bottom: 1rem;
}

.policy-item address {
    font-style: normal;
    line-height: 1.8;
}

/* ------------ */
/* Footer */
/* ------------ */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0 2rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.site-footer a {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* -------------- */
/* Cookie Banner */
/* -------------- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
    max-width: 400px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* --------------- */
/* CSS Animations for replacing JS */
/* --------------- */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply different animation delays to create a staggered effect */
.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { animation-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { animation-delay: 0.6s; }

/* ---------------- */
/* Media Queries */
/* ---------------- */
@media screen and (max-width: 992px) {
    html {
        font-size: 56.25%;
    }
    
    .hero-section .container,
    .about-content,
    .why-us-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-image,
    .about-image,
    .why-us-image {
        order: -1;
        margin-bottom: 3rem;
    }
    
    .service-card {
        flex-direction: column;
    }
    
    .service-image {
        min-height: 250px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 3.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 8rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(111, 45, 189, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 3rem;
    }
    
    .service-image {
        min-height: 200px;
    }
    
    .policy-content {
        padding: 3rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 45%;
    }
    
    .hero-section {
        padding: 8rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-tertiary {
        width: 100%;
        text-align: center;
    }
    
    .cookie-banner {
        left: 1rem;
        right: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 1rem;
    }
} 