/* Base styles */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --light-color: #f1faee;
    --dark-color: #2b2d42;
    --accent-color: #457b9d;
    --text-color: #333;
    --background-color: #ffffff;
    --gray-color: #e5e5e5;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c82333;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #162a48;
    color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Header styles - more sober design */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.logo img {
    height: 100px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 600;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 15px;
}

.menu li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 6px 10px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.menu li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--light-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta {
    margin-top: 20px;
}

/* Tournee section */
.tournee-map {
    margin-top: 40px;
    height: 400px;
    background-color: var(--gray-color);
    border-radius: 8px;
}

/* Points relais section */
.point-relais-list {
    margin: 40px 0;
}

.point-relais-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.point-relais-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.point-relais-item h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.point-relais-info {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 4px;
}

.map-container {
    margin-top: 20px;
    height: 300px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.how-it-works {
    margin: 40px 0;
}

.how-it-works h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.how-it-works ol {
    list-style: decimal;
    padding-left: 20px;
}

.how-it-works li {
    margin-bottom: 15px;
}

.recrutement {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.recrutement h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.note {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 15px;
    color: #666;
}

.contact {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Tarifs section */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    background-color: var(--gray-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.tab-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.pricing-card {
    text-align: center;
    padding: 30px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Atelier section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Avis clients section */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* Légende section */
.story {
    line-height: 1.8;
}

.story p {
    margin-bottom: 20px;
}

.story h4 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 30px 0 20px;
}

.proclamation {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
    font-style: italic;
    line-height: 2;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Footer */
#footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-nav h3,
.footer-social h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #ccc;
}

.footer-nav ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ccc;
}

.footer-bottom a:hover {
    color: white;
}

/* Price options for professionals */
.price-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.price-option {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: var(--transition);
}

.price-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.price-option h4 {
    color: var(--secondary-color);
    margin: 15px 0;
    font-size: 1.2rem;
}

.price-option p {
    margin-bottom: 5px;
}

.price-description {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    min-height: auto;
}

/* FAQ section styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .testimonials,
    .story {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .logo span {
        font-size: 1.5rem;
    }

    .logo img {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        margin: 10px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .price-options {
        flex-direction: column;
        align-items: center;
    }
    
    .price-option {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .price-description {
        max-width: 100%;
    }

    .nav-columns {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .cta-logos {
        gap: 1.5rem !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .cta-logo {
        width: 70px;
        height: 70px;
        margin: 0 !important;
    }
    .construction-phone {
        margin: 0 !important;
        padding: 8px 16px !important;
    }
    .show-on-mobile {
        margin: 0;
        order: unset;
    }
    .construction-phone {
        order: unset;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .contact {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }
}

.nav-columns {
    display: flex;
    gap: 30px;
}

.nav-column {
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.cta-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: none;
    border: none;
    box-shadow: none;
    object-fit: contain;
    display: block;
    margin: 0 !important;
}

.hide-on-mobile {
    display: inline-block;
}
.show-on-mobile {
    display: inline-block;
}

@media (max-width: 1000px) {
    .hide-on-mobile {
        display: none !important;
    }
    .cta-logos {
        gap: 1.5rem !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .show-on-mobile {
        margin-top: 0rem;
        margin-bottom: 0;
        order: 2;
    }
    .construction-phone {
        order: 1;
        margin-bottom: 0.5rem !important;
        margin: 0 !important;
        padding: 8px 16px !important;
    }
    .cta-logo {
        width: 160px;
        height: 160px;
    }
}
