/* 
 * Solutions Comptables Modernes
 * Main Stylesheet
 * Color Palette:
 * - Background: #181818 (dark graphite)
 * - Accent: #F9A826 (amber)
 * - Secondary Accent: #26A69A (teal)
 * - Text: #F5F5F5 (light)
 * - Headings: #E0E0E0
 */

/* --- BASE STYLES --- */
:root {
    --bg-color: #181818;
    --accent: #F9A826;
    --secondary-accent: #26A69A;
    --text-color: #F5F5F5;
    --heading-color: #E0E0E0;
    --shadow-color: rgba(0,0,0,0.4);
    --header-height: 80px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 40px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-accent);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent);
    color: var(--bg-color);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--accent);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}

.btn-secondary {
    background-color: var(--secondary-accent);
    border-color: var(--secondary-accent);
    color: var(--bg-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-accent);
}

/* --- HEADER --- */
header {
    background-color: rgba(24, 24, 24, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    backdrop-filter: blur(5px);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.logo svg {
    margin-right: 10px;
}

.desktop-nav ul {
    display: flex;
    gap: 20px;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a.btn {
    color: var(--bg-color);
}

.desktop-nav a.btn::after {
    display: none;
}

.desktop-nav a.btn:hover {
    color: var(--accent);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    display: none;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    width: 30px;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

#menu-toggle:checked ~ .menu-icon span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .menu-icon span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 4px 10px var(--shadow-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#menu-toggle:checked ~ .mobile-nav {
    max-height: 400px;
}

.mobile-nav ul {
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- ABOUT SECTION --- */
.about {
    background-color: rgba(255, 255, 255, 0.03);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.about-image img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.about-text {
    flex: 1;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--bg-color);
}

/* --- BENEFITS SECTION --- */
.benefits {
    background-color: rgba(255, 255, 255, 0.03);
}

.benefits-list {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.benefit-icon {
    background-color: var(--secondary-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-accent);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-position {
    color: var(--accent);
    font-size: 0.9rem;
}

/* --- FAQ SECTION --- */
.faq-accordion {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.faq-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.faq-item:hover .faq-image img {
    transform: scale(1.05);
}

.faq-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 20px;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--heading-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.faq-arrow::before,
.faq-arrow::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
    transition: var(--transition);
}

.faq-arrow::before {
    width: 2px;
    height: 10px;
    transform: rotate(90deg);
}

.faq-arrow::after {
    width: 10px;
    height: 2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-checkbox:checked + .faq-question {
    background-color: rgba(249, 168, 38, 0.1);
}

.faq-checkbox:checked + .faq-question .faq-arrow {
    transform: rotate(180deg);
}

.faq-checkbox:checked + .faq-question .faq-arrow::before {
    transform: rotate(0);
    opacity: 0;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 20px;
}

/* FAQ section responsive adjustments */
@media (max-width: 992px) {
    .faq-accordion {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .faq-accordion {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .faq-image {
        height: 150px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }
}

/* --- CONTACT FORM --- */
.contact {
    background-color: rgba(255, 255, 255, 0.03);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--accent) 100%);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.contact-form h3 {
    color: var(--bg-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 45px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    color: var(--bg-color);
    font-size: 0.9rem;
}

.checkbox-group label a {
    color: var(--bg-color);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-group label a:hover {
    color: var(--text-color);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: rgba(24, 24, 24, 0.8);
}

.contact-info {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-color);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    margin-bottom: 5px;
}

.contact-map {
    margin-top: 30px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- FOOTER --- */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    grid-column: 1 / -1;
}

.footer-info .logo {
    margin-bottom: 15px;
}

.footer-info .description {
    max-width: 500px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    grid-column: 1 / -1;
}

.footer-nav h4,
.footer-legal h4,
.footer-contact h4 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-nav h4::after,
.footer-legal h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-nav ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-legal a {
    color: var(--text-color);
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--accent);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(24, 24, 24, 0.95);
    padding: 20px;
    box-shadow: 0 -5px 20px var(--shadow-color);
    z-index: 9999;
    transition: bottom 0.5s ease;
    backdrop-filter: blur(5px);
}

.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: 5px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* --- POLICY PAGES --- */
.policy-page {
    padding: 120px 0 60px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 40px;
}

.policy-container h1 {
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.policy-section h3 {
    font-size: 1.35rem;
    margin: 20px 0 10px;
}

.policy-section p,
.policy-section ul {
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
    list-style-type: disc;
}

.policy-section ul li {
    margin-bottom: 8px;
}

/* --- THANK YOU PAGE --- */
.thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 100px);
    padding: 100px 20px 20px;
}

.thank-you h1 {
    margin-bottom: 20px;
}

.thank-you p {
    max-width: 600px;
    margin-bottom: 30px;
}

.check-icon {
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.check-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--bg-color);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.7rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.7rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
} 