/* 
* AuditFi - Services d'audit financier
* Styles pour le site web complet
* Palette de couleurs: 
*   - Bleu électrique: #0066FF
*   - Gris graphite: #2E2E2E
*   - Orange mandarine: #FF6B00
*   - Fond gris-beige: #F4F4F1
*   - Texte noir: #000000
*   - Texte blanc: #FFFFFF
*/

/* Reset CSS et base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2E2E2E;
    background-color: #F4F4F1;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0066FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6B00;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #2E2E2E;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: #0066FF;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--primary {
    background-color: #0066FF;
    color: #FFFFFF;
}

.btn--primary:hover {
    background-color: #0055d4;
    color: #FFFFFF;
}

.btn--secondary {
    background-color: #FF6B00;
    color: #FFFFFF;
}

.btn--secondary:hover {
    background-color: #e05e00;
    color: #FFFFFF;
}

/* Header et navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: block;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
}

.nav__item {
    margin-left: 2rem;
}

.nav__link {
    color: #2E2E2E;
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066FF;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.header__burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2E2E2E;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    padding-top: 8rem;
    background-color: #FFFFFF;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero__content {
    flex: 1;
    padding-right: 2rem;
}

.hero__image {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2E2E2E;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #2E2E2E;
}

/* About section */
.about {
    background-color: #F4F4F1;
}

.about__content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about__text {
    flex: 1;
}

.about__image {
    flex: 1;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Advantages section */
.advantages {
    background-color: #FFFFFF;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #F4F4F1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-card__icon {
    margin-bottom: 1.5rem;
}

/* Services section */
.services {
    background-color: #F4F4F1;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-card__image {
    height: 200px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card h3, .service-card p, .service-card ul {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    color: #0066FF;
}

.service-card ul {
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

/* Case studies section */
.case-studies {
    background-color: #FFFFFF;
}

.case-studies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study {
    background-color: #F4F4F1;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Testimonials section */
.testimonials {
    background-color: #F4F4F1;
}

.testimonials__slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.testimonial {
    min-width: 300px;
    flex: 1;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
}

.testimonial__content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial__author .name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial__author .position {
    font-size: 0.9rem;
    color: #666;
}

/* Contact section */
.contact {
    background-color: #FFFFFF;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__form {
    flex: 1;
}

.contact__info {
    flex: 1;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form__group input, .form__group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.form__group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.contact__details {
    margin-bottom: 2rem;
}

.contact__map {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

/* Alertes de formulaire */
.form-alert {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.form-alert--error {
    background-color: rgba(255, 107, 0, 0.15);
    border-left: 4px solid #FF6B00;
    color: #e05e00;
}

.form-alert--success {
    background-color: rgba(0, 200, 83, 0.15);
    border-left: 4px solid #00c853;
    color: #00a844;
}

.form-alert ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.form-alert ul li {
    margin-bottom: 0.25rem;
}

.form-alert ul li:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #2E2E2E;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer__logo {
    flex: 2;
    margin-right: 2rem;
}

.footer__description {
    margin-top: 1.5rem;
    max-width: 400px;
}

.footer__links {
    flex: 3;
    display: flex;
    justify-content: space-between;
}

.footer__column {
    flex: 1;
    padding-right: 1rem;
}

.footer__column h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer__column h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: #FF6B00;
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: 0.5rem;
}

.footer__column a {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.footer__column a:hover {
    color: #FF6B00;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.footer__copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background-color: #2E2E2E;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: bottom 0.5s ease;
}

.cookie-popup.active {
    bottom: 0;
}

.cookie-popup p {
    margin: 0;
    padding-right: 2rem;
}

/* Thank You Page */
.thank-you {
    padding: 15rem 0;
    text-align: center;
}

.thank-you__content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you__message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.thank-you__icon {
    margin: 2rem auto;
}

.thank-you__contact {
    margin: 2rem 0;
}

/* Legal Pages */
.legal {
    padding: 10rem 0 5rem;
}

.legal h1 {
    margin-bottom: 3rem;
    text-align: center;
}

.legal__content {
    max-width: 800px;
    margin: 0 auto;
}

.legal__date {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal h2 {
    margin-top: 2.5rem;
}

.legal__back {
    margin-top: 3rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero .container, .about__content, .contact__content {
        flex-direction: column;
    }
    
    .hero__content, .hero__image, .about__text, .about__image {
        flex: auto;
        width: 100%;
    }
    
    .hero__content, .about__text {
        margin-bottom: 2rem;
    }
    
    .footer__top {
        flex-direction: column;
    }
    
    .footer__logo {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header__burger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #FFFFFF;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav__item {
        margin-left: 0;
    }
    
    .advantages__grid, .services__grid, .case-studies__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer__column {
        padding-right: 0;
    }
    
    .footer__bottom {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .footer__legal {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-popup p {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .hero {
        padding-top: 6rem;
    }
}

/* CSS Only Burger Menu Animation */
.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* CSS Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content, .about__content, .advantage-card, .service-card, .case-study, .testimonial {
    animation: fadeIn 0.8s ease forwards;
}

.advantage-card:nth-child(2) {
    animation-delay: 0.2s;
}

.advantage-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* CSS for JavaScript-free Burger Menu */
.header__burger {
    z-index: 1001;
}

.header__burger:focus-within + .nav,
.header__burger:active + .nav {
    left: 0;
}

/* Ajout de style pour le formulaire si erreur */
.form__group input:invalid, .form__group select:invalid {
    border-color: #FF6B00;
}

/* Favicon SVG */
/* Le favicon sera défini directement dans un fichier svg externe */ 