/* 
 * Style pour domain.com - Services comptables
 * Palettes de couleurs:
 * - Fond principal: #0E3B2E (vert émeraude profond)
 * - Accent: #FF6F4F (orange corail)
 * - Complémentaire: #E6C88A (beige doré)
 * - Texte: #F5F1E8 (beige clair)
 * - Fond des blocs: #1C1C1C (graphite)
 */

/* Réinitialisation et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    background-color: #0E3B2E;
    color: #F5F1E8;
    line-height: 1.6;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

section[id] {
    scroll-margin-top: 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    margin-bottom: 1rem;
    color: #E6C88A;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #FF6F4F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E6C88A;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #FF6F4F;
    color: #F5F1E8;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #E6C88A;
    color: #1C1C1C;
}

/* Header */
header {
    background-color: #1C1C1C;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #F5F1E8;
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #F5F1E8;
    font-weight: 600;
    position: relative;
}

nav a:hover {
    color: #FF6F4F;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6F4F;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Menu mobile */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

/* Sections communes */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #1C1C1C;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #FF6F4F;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 59, 46, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;

}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #F5F1E8;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #E6C88A;
}

/* À propos */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Avantages */
.advantages {
    padding: 4rem 0;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item h3 {
    color: #FF6F4F;
    margin-bottom: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #1C1C1C;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
    flex: 1;
}

.service-content h3 {
    color: #E6C88A;
    margin-bottom: 1rem;
}

/* Formulaire */
.form-section {
    padding: 4rem 0;
    background-color: #1C1C1C;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #212121, #2c2c2c);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E6C88A;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: #F5F1E8;
    border-radius: 5px;
}

.form-select option {
    background-color: #FFFFFF;
    color: #1C1C1C;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

/* Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(230, 200, 138, 0.2);
}

.testimonial-author {
    font-weight: bold;
    color: #E6C88A;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #1C1C1C;
    padding: 1rem;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: #E6C88A;
    display: block;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    background-color: #2a2a2a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 1rem;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-checkbox:checked ~ .faq-question::after {
    transform: rotate(45deg);
}

/* Contact */
.contact-section {
    background-color: #1C1C1C;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: #FF6F4F;
    font-size: 1.2rem;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #1C1C1C;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #E6C88A;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 241, 232, 0.1);
}

/* Politique pages */
.policy-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #1C1C1C;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.policy-title {
    border-bottom: 2px solid #FF6F4F;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Merci page */
.merci-container {
    max-width: 600px;
    margin: 8rem auto 5rem;
    padding: 3rem;
    text-align: center;
    background-color: #1C1C1C;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #E6C88A;
}

.merci-icon {
    font-size: 4rem;
    color: #FF6F4F;
    margin-bottom: 1.5rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #1C1C1C;
    color: #F5F1E8;
    padding: 1.5rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-text {
    margin-right: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .menu-icon {
        display: block;
        font-size: 1.5rem;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1C1C1C;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: none;
    }

    .menu-toggle:checked ~ nav {
        max-height: 300px;
    }

    .about-content {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .policy-container, .form-container, .merci-container {
        padding: 1.5rem;
    }
}
