/* 
   Domain - Comptabilité et Services Financiers
   Fichier CSS principal
*/

/* Reset et Styles de Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #FFF1E6;
    color: #2C2C2C;
    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 {
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: #3F51B5;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6F61;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.btn {
    margin: auto;
    max-width: max-content;
    display: block;
    background-image: linear-gradient(to right, #FF6F61, #FFEB3B);
    color: #2C2C2C;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-image: linear-gradient(to right, #FF6F61, #FFEB3B);
}

/* Header */
header {
    background-color: rgba(255, 241, 230, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3F51B5;
}

.contact-info {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.phone {
    margin-right: 15px;
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    font-weight: 500;
    padding: 5px 10px;
}

.menu-toggle {
    display: none;
}

.menu-checkbox {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    margin-bottom: 4rem;
    background-image: url('./img/ELcAE.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background-color: #fff;
    border-radius: 24px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature-icon {
    color: #FF6F61;
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.5rem;
}

/* Why Us Section */
.whyus {
    background-color: #fff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.whyus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.whyus-item {
    text-align: center;
    padding: 1.5rem;
}

.whyus-icon {
    font-size: 2.5rem;
    color: #3F51B5;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.testimonial-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: #3F51B5;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3F51B5;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
}

.step-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.step-content {
    padding: 1.5rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #fff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3F51B5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.form-select {
    background-color: #fff;
}

.form-select option {
    background-color: #fff;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: rgba(255, 241, 230, 0.8);
    padding: 4rem 0 2rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer-about {
    margin-right: 2rem;
}

.footer-links h4, .footer-contact h4 {
    color: #3F51B5;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #FF6F61;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #9E9E9E;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #fff;
    min-width: 300px;
    max-width: 400px;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-text {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: 24px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9rem;
}

.cookie-accept {
    background: linear-gradient(to right, #FF6F61, #FFEB3B);
    border: none;
    color: #2C2C2C;
}

/* Policy Pages */
.policy-content {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 100px;
    margin-bottom: 3rem;
}

/* Thank You Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin: 5rem auto;
}

/* Mobile Menu */
.menu-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}

.menu-checkbox {
    display: none;
}

/* FAQ */
.faq-item {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.faq-question {
    display: block;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    background-color: #f5f5f5;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 20px;
    transition: all 0.3s ease;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-checkbox:checked ~ .faq-question:after {
    transform: rotate(45deg);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 15px 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #FFF1E6;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 5px;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
        height: 100vh;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .contact-info {
        order: 3;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .thanks-section {
        height: auto;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .about, .whyus, .contact-form-section, .policy-content {
        padding: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}
