/*
Theme: AuditExcellence
Description: Responsive single-page website for financial audit services
Author: Claude AI
*/

/* ---------------------------------------------------- */
/* COLOR VARIABLES */
/* ---------------------------------------------------- */
:root {
    --color-primary: #114B5F;       /* Deep teal */
    --color-secondary: #F45B69;     /* Bright coral */
    --color-light: #F0EBD8;         /* Beige-sand */
    --color-dark: #2B2D42;          /* Graphite gray */
    --color-accent: #FFE066;        /* Lemon yellow */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #EEEEEE;
    --color-gray-dark: #777777;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --header-height: 80px; /* Hauteur estimée de l'en-tête */
}

/* ---------------------------------------------------- */
/* RESET & BASE STYLES */
/* ---------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px based on browser default 16px */
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Correction pour la navigation par ancre */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

h1 {
    font-size: 4.8rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
}

h3 {
    font-size: 2.4rem;
    font-weight: 600;
}

h4 {
    font-size: 2rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.6rem;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* Ajout d'un padding-top pour les sections avec ID (pour la navigation) */
section[id] {
    padding-top: 10rem;
    margin-top: -2rem;
}

.highlight {
    color: var(--color-secondary);
}

/* ---------------------------------------------------- */
/* BUTTONS */
/* ---------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------- */
/* HEADER & NAVIGATION */
/* ---------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-primary);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 3rem;
}

.main-nav a {
    color: var(--color-light);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.main-nav .btn-primary {
    color: var(--color-white);
}

/* ---------------------------------------------------- */
/* HERO SECTION */
/* ---------------------------------------------------- */
.hero-section {
    padding: 18rem 0 10rem;
    background-color: var(--color-primary);
    color: var(--color-light);
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--color-light);
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------- */
/* ABOUT SECTION */
/* ---------------------------------------------------- */
.about-section {
    background-color: var(--color-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    font-size: 1.8rem;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------- */
/* ADVANTAGES SECTION */
/* ---------------------------------------------------- */
.advantages-section {
    background-color: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.advantage-card {
    background-color: var(--color-gray);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    margin: 0 auto 2rem;
    width: 60px;
    height: 60px;
}

.advantage-card h3 {
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

/* ---------------------------------------------------- */
/* SERVICES SECTION */
/* ---------------------------------------------------- */
.services-section {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2.5rem;
}

.service-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-price {
    margin-top: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}

.service-price span {
    color: var(--color-gray-dark);
    margin-right: 0.8rem;
}

.service-price strong {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* ---------------------------------------------------- */
/* PROCESS SECTION */
/* ---------------------------------------------------- */
.process-section {
    background-color: var(--color-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    background-color: var(--color-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* ---------------------------------------------------- */
/* TESTIMONIALS SECTION */
/* ---------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    position: relative;
    padding-top: 2rem;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: var(--color-secondary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-author {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.testimonial-author p {
    font-size: 1.4rem;
    color: var(--color-gray-dark);
    margin-bottom: 0;
}

/* ---------------------------------------------------- */
/* CONTACT SECTION */
/* ---------------------------------------------------- */
.contact-section {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.contact-section h2 {
    color: var(--color-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--color-light);
}

.contact-info a {
    color: var(--color-accent);
}

.contact-info a:hover {
    color: var(--color-secondary);
}

.contact-details {
    margin-top: 3rem;
}

.contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    color: var(--color-dark);
    box-shadow: var(--shadow-lg);
}

.form-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
    font-weight: 500;
}

.form-field {
    margin-bottom: 2rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1.6rem;
    transition: border-color var(--transition-speed) ease;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-checkbox {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    margin-top: 0.4rem;
    margin-right: 1rem;
}

.form-checkbox label {
    flex-grow: 1;
    font-size: 1.4rem;
}

.form-checkbox a {
    text-decoration: underline;
}

.form-submit {
    margin-top: 3rem;
}

.form-submit button {
    width: 100%;
}

/* ---------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-about {
    max-width: 350px;
}

.footer-about p {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.footer-about svg {
    display: block;
}

.footer-contact h3,
.footer-links h3,
.footer-legal h3 {
    color: var(--color-light);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
    color: var(--color-light);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 1rem;
}

.copyright {
    border-top: 1px solid rgba(240, 235, 216, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.8;
}

/* ---------------------------------------------------- */
/* THANK YOU PAGE */
/* ---------------------------------------------------- */
.thank-you-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18rem 0 10rem;
    background-color: var(--color-light);
}

.thank-you-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.thank-you-content svg {
    margin: 0 auto 3rem;
}

.thank-you-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.thank-you-actions {
    margin-top: 4rem;
}

/* ---------------------------------------------------- */
/* LEGAL PAGES */
/* ---------------------------------------------------- */
.legal-section {
    padding: 18rem 0 10rem;
    background-color: var(--color-light);
}

.legal-content {
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.legal-content h2 {
    font-size: 2.4rem;
    text-align: left;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.legal-content h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 1rem;
}

/* ---------------------------------------------------- */
/* COOKIE BANNER */
/* ---------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 400px;
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.cookie-content {
    font-size: 1.4rem;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-content button {
    width: 100%;
}

/* ---------------------------------------------------- */
/* RESPONSIVE STYLES */
/* ---------------------------------------------------- */
@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero-section .container,
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .advantages-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem 1rem;
    }
    
    .legal-content {
        padding: 3rem;
    }
    
    :root {
        --header-height: 120px; /* Ajuster la hauteur de l'en-tête pour mobile */
    }
    
    /* Ajuster le padding pour les sections avec ID en mobile */
    section[id] {
        padding-top: 8rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-section {
        padding: 15rem 0 6rem;
    }
    
    .legal-section {
        padding: 15rem 0 6rem;
    }
    
    .legal-content {
        padding: 2.5rem;
    }
    
    .cookie-banner {
        left: 1rem;
        right: 1rem;
    }
    
    :root {
        --header-height: 140px; /* Ajuster la hauteur de l'en-tête pour petits écrans */
    }
} 