/* 
* AuditFlux Conseil - Main Stylesheet
* Author: Professional Web Developer
* Description: Responsive, SEO-optimized website for AuditFlux Conseil
*/

/* ===== VARIABLES ===== */
:root {
    --color-bg-gradient-start: #E0C3FC;
    --color-bg-gradient-end: #8EC5FC;
    --color-text: #1A1A40;
    --color-accent: #FF7E5F;
    --color-button: #6C63FF;
    --color-button-hover: #5753E0;
    --color-border: #333;
    --color-white: #fff;
    --color-light-gray: #f5f5f5;
    --color-medium-gray: #e0e0e0;
    --color-dark-gray: #444;
    --color-error: #dc3545;
    
    --font-primary: 'Roboto', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Helvetica Neue', sans-serif;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    --border-radius: 8px;
    --transition-normal: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--color-bg-gradient-start), var(--color-bg-gradient-end));
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    color: var(--color-button);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-button-hover);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-button);
    color: var(--color-button);
}

.btn-secondary:hover {
    background-color: var(--color-button);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== LAYOUT & SECTIONS ===== */
section {
    padding: 6rem 0;
}

section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Main content padding to account for fixed header */
main {
    padding-top: 80px; /* Height of the navbar */
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 160px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('../img/8fk2IQ.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 28, 99, 0.7), rgba(45, 90, 140, 0.7));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-lg);
}

.logo-container {
    margin-bottom: 2rem;
}

.hero .logo {
    width: 240px;
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: var(--color-white);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
    color: var(--color-white);
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.about-image:hover {
    transform: translateY(-5px);
}

.benefits {
    list-style: none;
    margin: 2rem 0;
}

.benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.benefits .icon {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--color-text);
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-dark-gray);
}

.service-card .btn {
    margin: 0 1.5rem 1.5rem;
}

/* ===== PROCESS SECTION ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.process-step:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-button);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    flex: 1 1 300px;
    transition: var(--transition-normal);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-medium-gray);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.client {
    display: flex;
    flex-direction: column;
}

.client strong {
    color: var(--color-text);
}

.client span {
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

/* ===== FEATURES / WHY US SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info address {
    font-style: normal;
}

.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Form errors styling */
.form-errors {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--color-error);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-errors ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--color-error);
}

.form-errors li {
    margin-bottom: 0.25rem;
}

.error-message {
    color: var(--color-error);
    font-weight: 500;
    margin-bottom: 0;
}

.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;
    border: 1px solid var(--color-medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-button);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--color-error);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-check label {
    font-size: 0.9rem;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: rgba(26, 26, 64, 0.95);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 180px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer h3 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition-normal);
}

.footer a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1 1 60%;
}

.cookie-banner .btn {
    background-color: var(--color-accent);
    color: var(--color-white);
    flex: 0 0 auto;
}

.cookie-link {
    color: var(--color-accent);
    margin-left: 1rem;
    text-decoration: underline;
    flex: 0 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    .services-grid{
        grid-template-columns: 1fr !important;
    }
    h3{
        font-size: 1rem !important;
    }
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .process-steps,
    .testimonial-slider,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .services-grid{
        grid-template-columns: 1fr !important;
    }
    
    h3{
        font-size: 1rem !important;
    }
} 