/* 
 * ComptaFrance - Styles CSS
 * Couleurs :
 * - Primaire: #FF6F3C (orange)
 * - Secondaire: #A4D4AE (pistache)
 * - Accent: #2D2D2D (gris charbon) et #F7E8D0 (sable clair)
 * - Fond: #FFF9F0 (beige crème)
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2D2D2D;
    background-color: #FFF9F0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF6F3C;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #FF6F3C;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #A4D4AE;
}

section {
    padding: 120px 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #FF6F3C;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 111, 60, 0.2);
}

.btn-primary:hover {
    background-color: #ff8c63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 60, 0.3);
}

.btn-secondary {
    background-color: #A4D4AE;
    color: #2D2D2D;
    box-shadow: 0 4px 12px rgba(164, 212, 174, 0.2);
}

.btn-secondary:hover {
    background-color: #b8e0c1;
    color: #2D2D2D;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(164, 212, 174, 0.3);
}

/* Header */
header {
    background-color: rgba(255, 249, 240, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 249, 240, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2D2D2D;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #2D2D2D;
    font-weight: 500;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #FF6F3C;
    bottom: -4px;
    left: 0;
    transition: all 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2D2D2D;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: #A4D4AE;
    color: #2D2D2D;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/w6nkx6.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #2D2D2D;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background-color: #FFF9F0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.rounded-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: #F7E8D0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
}

.service-card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.service-card .btn {
    margin: 0 20px 20px;
}

/* Why Us Section */
.why-us {
    background-color: #FFF9F0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: #F7E8D0;
    border-radius: 50%;
    color: #FF6F3C;
}

.advantage-icon svg {
    width: 35px;
    height: 35px;
}

/* Stats Section */
.stats {
    background-color: #A4D4AE;
    text-align: center;
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2rem;
    color: #2D2D2D;
}

/* Testimonials Section */
.testimonials {
    background-color: #FFF9F0;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
}

.testimonial-item {
    min-width: 100%;
    transition: all 0.5s ease;
    padding: 0 15px;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 30px;
    height: 15px;
    background-color: white;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #F7E8D0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #FF6F3C;
    transform: scale(1.2);
}

/* Contact Form Section */
.contact {
    background-color: #F7E8D0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: #FF6F3C;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #F7E8D0;
    border-radius: 8px;
    background-color: #FFF9F0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #FF6F3C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 60, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-errors {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #FF6F3C;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.form-errors p {
    color: #d63031;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-errors p:last-child {
    margin-bottom: 0;
}

/* Map Section */
.map {
    background-color: #FFF9F0;
    position: relative;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    width: 100%;
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-address {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: -25px auto 0;
    width: auto;
    max-width: 90%;
    position: relative;
    z-index: 10;
}

.map-address svg {
    width: 24px;
    height: 24px;
    color: #FF6F3C;
    margin-right: 15px;
    flex-shrink: 0;
}

.map-address p {
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .map-container {
        max-height: 350px;
    }
    
    .map-address {
        padding: 10px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .map-address svg {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Footer */
footer {
    background-color: #2D2D2D;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #FF6F3C;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #F7E8D0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FF6F3C;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: #FF6F3C;
    flex-shrink: 0;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(45, 45, 45, 0.95);
    padding: 20px;
    color: white;
    z-index: 1001;
    transition: all 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s 0.2s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s 0.4s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s 0.6s forwards;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.8s forwards;
}

.animate-slide-in-delay {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.8s 0.2s forwards;
}

.animate-slide-in-delay-2 {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.8s 0.4s forwards;
}

.animate-slide-in-delay-3 {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.8s 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: block;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #FFF9F0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px 0;
        transition: all 0.5s ease;
        z-index: 1001;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Overlay when menu is active */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transition: all 0.5s ease;
        z-index: 1000;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content button {
        width: 100%;
    }
} 