/**
 * Miravexoraq - Site Web de Services d'Audit Financier
 * Styles principaux
 */

/* Variables CSS */
:root {
    --primary-color: #0F4C5C;
    --accent-color: #FFB100;
    --text-color: #333333;
    --gray-color: #B8B8B8;
    --light-gray: #E5E5E5;
    --bg-color: #FAFAFA;
    --white: #FFFFFF;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Georgia', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

/* Reset et Styles de Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

/* Conteneurs */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo:hover {
    color: var(--accent-color);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A6B80 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-section .btn {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 50%;
    animation: slideIn 1s ease-out;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-color);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--white));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-left-color: var(--accent-color);
}

.service-image {
    margin: 0 0 20px;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-color);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--white));
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-arrow:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.audit-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 177, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-checkboxes {
    margin-bottom: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--white));
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-content {
    padding: 20px;
}

.news-date {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-excerpt {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-link {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-block;
}

.news-link:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(15, 76, 92, 0.95);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    margin: 0;
    padding-right: 20px;
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
}

.legal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.legal-content h2 {
    margin-top: 30px;
}

.legal-content h3 {
    margin-top: 25px;
    font-size: 1.3rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    padding-left: 20px;
}

.legal-content ul li, .legal-content ol li {
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translate(100px, -50%); opacity: 0; }
    to { transform: translate(0, -50%); opacity: 1; }
}

.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

/* Thank You Page */
.thank-you-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    left: 170px;
}

.thank-you-content {
    max-width: 600px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 auto;
}

.thank-you-content h1 {
    color: var(--accent-color);
    text-align: center;
}

.thank-you-content p {
    text-align: center;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin: 0 auto 20px;
    text-align: center;
}

.thank-you-buttons {
    text-align: center;
    margin-top: 30px;
}
