/* 
* ComptaClaire - Styles
* CSS for the ComptaClaire accounting services website
*/

/* ===== Base Styles ===== */
:root {
    /* Color palette */
    --color-bg-start: #0f2027;
    --color-bg-end: #2c5364;
    --color-accent-amber: #f9a825;
    --color-accent-red: #f44336;
    --color-white: #ffffff;
    --color-text: #f1f1f1;
    --font-main: 'Arial', sans-serif;
    
    /* Animation timing */
    --transition-speed: 0.3s;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%) fixed;
    padding-top: 5rem;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-accent-amber);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 6rem 0;
}

/* ===== Utility Classes ===== */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent-amber);
    color: var(--color-bg-start);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-accent-red);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== Header & Navigation ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 32, 39, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 180px;
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav li {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-cta {
    color: var(--color-accent-amber);
    font-weight: 700;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: rgba(15, 32, 39, 0.95);
    border: 1px solid var(--color-accent-amber);
    padding: 1rem;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    max-width: 400px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-more {
    color: var(--color-text);
    font-size: 0.9rem;
}

.cookie-accept {
    background-color: var(--color-accent-amber);
    border: none;
    color: var(--color-bg-start);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color var(--transition-speed) ease;
}

.cookie-accept:hover {
    background-color: var(--color-accent-red);
    color: var(--color-white);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== About Section ===== */
.about-section {
    background-color: rgba(44, 83, 100, 0.3);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1.5;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(15, 32, 39, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 1.5rem;
    width: 100%;
    height: 180px;
    border-radius: 5px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Advantages Section ===== */
.advantages-section {
    background-color: rgba(44, 83, 100, 0.3);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: var(--color-bg-start);
}

/* ===== Testimonials Section ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(15, 32, 39, 0.5);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
    color: var(--color-accent-amber);
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: rgba(15, 32, 39, 0.7);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: rgba(44, 83, 100, 0.3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    background-color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-bg-start);
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.submit-button {
    background-color: var(--color-accent-amber);
    color: var(--color-bg-start);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color var(--transition-speed) ease;
}

.submit-button:hover {
    background-color: var(--color-accent-red);
    color: var(--color-white);
}

.form-error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--color-accent-red);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.form-error-message ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.form-error-message p {
    margin-bottom: 0;
}

/* ===== Footer ===== */
.main-footer {
    background-color: rgba(15, 32, 39, 0.9);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content h3 {
    color: var(--color-accent-amber);
    margin-bottom: 1.5rem;
}

.footer-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Custom Icons for Advantages ===== */
.icon-experience::before {
    content: "★";
}

.icon-personalized::before {
    content: "✓";
}

.icon-support::before {
    content: "♦";
}

.icon-innovation::before {
    content: "❖";
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    
    .main-header {
        padding: 0.4rem 0;
    }
    
    .logo-svg {
        width: 160px;
        height: 35px;
    }
    .services-grid, .testimonials-grid{
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        display: none;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .main-header {
        padding: 0.3rem 0;
    }
    
    .logo-svg {
        width: 140px;
        height: 32px;
    }
    
    .main-nav ul {
        gap: 0.3rem;
    }
    
    .main-nav li {
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
} 