/* 
 * Main stylesheet for domain - Accounting Services in France
 * Color palette:
 * - Primary: #FFF44F (lemon yellow)
 * - Accent: #4B0082 (indigo), #FF6F61 (coral pink), #98FF98 (mint green)
 * - Background gradient: #E0ECF8 to #FFFFFF
 * - Text: #222222 (coal black)
*/

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222222;
    background: linear-gradient(to bottom, #E0ECF8, #FFFFFF);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #FFF44F;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #4B0082;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6F61;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #FFF44F;
    color: #222222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #4B0082;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #4B0082;
    border: 2px solid #4B0082;
}

.btn-secondary:hover {
    background-color: #4B0082;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* ===== HEADER AND NAVIGATION ===== */
.main-header {
    background-color: #FFFFFF;
    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 {
    text-decoration: none;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #4B0082;
    margin: 0;
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #222222;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFF44F;
    transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.menu-toggle {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #4B0082;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(224, 236, 248, 0.8), rgba(255, 255, 255, 0.8));
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: #4B0082;
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background-color: #F9F9F9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

.service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-title {
    color: #4B0082;
    margin-bottom: 15px;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E0ECF8;
    border-radius: 50%;
}

.benefit-title {
    color: #4B0082;
    margin-bottom: 10px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 80px 0;
    background-color: #F9F9F9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-quote:before {
    content: '"';
    font-size: 60px;
    color: #E0ECF8;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.5;
}

.testimonial-author {
    font-weight: 600;
    color: #4B0082;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #777777;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #E0ECF8;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #F9F9F9;
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 20px;
    color: #4B0082;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px; /* Adjust as needed */
}

/* ===== CONTACT FORM SECTION ===== */
.form-section {
    padding: 80px 0;
    background-color: #F9F9F9;
}

.form-container {
    max-width: 600px;
    margin: 50px auto 0;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0ECF8;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #4B0082;
}

.checkbox-group {
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 20px;
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details {
    padding: 30px;
    background-color: #F9F9F9;
    border-radius: 10px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: #FFF44F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-text h4 {
    margin-bottom: 5px;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: #4B0082;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    margin-top: 15px;
}

.footer-info .logo {
    color: #FFF44F;
}

.footer-contact ul,
.footer-links ul,
.footer-nav ul {
    list-style: none;
    margin: 0;
}

.footer-contact li,
.footer-links li,
.footer-nav li {
    margin-bottom: 10px;
}

.footer-contact a,
.footer-links a,
.footer-nav a {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-nav a:hover {
    color: #FFF44F;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(75, 0, 130, 0.95);
    color: #FFFFFF;
    padding: 15px;
    z-index: 1001;
    display: none; /* Hidden by default, shown by JS */
}

.cookie-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin-bottom: 0;
    margin-right: 15px;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ===== POLICY PAGES ===== */
.policy-content {
    max-width: 800px;
    margin: 50px auto;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.policy-content h2 {
    color: #4B0082;
}

.policy-content h3 {
    margin-top: 30px;
    color: #4B0082;
}

.policy-content ul {
    margin-bottom: 20px;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
    padding: 100px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: #98FF98;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content,
    .about-content {
        flex-direction: column;
    }
    
    .hero-image,
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.open {
        max-height: 300px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section,
    .about-section,
    .services-section,
    .benefits-section,
    .testimonials-section,
    .faq-section,
    .form-section,
    .contact-info-section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .form-container,
    .policy-content {
        padding: 25px;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-section {
        padding: 30px 0;
    }

    .cookie-banner.show {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner p {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .cookie-buttons {
        justify-content: center;
    }
}
