/* 
* Équilibre Comptable - Main Stylesheet
* Colors:
* - Primary: #FF6F3C (Mandarin)
* - Secondary: #4F98CA (Bright Cornflower)
* - Background: #FFF8F1 (Light Almond)
* - Accent: #C5E86C (Lemon-lime)
* - Fonts: Manrope, Open Sans
*/

/* ===== Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #FFF8F1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

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: 3px;
    background-color: #FF6F3C;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: #4F98CA;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6F3C;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #FF6F3C;
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: #FF6F3C;
    border-color: #FF6F3C;
}

.btn-outline {
    background-color: transparent;
    color: #FF6F3C;
    border-color: #FF6F3C;
}

.btn-outline:hover {
    background-color: #FF6F3C;
    color: white;
}

/* ===== Header ===== */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: #FF6F3C;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s ease,
                background 0.5s ease,
                opacity 0.55s ease;
}

.nav-toggle-label span:nth-child(3) {
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
}

.main-nav a:hover {
    color: #FF6F3C;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #4F98CA, #C5E86C);
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
    font-weight: 500;
}

.hero-section h2:after {
    display: none;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ===== About Section ===== */
.about-section {
    background-color: white;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-image,
.about-text {
    flex: 1;
}

/* ===== Services Section ===== */
.services-section {
    background-color: #FFF8F1;
    
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.service-card h3 {
    margin-top: 20px;
    padding: 0 20px;
    color: #FF6F3C;
}

.service-card p {
    padding: 0 20px 30px;
}

/* ===== Advantages Section ===== */
.advantages-section {
    background-color: white;
   
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    padding: 30px 20px;
    background-color: #FFF8F1;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-card h3 {
    color: #4F98CA;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: #FFF8F1;
   
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-family: 'Georgia', serif;
    color: rgba(255, 111, 60, 0.1);
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info a {
    color: #333;
}

.contact-info a:hover {
    color: #FF6F3C;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
}

.input-icon-wrapper input {
    padding-left: 45px;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 35px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    appearance: none;
    padding-right: 40px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #4F98CA;
    box-shadow: 0 0 0 3px rgba(79, 152, 202, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: #FF6F3C;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.submit-group {
    margin-top: 10px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #333;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.company-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-nav h3,
.footer-contact h3,
.footer-legal h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-legal a,
.footer-contact a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: #C5E86C;
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1001;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-content .btn {
    background-color: #4F98CA;
    color: white;
}

.cookie-content .btn:hover {
    background-color: #FF6F3C;
}

/* ===== Thank you and Error Pages ===== */
.thank-you-section,
.error-section {
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.thank-you-content{
    max-width: 600px;
    margin: 0 auto;

}
.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you-actions {
    margin-top: 30px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: darkred;
}

/* ===== Legal Pages ===== */
.legal-section {
    
    padding: 80px 0;
}

.legal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    section {
        padding: 80px 0;
    }
    .hero-section {
        padding: 100px 0;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .about-content {
        flex-direction: column;
    }
    .about-image, .about-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Header and navigation */
    .nav-toggle-label {
        display: block;
        z-index: 1001;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(1px, -1px);
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(1px, 0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 80px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
} 