/* Style principal pour le site domain.com - Services comptables
 * Palette de couleurs:
 * - Principal: #1E3FA9 (bleu électrique)
 * - Accent: #FFD600 (jaune citron)
 * - Supplémentaire: #FF5E57 (corail)
 * - Fond: #F4F7FB (gris clair)
 * - Texte: #2B2B2B (graphite)
 * - Texte secondaire: #6A7C92 (gris-bleu)
 */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: #2B2B2B;
    background-color: #F4F7FB;
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    margin-bottom: 1rem;
    color: #1E3FA9;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #FFD600;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #1E3FA9;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFD600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #1E3FA9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FFD600;
    color: #1E3FA9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #1E3FA9;
    color: #1E3FA9;
}

.btn-secondary:hover {
    background-color: #1E3FA9;
    color: white;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header et navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E3FA9;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 500;
}

.burger-menu {
    display: none;
}

#menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: #1E3FA9;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background-color: white;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

/* Why Us Section */
.why-us {
    background-color: #1E3FA9;
    color: white;
}

.why-us h2 {
    color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: #FFD600;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    font-size: 2rem;
    color: #1E3FA9;
}

/* Form Section */
.form-section {
    background-color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border: 2px solid #1E3FA9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30, 63, 169, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1E3FA9;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #6A7C92;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #1E3FA9;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

/* Testimonials Section */
.testimonials {
    background-color: #F4F7FB;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: #FFD600;
    opacity: 0.4;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: #1E3FA9;
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-question {
    display: block;
    padding: 1rem;
    background-color: #F4F7FB;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 2.5rem;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

input[type="checkbox"].faq-toggle {
    display: none;
}

input[type="checkbox"].faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

input[type="checkbox"].faq-toggle:checked ~ .faq-question:after {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background-color: #1E3FA9;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #FFD600;
    margin-bottom: 1.2rem;
}

.footer-section p, .footer-section a {
    color: white;
    opacity: 0.9;
}

.footer-section a:hover {
    color: #FFD600;
    opacity: 1;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.contact-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 0.8rem;
    color: #FFD600;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Thank You Page */
.thank-you-container {
    max-width: 600px;
    margin: 8rem auto 5rem;
    padding: 3rem;
    text-align: center;
    background-color: white;
    border: 2px solid #1E3FA9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30, 63, 169, 0.1);
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.policy-container h1 {
    margin-bottom: 2rem;
}

.policy-container h2 {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .burger-menu {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    .burger-menu:before {
        content: '☰';
    }
    
    #menu-toggle:checked ~ .burger-menu:before {
        content: '✕';
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu li {
        margin: 0 0 1.5rem;
    }
    
    #menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}
