/* Style principal pour domain.com - Services comptables */

/* Variables et palette de couleurs */
:root {
    --color-primary: #1ABC9C;
    --color-secondary: #6C5CE7;
    --color-accent-1: #FF6B6B;
    --color-accent-2: #FFE066;
    --color-text-light: #FFFFFF;
    --color-text-dark: #2C3E50;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text-dark);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    min-height: 100vh;
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-1);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent-1);
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--color-accent-1);
    color: var(--color-text-light);
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e85c5c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header et Navigation */
header {
    background: rgba(44, 62, 80, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-accent-2);
}

/* Menu Mobile avec CSS uniquement */
#mobile-menu-toggle {
    display: none;
}

.mobile-menu-label {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

@media screen and (max-width: 768px) {
    .mobile-menu-label {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        flex-direction: column;
        background-color: var(--color-text-dark);
        transition: left 0.3s ease;
        align-items: center;
        padding-top: 3rem;
    }
    
    #mobile-menu-toggle:checked ~ .nav-links {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
}

/* Section Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.hero::before {
    content: '';
    background: url('../img/PIMrU.jpg') no-repeat center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-content {
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

/* Section À propos */
.about {
    background-color: var(--color-text-light);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Services */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

/* Section Avantages */
.advantages {
    background-color: var(--color-text-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Section Confiance */
.trust {
    background-color: #f8f9fa;
}

.certificates {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.certificate {
    background-color: var(--color-text-light);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Section Formulaire de commande */
.order-form {
    background-color: var(--color-text-light);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

/* Section Témoignages */
.testimonials {
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--color-text-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Section FAQ avec CSS uniquement */
.faq {
    background-color: var(--color-text-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: block;
    padding: 1.5rem;
    background-color: #f8f9fa;
    position: relative;
    cursor: pointer;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background-color: var(--color-text-light);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

input[type="checkbox"] {
    display: none;
}

form input[type="checkbox"] {
    display: block;
}

input[type="checkbox"]:checked ~ .faq-question::after {
    content: '-';
}

input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 300px;
    padding: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-accent-1);
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 10px;
    color: var(--color-accent-1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-accent-1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* Page de politique */
.policy-page {
    padding: 8rem 2rem 5rem;
    background-color: var(--color-text-light);
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--color-primary);
    padding: 2rem;
    border-radius: 10px;
}

/* Page Merci */
.merci-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8rem auto 5rem;
    border: 2px solid var(--color-primary);
    max-width: 800px;
    padding: 3rem;
    border-radius: 10px;
    background-color: var(--color-text-light);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 1.5rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
    margin-right: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
}

.btn-decline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-text-light);
}

.btn-accept:hover {
    background-color: #17a589;
}

.btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Favicon SVG style */
.favicon-svg {
    width: 100%;
    max-width: 32px;
    height: auto;
}
