/* 
 * Auditex Conseil - Main Stylesheet
 * Palette de couleurs:
 * - Lavande (Principal): #B497D6
 * - Rose saumon (Accent): #FF6B6B
 * - Graphite (Secondaire): #2E2E3A
 * - Ivoire (Fond): #FFF8F0
 * - Gris foncé (Texte): #333333
 */

/* Base & Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #B497D6;
    --color-accent: #FF6B6B;
    --color-secondary: #2E2E3A;
    --color-background: #FFF8F0;
    --color-text: #333333;
    --color-light: #ffffff;
    --color-gray: #f5f5f5;
    --color-dark-gray: #777777;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.cta-btn, 
.submit-btn, 
.cookie-btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.cta-btn:hover, 
.submit-btn:hover, 
.cookie-btn:hover {
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-light);
}

.cta-btn-small {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cta-btn-small:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--color-secondary);
    font-weight: 500;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-toggle:checked ~ nav {
        height: auto;
        padding: 20px 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .nav-toggle-label {
        display: block;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--color-secondary);
        height: 2px;
        width: 25px;
        position: relative;
        transition: var(--transition);
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        bottom: 8px;
    }

    .nav-toggle-label span::after {
        top: 8px;
    }

    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(180, 151, 214, 0.1), rgba(255, 107, 107, 0.05));
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h1:before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(180, 151, 214, 0.2);
    border-radius: 50%;
    z-index: -1;
    top: -10px;
    left: -20px;
}

.hero-content .slogan {
    font-size: 1.2rem;
    color: var(--color-dark-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .cta-btn {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    margin-left: auto;
}

.hero-image:before {
    content: '';
    position: absolute;
    width: 90%;
    height: 100%;
    border: 3px solid var(--color-accent);
    border-radius: var(--border-radius);
    top: 20px;
    right: 0;
    z-index: -1;
}

/* About Section */
.about-section {
    background-color: var(--color-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-image:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(180, 151, 214, 0.1);
    border-radius: var(--border-radius);
    top: -15px;
    left: -15px;
    z-index: -1;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--color-gray);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.benefit-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-card:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    bottom: 0;
    left: 0;
    z-index: -1;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(180, 151, 214, 0.1);
    position: relative;
}

.benefit-icon:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 30px;
    color: var(--color-primary);
}

.benefit-icon.experience:before {
    content: "\f19d"; /* graduation-cap */
}

.benefit-icon.precision:before {
    content: "\f6cf"; /* chart-line */
}

.benefit-icon.confidentiality:before {
    content: "\f023"; /* lock */
}

.benefit-icon.support:before {
    content: "\f4c4"; /* hands-helping */
}

/* Services Section */
.services-section {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    margin-top: 20px;
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background-color: rgba(180, 151, 214, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 32px;
    color: var(--color-primary);
}

.service-icon.audit-legal:before {
    content: "\f0e3"; /* gavel */
}

.service-icon.audit-contractuel:before {
    content: "\f15c"; /* file-alt */
}

.service-icon.audit-operationnel:before {
    content: "\f201"; /* chart-line */
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, rgba(46, 46, 58, 0.95), rgba(46, 46, 58, 0.98)), url('./img/KOU4xW.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-light);
}

.why-choose-section h2 {
    color: var(--color-light);
}

.why-choose-section h2:after {
    background-color: var(--color-primary);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 950px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.stat-item p {
    color: var(--color-light);
    font-weight: 300;
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-background);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--color-dark-gray);
    font-size: 0.9rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: var(--color-light);
}
.legal-section h1{
    text-align: center;
}
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
}

.form-container:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    z-index: -1;
    border-radius: calc(var(--border-radius) + 5px);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group:nth-child(3),
.form-group:nth-child(4),
.form-group:nth-child(5),
.form-group:last-child {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(180, 151, 214, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.submit-btn {
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Info Section */
.contact-info-section {
    background-color: var(--color-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-details {
    padding: 20px;
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    gap: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(180, 151, 214, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-icon:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 22px;
    color: var(--color-primary);
}

.contact-icon.address:before {
    content: "\f3c5"; /* map-marker-alt */
}

.contact-icon.phone:before {
    content: "\f095"; /* phone */
}

.contact-icon.email:before {
    content: "\f0e0"; /* envelope */
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    color: var(--color-dark-gray);
}

.map-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: var(--color-light);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-btn {
    white-space: nowrap;
    padding: 10px 20px;
    min-width: 120px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content h1:before {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        margin: 0 auto;
    }

    .hero-image:before {
        width: 80%;
        left: 10%;
        right: 10%;
    }

    .about-content {
        flex-direction: column-reverse;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Font Icons */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2") format("woff2"),
         url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff") format("woff");
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid rgba(180, 151, 214, 0.5);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
} 