/* 
 * Main stylesheet for Audit Financier website
 * Responsive design with CSS Grid and Flexbox
 * Color palette: 
 * - Main background: #1E3A5F (ultramarine blue)
 * - Accents: #A7D129 (lime green), #FF7E29 (orange)
 * - Text: #F5F1E3 (light sand)
 * - Service blocks: gradients from #f9b71c to #f94144
 * - Buttons: glass effect with semi-transparent border
 */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px; /* Ajout pour empêcher que les titres soient masqués par l'en-tête fixe */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #F5F1E3;
    background-color: #1E3A5F;
}

a {
    color: #A7D129;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF7E29;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 4rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #F5F1E3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #A7D129, #FF7E29);
    margin: 1rem auto 0;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-cookie {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: rgba(167, 209, 41, 0.8);
    color: #1E3A5F;
}

.btn-secondary {
    background-color: rgba(255, 126, 41, 0.8);
    color: #F5F1E3;
}

.btn-cookie {
    background-color: rgba(167, 209, 41, 0.8);
    color: #1E3A5F;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary:hover, .btn-secondary:hover, .btn-cookie:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:active, .btn-secondary:active, .btn-cookie:active {
    transform: translateY(1px);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(30, 58, 95, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: #F5F1E3;
    font-weight: 500;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, #A7D129, #FF7E29);
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: rgba(30, 58, 95, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.9)), url('./img/VG4xum.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: -81px; /* Account for fixed header */
    padding-top: 81px;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero .btn-primary {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: rgba(25, 48, 80, 1);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a3055, #1e3a5f);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #A7D129;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: #1E3A5F;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    border-radius: 10px;
    background: linear-gradient(145deg, #223e64, #1c3656);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.benefit-card h3 {
    color: #A7D129;
    margin-bottom: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: rgba(25, 48, 80, 1);
    position: relative;
    overflow: hidden;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 30" preserveAspectRatio="none"><path d="M0,0 Q300,60 600,0 T1200,0 V30 H0 Z" fill="%231E3A5F"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    background: linear-gradient(145deg, #f9b71c 0%, #f94144 100%);
    color: #1E3A5F;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: #1E3A5F;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 2rem;
}

.service-price {
    margin-bottom: 1.5rem;
}

.service-price span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.service-price strong {
    font-size: 2rem;
    font-weight: 700;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #1E3A5F;
    position: relative;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    position: absolute;
    font-size: 3rem;
    line-height: 1;
    color: rgba(167, 209, 41, 0.3);
}

.testimonial-text:before {
    top: -1rem;
    left: -1rem;
}

.testimonial-text:after {
    content: '"';
    bottom: -2rem;
    right: -1rem;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #A7D129;
}

.author-position {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== FORM SECTION ===== */
.order-form {
    background-color: rgba(25, 48, 80, 1);
    padding: 4rem 0 5rem;
}

.order-form .container {
    max-width: 800px;
}

form {
    background: rgba(30, 58, 95, 0.5);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #F5F1E3;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #A7D129;
    box-shadow: 0 0 0 2px rgba(167, 209, 41, 0.3);
}

.form-group select option {
    background-color: #1E3A5F;
    color: #F5F1E3;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

form .btn-primary {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: #1E3A5F;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #A7D129;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #A7D129;
}

.faq-answer {
    padding-left: 1rem;
    border-left: 3px solid rgba(167, 209, 41, 0.3);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: rgba(25, 48, 80, 1);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-item h3 {
    color: #A7D129;
    margin-bottom: 0.5rem;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.2), rgba(30, 58, 95, 0.1));
    pointer-events: none;
    z-index: 1;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: rgba(15, 30, 50, 1);
    padding: 4rem 0 2rem;
    position: relative;
    background-image: linear-gradient(rgba(15, 30, 50, 0.95), rgba(15, 30, 50, 0.95)), url('./img/NxnAMN.jpg');
    background-size: cover;
    background-position: center;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(135deg, #A7D129, #FF7E29);
    opacity: 0.7;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #A7D129;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.footer-links-column li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #FF7E29;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.footer-links-column li:hover {
    padding-left: 1.3rem;
}

.footer-links-column li:hover::before {
    color: #A7D129;
}

.footer-links-column a {
    color: #F5F1E3;
    font-size: 0.9rem;
}

.footer-links-column a:hover {
    color: #A7D129;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #A7D129, #FF7E29);
    opacity: 0.8;
}

/* ===== LEGAL PAGES STYLES ===== */
.legal-page {
    padding: 8rem 0 4rem;
    background-color: rgba(25, 48, 80, 1);
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.legal-page h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #A7D129, #FF7E29);
}

.legal-content {
    background: rgba(30, 58, 95, 0.5);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: #A7D129;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(167, 209, 41, 0.3);
    padding-bottom: 0.5rem;
}

.legal-content h2:first-of-type {
    margin-top: 1rem;
}

.legal-content h2:after {
    display: none;
}

.legal-content h3 {
    color: #FF7E29;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: rgba(30, 58, 95, 0.3);
}

.cookies-table th, .cookies-table td {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.cookies-table th {
    background-color: rgba(167, 209, 41, 0.2);
    font-weight: 600;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
}

/* ===== RESPONSIVE STYLES ===== */

/* Medium screens */
@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
        scroll-padding-top: 120px; /* Ajusté pour les écrans moyens */
    }
    
    .about-content,
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Small screens */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
        scroll-padding-top: 150px; /* Ajusté pour les petits écrans */
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0 0.5rem 0.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
} 