/* 
 * ComptaNova - Cabinet de Comptabilité à Paris
 * Main Stylesheet
 */

/* Base Styles & Reset */
:root {
    --background: #f7f4ed;
    --accent: #ff5c57;
    --accent-light: #ff9a8b;
    --heading: #2e2e3a;
    --text: #333333;
    --block-1: #d1f2eb;
    --block-2: #ffeaa7;
    --block-3: #fad390;
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
    --max-width: 1200px;
    --section-spacing: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--heading);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 92, 87, 0.3);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 0.5rem;
}

/* Navigation with checkbox hack */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--heading);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.nav-toggle-label span:nth-child(1) {
    top: 0;
}

.nav-toggle-label span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span:nth-child(3) {
    bottom: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu li a {
    color: var(--heading);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.phone-link {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.phone-link::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5c57' d='M21 16.42v3.536a1 1 0 0 1-.93.998c-.437.03-.794.046-1.07.046-8.837 0-16-7.163-16-16 0-.276.015-.633.046-1.07A1 1 0 0 1 4.044 3H7.58a.5.5 0 0 1 .498.45c.023.23.044.413.064.552A13.901 13.901 0 0 0 9.35 8.003c.095.2.033.439-.147.567l-2.158 1.542a13.047 13.047 0 0 0 6.844 6.844l1.54-2.154a.462.462 0 0 1 .573-.149 13.901 13.901 0 0 0 4 1.205c.139.02.322.042.55.064a.5.5 0 0 1 .449.498z'/%3E%3C/svg%3E");
    background-size: contain;
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--block-1), var(--block-2));
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 190px 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/Remnlb.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.85;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(209, 242, 235, 0.85), rgba(255, 234, 167, 0.85));
    z-index: 1;
}

.hero-shape {
    position: absolute;
    right: -150px;
    bottom: -150px;
    width: 500px;
    height: 500px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin: 10px auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin: 10px auto 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* Advantages Section */
.advantages {
    background-color: white;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.advantages h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.advantage-icon {
    margin-bottom: 1.5rem;
    height: 48px;
    display: flex;
    justify-content: center;
}

/* Services Section */
.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-image {
    margin: -2rem -2rem 1.5rem -2rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    position: relative;
    z-index: 2;
}

.service-card p, .service-card ul {
    position: relative;
    z-index: 2;
}

.service-card ul {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
}

.service-card .btn-secondary {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--heading);
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Partners Section */
.partners h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.partners h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-logo span {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--heading);
}

/* Contact Form Section */
.contact-form {
    background: linear-gradient(135deg, var(--block-3), var(--block-2));
    padding: var(--section-spacing) 0;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--heading);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--heading);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-contact h4,
.footer-legal h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.footer-contact svg {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: white;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: #ccc;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 90%;
    width: 400px;
    z-index: 1000;
    display: none;
}

.cookie-popup p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    flex: 1;
    transition: var(--transition);
}

.btn-cookie {
    background: var(--accent);
    color: white;
}

.btn-cookie-secondary {
    background: #f1f1f1;
    color: var(--text);
}

.btn-cookie:hover {
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-spacing: 4rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        flex: 1 1 100%;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
    }
    
    .nav-toggle-label {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-toggle:checked ~ .nav-menu {
        max-height: 500px;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.8rem 1.5rem;
        text-align: center;
    }
    
    .nav-menu li.cta {
        margin: 1rem 1.5rem;
    }
    
    .nav-menu li.cta a {
        background: var(--accent);
        color: white;
        border-radius: 30px;
    }
    
    .nav-menu li a::after {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .testimonials-grid,
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: 2rem;
    }
    
    .partner-logo {
        flex-basis: calc(50% - 2rem);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 2.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cookie-popup {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

/* Style des messages d'erreur du formulaire */
.form-errors {
    background-color: rgba(255, 92, 87, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
}

.error-message {
    color: #d63031;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
} 