/* 
 * Fiscalia Conseil - Stylesheet
 * Color Palette:
 * - Main: #3F51B5 (Deep Indigo)
 * - Accent: #D4FF00 (Electric Lime)
 * - Background: #F3F3F3 (Light Grey)
 * - Text: #212121 (Dark Blue)
 * - Buttons: #0A0A0A (Ink Black)
 */

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #212121;
    background-color: #F3F3F3;
}
#merci{
    padding: 18rem 0;
}
.merci-content{
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #3F51B5;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #D4FF00;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 11rem 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 2rem;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
    position: relative;
    text-align: center;
    margin-bottom: 5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: linear-gradient(90deg, #3F51B5, #D4FF00);
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #0A0A0A;
    color: #D4FF00;
    box-shadow: 0 0.5rem 1.5rem rgba(10, 10, 10, 0.2);
}

.btn-primary:hover {
    background-color: #212121;
    color: #D4FF00;
    box-shadow: 0 0.5rem 2.5rem rgba(10, 10, 10, 0.3);
    transform: translateY(-0.3rem);
}

.btn-cookie {
    background-color: #D4FF00;
    color: #0A0A0A;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

/* --- Header Styles --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: block;
}

.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 3rem;
    height: 2rem;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 0.3rem;
    width: 100%;
    background: #3F51B5;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 0.8rem;
}

.menu-icon span:nth-child(3) {
    top: 1.6rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 3rem;
}

.nav-menu a {
    color: #212121;
    font-weight: 600;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background-color: #D4FF00;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #3F51B5;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-contact .phone-number {
    font-weight: 700;
    font-size: 1.8rem;
    color: #3F51B5;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.9), rgba(63, 81, 181, 0.7)), url('img/m4a0cr.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 18rem 0 12rem;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    margin: 0 auto;
    margin-bottom: 2rem;
    max-width: 60rem;
    animation: fadeInUp 1s ease;
}

#hero p {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

#hero .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* --- About Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 10rem;
    height: 10rem;
    border: 0.5rem solid #D4FF00;
    z-index: -1;
}

/* --- Services Section --- */
#services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: #F3F3F3;
    border-radius: 1rem;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(90deg, #3F51B5, #D4FF00);
}

.service-icon {
    margin-bottom: 2rem;
}

.icon-circle {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: #3F51B5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-circle::after {
    content: '';
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: #D4FF00;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.service-card:hover .icon-circle::after {
    transform: scale(1);
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.benefit-item {
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.benefit-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.benefit-image {
    margin: -2.5rem -2.5rem 2rem;
    height: 15rem;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefit-item:hover .benefit-image img {
    transform: scale(1.1);
}

.benefit-item h3 {
    color: #3F51B5;
    margin-bottom: 1.5rem;
    position: relative;
}

.benefit-item h3::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 4rem;
    height: 0.3rem;
    background: linear-gradient(90deg, #3F51B5, #D4FF00);
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '';
    position: absolute;
    left: -5rem;
    top: 5rem;
    width: 20rem;
    height: 20rem;
    background-color: rgba(212, 255, 0, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.testimonial {
    flex: 1;
    min-width: 30rem;
}

.testimonial-content {
    background-color: #F3F3F3;
    padding: 3rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.testimonial-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background-color: #D4FF00;
    opacity: 0.2;
    border-radius: 50%;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 0.3rem solid #fff;
    box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.1);
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 1.4rem;
    opacity: 0.8;
}

/* --- Contact Section --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 30rem;
}

.info-item {
    margin-bottom: 3rem;
}

.info-item h3 {
    color: #3F51B5;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 0.1rem solid #ddd;
    border-radius: 0.4rem;
    font-family: inherit;
    font-size: 1.6rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3F51B5;
    box-shadow: 0 0 0 0.2rem rgba(63, 81, 181, 0.25);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

/* Styles pour les messages d'erreur du formulaire */
.form-errors {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0.4rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 2rem;
    list-style-type: circle;
}

.form-errors li {
    color: #d60000;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #0A0A0A;
    color: #fff;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-logo, .footer-contact, .footer-links, .footer-legal {
    flex: 1;
    min-width: 20rem;
}

.footer-logo .company-description {
    margin-top: 2rem;
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer-contact a, .footer-links a, .footer-legal a {
    color: #D4FF00;
}

.footer-contact a:hover, .footer-links a:hover, .footer-legal a:hover {
    color: #fff;
}

.footer-contact h3, .footer-links h3, .footer-legal h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 1rem;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.6rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default, will be shown via JS */
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    max-width: 50rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(20rem);
    pointer-events: none;
}

.cookie-banner p {
    margin-bottom: 0;
    margin-right: 2rem;
    font-size: 1.4rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Media Queries --- */
@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image::before {
        display: none;
    }
}
.policy-content h2{
    text-align: left !important;
}
.policy-content h2::after{
    left: 0 !important;
    transform: translateX(0) !important;
}
@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .menu-toggle:checked ~ .nav-menu {
        max-height: 30rem;
    }

    .header-contact {
        display: none;
    }

    #hero {
        padding: 15rem 0 8rem;
    }

    #hero h1 {
        font-size: 3.6rem;
    }

    #hero p {
        font-size: 1.8rem;
    }

    .services-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        flex-direction: column;
    }

    .testimonial {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    .section {
        padding: 5rem 0;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-bottom {
        margin-top: 3rem;
    }

    .cookie-banner {
        flex-direction: column;
    }

    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 1.5rem;
        text-align: center;
    }
} 