/* 
* Main stylesheet for CompteExpert
* A modern, responsive accounting services website
*/

/* ===== Variables ===== */
:root {
    --primary-bg: #f5f0eb; /* Ceramic shade */
    --secondary-bg: #fff7e6; /* Warm light yellow-pink */
    --text-color: #2a2a2a; /* Graphite */
    --accent-orange: #ff4e00; /* Mandarin */
    --accent-teal: #009688; /* Turquoise-green */
    --accent-gold: #f3b61f; /* Golden lemon */
    --max-width: 1280px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
}

.btn-outline:hover {
    background: var(--accent-teal);
    color: white;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* ===== Header ===== */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-svg {
    margin-right: 10px;
}

.logo span {
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav .nav-menu li a {
    color: var(--text-color);
    position: relative;
    font-weight: 500;
}

.main-nav .nav-menu li a:hover {
    color: var(--accent-orange);
}

.main-nav .nav-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.main-nav .nav-menu li a:hover:after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    padding: 8px 20px;
    border-radius: var(--border-radius);
    color: white !important;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* ===== Hero Section ===== */
.hero {
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    /* Suppression des animations */
    opacity: 1;
    transform: translateY(0);
}

.hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top right, var(--primary-bg) 49%, transparent 51%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 550px;
    box-shadow: var(--shadow-md);
    /* Suppression de l'animation float */
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.hero h1 span {
    color: var(--accent-orange);
    position: relative;
    display: inline-block;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: var(--accent-gold);
    bottom: 5px;
    left: 0;
    z-index: -1;
    opacity: 0.5;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: #666;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
}

.service-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.service-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
}

.service-price {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
    font-weight: 600;
    color: var(--accent-teal);
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    width: 100%;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 30px;
    text-align: left;
}

.about-text h2:after {
    left: 40px;
    transform: none;
}

.about-text p {
    margin-bottom: 20px;
    text-align: left;
}

/* ===== Benefits Section ===== */
.benefits {
    padding: 100px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.benefit-title {
    margin-bottom: 15px;
    color: var(--accent-teal);
}

.benefits-image {
    margin-top: 50px;
    text-align: center;
}

.benefits-image img {
    max-width: 500px;
    width: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.1;
    color: var(--accent-orange);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 0;
    text-align: left;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: left;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.contact-details h4 {
    margin-bottom: 5px;
    text-align: left;
}

.contact-details p, .contact-details a {
    color: #666;
    margin-bottom: 0;
    text-align: left;
}

.contact-image {
    margin-top: 30px;
}

.contact-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* ===== Form ===== */
.contact-form {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232a2a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-check-label {
    font-size: 0.9rem;
}

.form-check-label a {
    font-weight: 500;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: white;
    padding: 80px 0 20px;
    position: relative;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info {
    grid-column: 1 / span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.company-description {
    color: #666;
    max-width: 400px;
    margin-bottom: 20px;
}

.footer-contact h3,
.footer-links h3,
.footer-legal h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.footer-contact h3:after,
.footer-links h3:after,
.footer-legal h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-teal));
    bottom: -10px;
    left: 0;
    transform: none;
}

address {
    font-style: normal;
    color: #666;
}

address p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

address i {
    margin-right: 10px;
    color: var(--accent-teal);
}

.footer-nav ul,
.legal-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.legal-nav a {
    color: #666;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ===== Icons ===== */
.icon-location:before {
    content: "📍";
}

.icon-phone:before {
    content: "📞";
}

.icon-email:before {
    content: "✉️";
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 100px 0;
    background-color: white;
    min-height: 70vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.legal-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-content h2:after {
    left: 0;
    transform: none;
    width: 60px;
}

.legal-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    list-style-type: disc;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    text-align: left;
}

/* ===== Thank You Page ===== */
.thank-you {
    padding: 150px 0;
    text-align: center;
    background: var(--secondary-bg);
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(255, 78, 0, 0.1), rgba(0, 150, 136, 0.1));
    margin: 0 auto 2rem;
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        max-width: none;
        text-align: center;
    }
    
    .hero h1 {
        text-align: center;
    }
    
    .hero p {
        text-align: center;
    }
    
    .hero h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
    }
    
    .about-text h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 100;
        gap: 20px;
        align-items: flex-start;
    }
    
    .main-nav .nav-menu.active {
        right: 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid, 
    .benefits-grid, 
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .legal-page {
        padding: 60px 0;
    }
} 