/* Styles de base */
:root {
    --primary-color: #B02121;
    --primary-dark: #8a1a1a;
    --primary-light: #d32f2f;
    --secondary-color: #333333;
    --secondary-light: #555555;
    --accent-color: #FF3A3A;
    --light-color: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #DDDDDD;
    --dark-gray: #666666;
    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Classes pour contrôler l'affichage mobile vs desktop */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--light-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--light-color);
    border-color: var(--primary-light);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Header et navigation */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.logo-container h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.hero-image {
    flex: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

/* Services section */
.services {
    background-color: var(--light-color);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Diagnostics section */
.diagnostics {
    background-color: var(--light-gray);
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.text-column, .image-column {
    flex: 1;
}

.text-column .section-title {
    text-align: left;
}

.text-column .section-title::after {
    margin-left: 0;
}

.diagnostic-list {
    list-style: none;
    margin: 30px 0;
}

.diagnostic-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.check-icon {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 10px;
    font-weight: bold;
}

/* Product showcase section */
.product-showcase {
    background-color: var(--light-color);
}

.product-details {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.product-images, .product-info {
    flex: 1;
}

.main-image {
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery img {
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    background-color: var(--primary-light);
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cta-container {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

/* About section */
.about {
    background-color: var(--light-gray);
}

.about .image-column img {
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.expert-intro {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.expert-bio p {
    margin-bottom: 15px;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.credential {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.credential i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Contact section */
.contact {
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 15px;
    margin-top: 5px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    background-color: var(--secondary-light);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: var(--font-text);
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(176, 33, 33, 0.2);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-logo p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.link-column h4 {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
}

.link-column h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 8px;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 10px;
}

.link-column a {
    color: var(--medium-gray);
}

.link-column a:hover {
    color: var(--light-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links a {
    color: var(--medium-gray);
    margin-left: 20px;
}

/* Media Queries pour Responsive Design */
@media screen and (max-width: 768px) {
    /* Masquer le menu sur mobile */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Centrer le logo et ajuster sa taille */
    header .container {
        justify-content: center;
    }
    
    .logo-container img {
        height: 40px;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    /* Ajuster le hero pour l'affichage mobile */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
    }
    
    /* Afficher l'image sous le titre */
    .hero-image.mobile-only {
        margin: 30px 0;
        width: 100%;
        max-width: 300px;
        align-self: center;
    }
    
    /* Ajuster les boutons CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Adapter les autres sections */
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-details,
    .contact-container {
        flex-direction: column;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .text-column .section-title {
        text-align: center;
    }
    
    .text-column .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
}
