/**
 * Comptabilité Nouvelle Vague - Styles principaux
 * Palette: #FCF6F5 (fond), #4F3B78 (accent), #F67280 (boutons), #355C7D (titres), #2A2A2A (texte)
 */

/* ======= RESET ET BASE ======= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FCF6F5;
    color: #2A2A2A;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #4F3B78;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F67280;
}

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #355C7D;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.legal-text h2{
    text-align: left;
}
.legal-text h2::after{
    left: 0;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 46%;
    width: 60px;
    height: 3px;
    background-color: #F67280;
}

h3 {
    font-size: 1.5rem;
}

p, ul, ol {
    margin-bottom: 1.2rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

/* ======= ANIMATIONS ======= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ======= HEADER ET NAVIGATION ======= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #4F3B78;
}

.logo-svg {
    margin-right: 0.5rem;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.menu-icon-line, .menu-icon::before, .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #4F3B78;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: 0;
}

.menu-icon-line {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon::after {
    bottom: 0;
}

.menu-toggle:checked + .menu-icon .menu-icon-line {
    opacity: 0;
}

.menu-toggle:checked + .menu-icon::before {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle:checked + .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.nav-links a.active, 
.nav-links a:hover {
    color: #F67280;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F67280;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-link {
    background-color: #F67280;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-link:hover {
    background-color: #e0636f;
}

.cta-link::after {
    display: none;
}

/* ======= COOKIE BANNER ======= */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: #4F3B78;
    color: white;
    padding: 1rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
    opacity: 1;
}

.cookie-banner p {
    margin: 0 1rem 0 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

#accept-cookies {
    background-color: #F67280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

#accept-cookies:hover {
    background-color: #e0636f;
}

/* ======= HERO SECTION ======= */
.hero-section {
    background: linear-gradient(135deg, #FCF6F5, #FDEDEC);
    padding: 5rem 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    animation: fadeIn 1s ease;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
    animation: slideIn 1s ease 0.3s both;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #355C7D;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4F3B78;
}

.cta-button {
    display: inline-block;
    background-color: #F67280;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(246, 114, 128, 0.2);
}

.cta-button:hover {
    background-color: #e0636f;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(246, 114, 128, 0.3);
}

/* ======= ABOUT SECTION ======= */
.about-section {
    background-color: #fff;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1.2;
}

.about-image {
    flex: 0.8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: #F67280;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ======= ADVANTAGES SECTION ======= */
.advantages-section {
    background: linear-gradient(to bottom, #FCF6F5, #FDEDEC);
    text-align: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: #355C7D;
}

/* ======= SERVICES SECTION ======= */
.services-section {
    background-color: #fff;
    text-align: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(to bottom, #FCF6F5, #FDEDEC);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-features {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    list-style-type: none;
    padding-left: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F67280;
}

.service-cta {
    display: inline-block;
    background-color: #F67280;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    margin-top: auto;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.service-cta:hover {
    background-color: #e0636f;
    color: white;
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-section {
    background: linear-gradient(to bottom, #FCF6F5, #FDEDEC);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    flex-direction: column;

    transition: transform 0.5s ease;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    flex: 0 0 100%;
    max-width: 100%;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1.5rem;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 2rem;
    color: #F67280;
    position: absolute;
}

.testimonial-quote::before {
    left: 0;
    top: -10px;
}

.testimonial-quote::after {
    right: 0;
    bottom: -20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4F3B78;
    margin-right: 1rem;
}

.author-name {
    font-weight: bold;
    color: #355C7D;
}

.author-company {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #F67280;
}

/* ======= FAQ SECTION ======= */
.faq-section {
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #F67280;
    transition: transform 0.3s ease;
    user-select: none;
    width: 24px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ======= FORM SECTION ======= */
.form-section {
    background: linear-gradient(to bottom, #FCF6F5, #FDEDEC);
}

.form-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form {
    flex: 1;
}

.form-errors {
    background-color: #fff0f0;
    border-left: 4px solid #F67280;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-message {
    color: #e0636f;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

.form-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #355C7D;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4F3B78;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-right: 0.5rem;
    margin-top: 5px;
    width: auto;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.submit-button {
    background-color: #F67280;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.submit-button:hover {
    background-color: #e0636f;
}

/* ======= CONTACT SECTION ======= */
.contact-section {
    background-color: #fff;
}

.contact-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-map {
    flex: 1;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    background-color: #FCF6F5;
    padding: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-hours {
    grid-column: span 2;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.day {
    font-weight: 600;
}

/* ======= FOOTER ======= */
.site-footer {
    background-color: #355C7D;
    color: #FCF6F5;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.footer-contact-item svg {
    margin-right: 0.5rem;
}

.footer-contact-item a {
    color: #FCF6F5;
}

.footer-nav {
    flex: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-nav-section {
    min-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-nav-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-nav-section ul {
    list-style: none;
    padding: 0;
}

.footer-nav-section li {
    margin-bottom: 0.5rem;
}

.footer-nav-section a {
    color: #FCF6F5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-disclaimer a {
    color: #FCF6F5;
    text-decoration: underline;
}

/* ======= PAGE BANNER (SECONDARY PAGES) ======= */
.page-banner {
    background: linear-gradient(135deg, #4F3B78, #355C7D);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.page-banner h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #FCF6F5;
    opacity: 0.8;
}

.current-page {
    opacity: 1;
}

/* ======= LEGAL PAGES ======= */
.legal-section {
    padding: 3rem 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-text h2 {
    margin-top: 2rem;
}

.back-to-home {
    margin-top: 3rem;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background-color: #4F3B78;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #3f2f60;
    color: white;
}

/* ======= THANK YOU PAGE ======= */
.thank-you-section {
    text-align: center;
    padding: 14rem 0;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin: 0 auto 2rem;
    animation: pulse 2s infinite;
}

.thank-you-message {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.next-steps {
    text-align: left;
    margin: 2rem 0 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    display: inline-block;
    background-color: #F67280;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e0636f;
    color: white;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .hero-section .container,
    .about-content,
    .form-container,
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-image,
    .about-image,
    .form-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-hours {
        grid-column: 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-toggle:checked ~ .nav-links {
        max-height: 300px;
        padding: 1rem 0;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 1rem;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-section {
        flex-basis: 45%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .site-header {
        padding: 0.3rem 0;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .logo-svg {
        width: 24px;
        height: 24px;
    }
    
    .menu-icon {
        width: 24px;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    
    .time {
        margin-bottom: 0.5rem;
    }
    
    .footer-nav-section {
        flex-basis: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner p {
        margin: 0 0 1rem;
    }
} 