/* 
 * Main Stylesheet
 * Cabinet Comptable Paris
 * 
 * Color Palette:
 * - Main background: #7B6ABF (lavender-purple)
 * - Accents: #FFF933 (neon yellow), #3DD6D0 (mint-turquoise)
 * - Text: #1A1A1A (deep coal), #FFFFFF (white)
 * - Buttons: gradient from #FF6B6B (coral) to #3B2C5C (dark plum)
 */

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-main: #7B6ABF;
    --color-accent1: #FFF933;
    --color-accent2: #3DD6D0;
    --color-dark: #1A1A1A;
    --color-white: #FFFFFF;
    --color-btn-start: #FF6B6B;
    --color-btn-end: #3B2C5C;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent2);
    margin: 15px auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-gradient:hover, .btn-gradient:focus {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 107, 107, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--color-dark);
    color: var(--color-white);
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 180px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    padding: 5px 10px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-accent2);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav .cta-button a {
    background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.main-nav .cta-button a:hover,
.main-nav .cta-button a:focus {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 107, 107, 0.5);
}

.main-nav .cta-button a::after {
    display: none;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/pattern.svg') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    font-family: var(--font-secondary);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- About Section --- */
.about {
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-title {
    color: var(--color-main);
    margin-bottom: 20px;
}

.about-benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-icon {
    background-color: var(--color-accent2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-icon i {
    color: var(--color-white);
    font-size: 24px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Services Section --- */
.services {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-header {
    background: linear-gradient(135deg, var(--color-main), var(--color-btn-end));
    padding: 20px;
    color: var(--color-white);
    text-align: center;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
}

.service-price .period {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Style pour les nouvelles images dans les services */
.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-features {
    padding: 20px;
}

.service-features ul {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent2);
    font-weight: bold;
}

.service-footer {
    padding: 0 20px 20px;
    text-align: center;
}

/* --- Process Section --- */
.process {
    background-color: var(--color-white);
}

/* Style pour la nouvelle image du processus */
.process-image {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.process-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 4px;
    background: var(--color-main);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 50%;
    margin-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--color-accent2);
    border-radius: 50%;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
}

.timeline-title {
    margin-bottom: 10px;
    color: var(--color-main);
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding: 20px 0;
    font-style: italic;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 3rem;
    color: var(--color-accent2);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content::before {
    top: -10px;
    left: -10px;
}

.testimonial-content::after {
    content: '"';
    bottom: -10px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--color-white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed) ease;
}

/* Mise à jour pour l'accordéon PHP */
.accordion-header a {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
    position: relative;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.accordion-item.active .accordion-header {
    background-color: var(--color-main);
    color: var(--color-white);
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* --- Contact Form Section --- */
.contact {
    background: linear-gradient(135deg, var(--color-main), var(--color-btn-end));
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/pattern.svg') repeat;
    opacity: 0.05;
}

.contact .section-title::after {
    background: var(--color-accent1);
}

.form-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--color-accent2);
    border-radius: calc(var(--border-radius) + 5px);
    z-index: -1;
}

.contact-form {
}

/* Amélioration du formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: all var(--transition-speed) ease;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--color-accent2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 214, 208, 0.25);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
    width: 18px;
    height: 18px;
}

.form-check-label {
    color: var(--color-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-check-label a {
    color: var(--color-main);
    text-decoration: underline;
    font-weight: 600;
}

.form-check-label a:hover {
    color: var(--color-accent2);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #1A1A1A;
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-contact address {
    font-style: normal;
    opacity: 0.7;
}

.footer-contact a:hover {
    color: var(--color-accent2);
}

.footer-contact i {
    margin-right: 8px;
    color: var(--color-accent2);
}

.footer-links ul,
.footer-legal ul {
    opacity: 0.7;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-accent2);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-size: 0.9rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--color-accent2);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* --- Icons --- */
.icon-location::before,
.icon-phone::before,
.icon-email::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.icon-location::before { content: "\f3c5"; }
.icon-phone::before { content: "\f095"; }
.icon-email::before { content: "\f0e0"; }

/* --- Style uniforme pour les pages de politique --- */
.policy-page {
    padding: 160px 0 80px;
    background-color: #fff;
}

.page-title {
    color: var(--color-main);
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-date {
    margin-bottom: 30px;
    font-style: italic;
    color: #777;
    text-align: right;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    color: var(--color-main);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.policy-section h3 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.policy-section p {
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section li {
    margin-bottom: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
        margin-left: 0 !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .nav-toggle-label {
        display: block;
        width: 30px;
        height: 21px;
        position: relative;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--color-dark);
        border-radius: 3px;
        transition: all var(--transition-speed) ease;
    }
    
    .nav-toggle-label span {
        top: 9px;
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -9px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        bottom: -9px;
    }
    
    .nav-toggle:checked ~ .main-nav {
        max-height: 500px;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    /* Ajustements pour les images en version mobile */
    .service-image {
        height: 160px;
    }
    
    .process-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .service-card,
    .testimonial-card {
        margin-left: 10px;
        margin-right: 10px;
    }
} 