/* 
   Audex Conseil - Main Stylesheet
   Color Palette:
   - Main background: #0f3d3e (dark emerald)
   - Accents: #f5e663 (lemon yellow)
   - Secondary: #f26a4b (coral)
   - Text: #111111 (almost black)
   - Headings: #ffffff (white)
*/

/* === RESET & BASE STYLES === */
:root {
    --color-main: #0f3d3e;
    --color-accent: #f5e663;
    --color-secondary: #f26a4b;
    --color-text: #111111;
    --color-white: #ffffff;
    --font-main: 'Roboto', 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', 'Arial', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #f8f8f8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-main);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.button, button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: var(--color-white);
}

/* === HEADER & NAVIGATION === */
.main-header {
    background-color: var(--color-main);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-list a:hover {
    color: var(--color-accent);
}

.nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-list a:hover:after {
    width: 100%;
}

.nav-list .cta-button {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--color-white);
}

.nav-list .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-list .cta-button:after {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-button {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-main);
        flex-direction: column;
        padding: 20px 0;
        height: 0;
        overflow: hidden;
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-list li {
        margin: 15px 20px;
    }
    
    .menu-toggle:checked ~ .nav-list {
        height: auto;
        opacity: 1;
        visibility: visible;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu-toggle:checked ~ .menu-button .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-button .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-button .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}

/* === MAIN CONTENT SECTIONS === */
main {
    margin-top: 90px;
}

/* Hero Section */
.hero {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    text-align: right;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
}

/* About Section */
.about {
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--color-main);
    margin-bottom: 15px;
}

/* Advantages Section */
.advantages {
    background-color: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: var(--transition);
    background-color: #f8f8f8;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.advantage-item h3 {
    margin-bottom: 15px;
    color: var(--color-main);
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f8f8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(242, 106, 75, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h4 {
    margin-bottom: 5px;
    color: var(--color-main);
}

.client-details p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    background-color: var(--color-white);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    color: var(--color-main);
    position: relative;
    cursor: pointer;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.2rem;
}

.faq-question.active:after {
    content: '−';
}

.faq-answer {
    padding: 15px;
    display: none;
}

.faq-question.active + .faq-answer {
    display: block;
}

/* Contact Section */
.contact {
    background-color: #f8f8f8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: var(--color-main);
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-details p svg {
    margin-right: 10px;
    color: var(--color-secondary);
}

.contact-form {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(242, 106, 75, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
.main-footer {
    background-color: var(--color-main);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -600px;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 15px 20px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup p {
    margin: 0;
    padding-right: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-content,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        margin-top: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-popup p {
        margin-bottom: 15px;
        padding-right: 0;
    }
    .hero-text h1{
        font-size: 2rem;
    }
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS-only Accordion for FAQ */
.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item label {
    display: block;
    font-weight: 600;
    color: var(--color-main);
    cursor: pointer;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    position: relative;
}

.faq-item label:after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item input[type="checkbox"]:checked + label:after {
    content: '−';
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-content {
    max-height: 500px;
}

/* CSS-only tabs for service sections */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-label {
    order: 1;
    padding: 15px 25px;
    margin-right: 4px;
    cursor: pointer;
    background: #f5f5f5;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 4px 4px 0 0;
}

.tab-content {
    order: 99;
    width: 100%;
    display: none;
    padding: 25px;
    background: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 0 4px 4px 4px;
}

.tab-input {
    display: none;
}

.tab-input:checked + .tab-label {
    background: var(--color-main);
    color: var(--color-white);
}

.tab-input:checked + .tab-label + .tab-content {
    display: block;
}

/* Contact Section - Google Maps Integration */
.map-container {
    margin-top: 25px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-map {
    position: relative;
    width: 100%;
}

.google-map iframe {
    display: block;
    border-radius: 8px;
    width: 100%;
}

@media (max-width: 768px) {
    .google-map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .google-map iframe {
        height: 250px;
    }
} 