/* 
ComptaFrance - Services Comptables Professionnels
Main Stylesheet
*/

/* Custom properties - Color palette */
:root {
    --color-bg-primary: #fefeff;
    --color-accent: #ff387f;
    --color-accent-secondary: #30f2ba;
    --color-text: #1e1e2f;
    --color-bg-alt-1: #d9f1f1;
    --color-bg-alt-2: #ffe2ec;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Correction pour les ancres de navigation */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-text);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center; /* Centrage des titres h2 */
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Centre la ligne sous le titre */
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-accent-secondary);
    color: var(--color-text);
    border-color: var(--color-accent-secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-accent-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: white;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
}

.logo svg {
    margin-right: 10px;
}

.logo span {
    color: var(--color-text);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list li a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--color-accent);
}

.nav-list li a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-list li a:hover:before,
.nav-list li a.active:before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-text);
    margin: 6px 0;
    transition: all 0.3s ease;
}

.mobile-menu-form {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(254, 254, 255, 0.8), rgba(217, 241, 241, 0.8)), url('../img/ISgbt1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    width: 100%;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-alt-2));
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

/* Features Section */
.features {
    background-color: var(--color-bg-primary);
}

.features-image {
    max-width: 60%;
    margin: 0 auto 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features-image img {
    width: 100%;
    height: auto;
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--color-accent);
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.feature-title {
    margin-bottom: 15px;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-alt-1));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--color-accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    border-radius: 50%;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--color-accent);
}

.service-description {
    margin-bottom: 20px;
}

/* Guarantees Section */
.guarantees {
    background: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-alt-2));
}

.guarantees-image {
    max-width: 60%;
    margin: 0 auto 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.guarantees-image img {
    width: 100%;
    height: auto;
    display: block;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guarantee-card {
    text-align: center;
    padding: 20px;
}

.guarantee-icon {
    font-size: 3rem;
    color: var(--color-accent-secondary);
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-bg-primary);
}

.testimonials-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial:nth-child(odd) {
    transform: translateX(5%);
}

.testimonial:nth-child(even) {
    transform: translateX(-5%);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-name {
    font-weight: 700;
}

.testimonial-author-title {
    color: #777;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-alt-1));
}

.accordion {
    margin-top: 40px;
}

.accordion-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-accent);
    transition: all 0.3s ease;
}

.accordion-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.accordion-text {
    padding: 0 20px 20px;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-alt-2));
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-info-icon {
    margin-right: 15px;
    color: var(--color-accent);
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-btn {
    width: 100%;
}

/* Thank You Page */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-alt-2));
    text-align: center;
    padding: 20px 0;
}

.thank-you-content {
    max-width: 700px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thank-you-icon {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--color-text);
    opacity: 0.9;
    text-align: center;
}

/* Footer */
footer {
    background-color: #1e1e2f;
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-info, .footer-contact, .footer-links, .footer-legal {
    margin-bottom: 20px;
}

.footer h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: white;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.footer a {
    color: white;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer ul li {
    margin-bottom: 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;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    color: white;
}

.footer-logo span {
    margin-left: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-width: 500px;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.cookie-content {
    width: 100%;
}

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Policy Pages */
.policy {
    padding: 120px 0 60px;
}

.policy h1 {
    text-align: center;
    margin-bottom: 40px;
}

.policy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-updated {
    color: #777;
    font-size: 0.9rem;
    text-align: right;
    margin-bottom: 30px;
    font-style: italic;
}

.policy h2 {
    margin-top: 30px;
    text-align: left;
    padding-bottom: 10px;
}

.policy h2:after {
    left: 0;
    transform: none;
    width: 50px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: 15px;
}

.mb-md {
    margin-bottom: 30px;
}

.mb-lg {
    margin-bottom: 60px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert ul {
    padding-left: 20px;
    list-style-type: disc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        max-height: 500px;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list li a {
        display: block;
        padding: 15px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial:nth-child(odd), .testimonial:nth-child(even) {
        transform: none;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
} 