/* 
 * Main stylesheet for Domain - Expert en audit financier
 * Colors:
 * - Main background: #FAFAF4 (milky white)
 * - Accents: #FF6F61 (warm coral), #004E64 (deep emerald), #FFA62B (amber)
 * - Texts: #1C1C1C (dark gray)
 * - Buttons/links: Gradients from #FF6F61 to #FFA62B
 */

/* === Base styles === */
:root {
    --color-background: #FAFAF4;
    --color-accent1: #FF6F61;
    --color-accent2: #004E64;
    --color-accent3: #FFA62B;
    --color-text: #1C1C1C;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --section-padding: 4rem 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Height of the header plus extra space */
}

section {
    padding: var(--section-padding);
}

section:before {
    content: '';
    display: block;
    height: 90px; /* Height of the header plus some spacing */
    margin-top: -90px;
    visibility: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--color-accent2);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent1);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-accent2);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--color-accent1), var(--color-accent3));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
}

.section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(to right, var(--color-accent1), var(--color-accent3));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

/* === Header styles === */
.site-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    flex: 0 0 auto;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, var(--color-accent1), var(--color-accent3));
    transition: var(--transition);
}

.main-nav a:hover:after {
    width: 100%;
}

.header-phone a {
    font-weight: 600;
    color: var(--color-accent1);
}

.menu-toggle {
    display: none;
}

/* === Hero section === */
.hero {
    background: linear-gradient(to right, rgba(0, 78, 100, 0.9), rgba(0, 78, 100, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* === About section === */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    padding: 1.5rem;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* === Services section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

/* === Why us section === */
.why-us {
    background-color: var(--color-accent2);
    color: white;
}

.why-us h2 {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-accent3);
}

/* === Testimonials section === */
.testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    padding: 1.5rem;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

/* === Contact form section === */
.contact {
    background: linear-gradient(to right, rgba(255, 111, 97, 0.1), rgba(255, 166, 43, 0.1));
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* === FAQ section === */
.faq {
    background-color: white;
}

.faq .container {
    max-width: 800px;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-question.open:after {
    content: '−';
}

.faq-answer {
    padding-bottom: 1.5rem;
    display: none;
}

/* === Footer styles === */
.site-footer {
    background-color: var(--color-accent2);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background: linear-gradient(to right, var(--color-accent1), var(--color-accent3));
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: var(--color-accent3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* === Policy pages === */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-container h1 {
    margin-bottom: 2rem;
}

.policy-container h2 {
    margin-top: 2rem;
}

/* === Cookie consent === */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* === Thank you page === */
.thank-you {
    text-align: center;
    padding: 5rem 1rem;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid var(--color-accent1);
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--color-accent1);
    margin-bottom: 2rem;
}

/* === Responsive styles === */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-content {
        height: 70px;
    }
    
    .header-phone {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-button {
        font-size: 1.5rem;
        padding: 0.5rem;
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.menu-open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .main-nav li {
        margin-left: 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .hero {
        min-height: 400px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 1rem;
    }
    
    .service-card, .testimonial, .about-card {
        margin-bottom: 1.5rem;
    }
}
