/* 
* AuditeXpert Inc. - Style principal
* Palette de couleurs:
* - Fond: Gradient de #0f2027 à #203a43 à #2c5364 (tëmný akvamarin)
* - Accents: Néon orange #FF6F00, Bleu vif #00E6F6
* - Texte: Blanc doux #F8F9FA, Graphite foncé #1C1C1E
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #0f2027;
    --color-bg-mid: #203a43;
    --color-bg-light: #2c5364;
    --color-accent-orange: #FF6F00;
    --color-accent-blue: #00E6F6;
    --color-text-light: #F8F9FA;
    --color-text-dark: #1C1C1E;
    --color-error: #ff4d4d;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.3);
    --transition-standard: all 0.3s ease;
    --gradient-main: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-mid), var(--color-bg-light));
    --gradient-accent: linear-gradient(90deg, var(--color-accent-orange), #FF9800);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-light);
    background: var(--gradient-main) fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: var(--transition-standard);
}

a:hover {
    color: var(--color-accent-orange);
}

ul, ol {
    list-style-position: inside;
    margin-left: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.legal-content h2{
    text-align: left !important;
}

.legal-content h2::after{
    left: 0 !important;
}
h2 {
    text-align: center !important;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    
    display: block;
    width: 60px;
    height: 4px;
    left: 46%;
    background: var(--color-accent-orange);
    margin-top: 0.8rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    padding: 8rem 0;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 32, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 160px;
    height: 40px;
}

.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 5px 0;
    transition: var(--transition-standard);
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
}

.nav-item {
    margin: 0 1rem;
}

.nav-item a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-blue);
    transition: var(--transition-standard);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item:last-child {
    margin-right: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
    transform: translateY(-2px);
    color: var(--color-text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
}

.btn-secondary:hover {
    background: var(--color-accent-blue);
    color: var(--color-bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
    padding: 0.7rem 1.4rem;
}

.btn-outline:hover {
    background: var(--color-text-light);
    color: var(--color-bg-dark);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 180px 0 !important;
    display: flex;
    align-items: center;

    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9), rgba(44, 83, 100, 0.8)), url('../img/sKp8m9.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}




/* ===== ABOUT SECTION ===== */
.about-section {
    background: rgba(15, 32, 39, 0.7);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-strong);
    transition: var(--transition-standard);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, rgba(32, 58, 67, 0.8), rgba(44, 83, 100, 0.9));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-accent);
    transition: var(--transition-standard);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-icon {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 111, 0, 0.1);
    border-radius: 50%;
    padding: 1rem;
}

.icon-audit, .icon-analysis, .icon-consulting {
    width: 100%;
    height: 100%;
    fill: var(--color-accent-blue);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 0;
    color: rgba(248, 249, 250, 0.9);
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-section {
    background: rgba(44, 83, 100, 0.3);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    padding: 2rem;
    background: linear-gradient(145deg, rgba(15, 32, 39, 0.8), rgba(32, 58, 67, 0.9));
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    position: relative;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.advantage-number {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 230, 246, 0.2);
    line-height: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: rgba(15, 32, 39, 0.7);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 650px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(32, 58, 67, 0.8), rgba(44, 83, 100, 0.9));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(0, 230, 246, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    background: rgba(44, 83, 100, 0.3);
}

.contact-form {
    background: linear-gradient(145deg, rgba(15, 32, 39, 0.8), rgba(32, 58, 67, 0.9));
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(248, 249, 250, 0.1);
    border: 2px solid rgba(0, 230, 246, 0.2);
    color: var(--color-text-light);
    transition: var(--transition-standard);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 230, 246, 0.2);
}

.form-group select option {
    background: var(--color-bg-mid);
    color: var(--color-text-light);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Style des messages d'erreur du formulaire */
.form-errors {
    background: rgba(255, 77, 77, 0.2);
    border-left: 4px solid var(--color-error);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.form-errors p {
    color: var(--color-error);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-errors li {
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-bg-dark);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent-orange);
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin-right: 1rem;
    transition: var(--transition-standard);
}

.social-links a:hover {
    background: var(--color-accent-orange);
}

.icon-social {
    width: 20px;
    height: 20px;
    fill: var(--color-text-light);
}

.legal-links {
    list-style: none;
    margin-left: 0;
}

.legal-links li {
    margin-bottom: 0.8rem;
}

.legal-links a {
    color: var(--color-text-light);
    opacity: 0.8;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--color-accent-blue);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 249, 250, 0.1);
}

.copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== LEGAL PAGES ===== */
.legal-section {
    padding-top: 120px;
    padding-bottom: 3rem;
}

.legal-content {
    background: linear-gradient(145deg, rgba(15, 32, 39, 0.8), rgba(32, 58, 67, 0.9));
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.legal-content h2 {
    margin-top: 2rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.last-updated {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(248, 249, 250, 0.1);
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
   
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin: 0 auto 2rem;
    width: 100px;
    height: 100px;
    background: rgba(0, 230, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-check {
    width: 60px;
    height: 60px;
    fill: var(--color-accent-blue);
}

.next-steps {
    margin: 3rem 0;
    text-align: left;
    background: rgba(15, 32, 39, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.next-steps ol {
    margin-left: 1.5rem;
}

.back-home {
    margin-top: 2rem;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(15, 32, 39, 0.95), rgba(32, 58, 67, 0.95));
    padding: 1.5rem;
    box-shadow: var(--shadow-strong);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
    flex: 1 0 60%;
}

.cookie-content .btn {
    margin-left: 1rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .animated-element {
        right: 5%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .menu-icon {
        display: block;
        z-index: 102;
    }
    .services-grid, .testimonials-slider{
        grid-template-columns: 1fr !important;
    }
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 101;
    }
    
    .menu-toggle:checked ~ .nav-list {
        right: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-item {
        margin: 0;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .animated-element {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-errors {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card, .advantage-item, .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }

    .form-errors {
        padding: 0.75rem;
    }
}