/* 
  AuditCible - Main Stylesheet
  Created by [Your Name]
  Version: 1.0
*/

/* Variables */
:root {
    --primary-color: #1AB2A8;
    --secondary-color: #FFC857;
    --dark-text: #2D2D2D;
    --light-text: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #F7F7F7;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-text);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-type: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 0;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--background-dark);
}

/* Utilities */
.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Header */
.header {
    background-color: var(--background-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav-list a:hover, 
.nav-list a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 5rem;
    background-color: var(--background-light);
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.logo-container {
    width: 250px;
    margin-bottom: 2rem;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.main-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: var(--transition);
}

.main-image:hover {
    transform: rotate(0);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-text);
    opacity: 0.9;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.about-stats li {
    background-color: var(--background-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-weight: 500;
}

.about-stats li span {
    display: block;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

.service-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 0;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

/* Why Choose Us Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-card {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.benefit-icon {
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.values-image {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Testimonials Section */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.8;
    margin: 0;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background-light);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Contact Form Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Messages d'erreur du formulaire */
.form-errors {
    max-width: 800px;
    margin: 0 auto 2rem;
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: #D32F2F;
    font-weight: 500;
}

.form-errors p {
    margin-bottom: 0.5rem;
}

.form-errors p:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 178, 168, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    grid-column: span 2;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    margin: 0;
}

.submit-button {
    grid-column: span 2;
    background-color: var(--dark-text);
    color: var(--light-text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo svg {
    fill: var(--light-text);
    height: 40px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--light-text);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
}

.cookie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-button.accept {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.cookie-button.decline {
    background-color: #eee;
    color: var(--dark-text);
}

.cookie-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .logo-container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .navigation {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background-color: var(--background-light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .navigation.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .nav-list li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-list a {
        display: block;
        padding: 1rem;
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width,
    .checkbox-group,
    .submit-button {
        grid-column: 1;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
} 