/* 
 * domain - Services Comptables Professionnels
 * Styles for modern, responsive accounting services website
 */

/* --- Base Styles --- */
:root {
    /* Color palette */
    --indigo: #3E2C5F;
    --coral: #FF6B4A;
    --mint: #D1F2EB;
    --white: #FFFFFF;
    --graphite: #1F1F1F;
    --light-gray: #F5F5F5;
    --gray: #CCCCCC;
    --dark-gray: #666666;
    
    /* Font sizes */
    --fs-xl: 3rem;
    --fs-lg: 2.25rem;
    --fs-md: 1.5rem;
    --fs-sm: 1.125rem;
    --fs-xs: 1rem;
    --fs-xxs: 0.875rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--graphite);
    background-color: var(--white);
    width: 100%;
    position: relative;
}

/* --- Container and Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-container {
    padding: 80px 20px;
}

@media screen and (max-width: 768px) {
    .section-container {
        padding: 50px 15px;
    }
    
    .section-header h2 {
        font-size: var(--fs-md);
    }
    
    .section-header p {
        font-size: var(--fs-xs);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--indigo);
    font-size: var(--fs-lg);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 60px;
    background-color: var(--coral);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--dark-gray);
    font-size: var(--fs-sm);
    max-width: 600px;
    margin: 0 auto;
}

/* Alternating section backgrounds */
.hero-section {
    background-color: var(--indigo);
    color: var(--white);
}

.services-section {
    background-color: var(--white);
}

.advantages-section {
    background-color: var(--mint);
}

.form-section {
    background-color: var(--white);
}

.faq-section {
    background-color: var(--light-gray);
}

.contact-section {
    background-color: var(--white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--indigo);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--coral);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--indigo);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--indigo);
    border: 2px solid var(--indigo);
}

.btn-secondary:hover {
    background-color: var(--indigo);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 15px 40px;
    font-size: var(--fs-sm);
}

/* --- Header --- */
.main-header {
    background-color: var(--indigo);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: var(--fs-md);
    font-weight: 700;
}

.logo svg {
    margin-right: 10px;
}

.logo span {
    letter-spacing: 1px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.nav-list a {
    color: var(--white);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--coral);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.nav-list a.btn-primary {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--coral);
}

.nav-list a.btn-primary::after {
    display: none;
}

/* Responsive Navigation */
@media screen and (max-width: 992px) {
    .menu-toggle {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
    
    .menu-icon {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--indigo);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 50px 0;
    }
    
    .menu-toggle:checked ~ .nav-list {
        right: 0;
    }
    
    .nav-list li {
        margin: 20px 0;
    }
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--indigo);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-title {
    font-size: var(--fs-xl);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: var(--fs-sm);
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
    animation: fadeIn 1.5s ease;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
    }
}

/* --- Services Section --- */
.services-section {
    background-color: var(--white);
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--coral);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.service-card h3 {
    color: var(--indigo);
    margin: 20px 0 15px;
    font-size: var(--fs-md);
}

.service-card p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--coral);
    position: relative;
    padding-right: 20px;
}

.service-link::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* --- Advantages Section --- */
.advantages-section {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    border: 2px solid var(--coral);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    margin-right: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.3);
    transition: transform 0.3s ease;
}

.advantage-item:hover .icon-circle {
    transform: scale(1.1);
}

.advantage-content h3 {
    color: var(--indigo);
    font-size: var(--fs-sm);
    margin-bottom: 10px;
}

.advantage-content p {
    color: var(--dark-gray);
    font-size: var(--fs-xs);
}

@media screen and (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        margin-bottom: 30px;
    }
}

/* --- Testimonial Section --- */
.testimonial-section {
    background-color: var(--indigo);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-size: 8rem;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--coral);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: var(--fs-md);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author strong {
    color: var(--coral);
}

/* --- Form Section --- */
.form-section {
    background-color: var(--white);
    padding: 100px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--indigo);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: var(--fs-xs);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    outline: none;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.agreements {
    border-top: 1px solid var(--gray);
    padding-top: 20px;
    margin-top: 20px;
}

.btn-submit {
    margin-top: 20px;
    width: 100%;
}

.error-message {
    background-color: #ffebee;
    color: #b71c1c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #f44336;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: var(--indigo);
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question {
    background-color: var(--mint);
}

.faq-item[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--dark-gray);
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--white);
    padding: 100px 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info {
    max-width: 800px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media screen and (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 15px;
        margin-bottom: 15px;
    }
}

.contact-item {
    border: 2px solid var(--coral);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: var(--indigo);
    font-size: var(--fs-sm);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.contact-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background-color: var(--coral);
}

.contact-item a {
    color: var(--coral);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--indigo);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--indigo);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: var(--fs-sm);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background-color: var(--coral);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-xxs);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-xxs);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--coral);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-xxs);
}

/* --- Thank You Page --- */
.thank-you-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--white);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.thank-icon {
    width: 80px;
    height: 80px;
    background-color: var(--mint);
    color: var(--coral);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

.thank-you-content h1 {
    color: var(--indigo);
    margin-bottom: 20px;
}

.thank-you-content p {
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: var(--fs-xxs);
}

#accept-cookies {
    background-color: var(--coral);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#accept-cookies:hover {
    background-color: var(--indigo);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.animated-image {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}

/* --- Policy Pages --- */
.policy-section {
    padding: 80px 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    color: var(--indigo);
    font-size: var(--fs-lg);
    margin-bottom: 30px;
}

.policy-container h2 {
    color: var(--indigo);
    font-size: var(--fs-md);
    margin: 30px 0 15px;
}

.policy-container p,
.policy-container li {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-container ul,
.policy-container ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-container li {
    margin-bottom: 10px;
}

.last-updated {
    font-style: italic;
    color: var(--dark-gray);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
} 