/*
 * Main stylesheet for Hugon TP website
 * Author: Your Name
 */

/* Base styles */
:root {
    --primary-color: #b52b24;    /* Rouge principal */
    --primary-dark: #8b211c;     /* Rouge foncé */
    --primary-light: #d54a44;    /* Rouge clair */
    --secondary-color: #333333;  /* Gris foncé */
    --light-color: #f8f9fa;      /* Gris très clair */
    --dark-color: #212529;       /* Noir */
    --text-color: #333333;       /* Couleur de texte principale */
    --border-radius: 5px;        /* Rayon de bordure par défaut */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-danger:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

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

.section-title p {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Header styles */
.top-bar {
    font-size: 0.9rem;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--text-color);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero section */
.hero-section {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 3rem;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
}

.hero-section .hero-content {
    padding: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Service boxes */
.service-box {
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Work gallery */
.work-item {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.work-img {
    position: relative;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover .work-img img {
    transform: scale(1.1);
}

.work-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-category {
    font-size: 0.9rem;
    font-weight: 400;
}

.work-buttons a {
    margin: 0 0.5rem;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.work-buttons a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-box {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-box::before {
    content: '\201C';
    font-family: Arial, sans-serif;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    color: gold;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-date {
    font-size: 0.9rem;
    color: #666;
}

/* Contact section */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-map {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Forms */
.form-control {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(181, 43, 36, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

hr {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Back to Top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 50%;
    display: none;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* Services Categories Accordion Styles */
#servicesAccordion .accordion-item {
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

#servicesAccordion .accordion-button {
    background-color: white;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 1.25rem;
    border: none;
    box-shadow: none;
}

#servicesAccordion .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

#servicesAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

#servicesAccordion .accordion-button::after {
    margin-left: auto;
}

#servicesAccordion .accordion-body {
    padding: 2rem;
    background-color: #fafafa;
}

#servicesAccordion .service-box {
    background-color: white;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive media queries */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 350px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .top-bar {
        display: none;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .contact-map {
        height: 300px;
    }
}
