/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a762; /* Couleur bois clair */
    --secondary-color: #3a3226; /* Couleur bois foncé */
    --light-color: #f9f7f3;
    --dark-color: #222;
    --text-color: #333;
    --text-light: #777;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Header */
header {
    background-color: var(--light-color);
/*    background-color: rgb(216, 216, 216);*/
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
    height: 70px;
    padding: 10px 0; /* Ajout d'un padding modéré */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Ajout d'un padding latéral */
}

.logo {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(50%) scale(3);
    transform-origin: left center;
} 

.logo img {
    height: 50px; /* Taille raisonnable pour un logo */
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    padding-left: 290px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.social-header {
    display: flex;
    align-items: center;
}

.facebook-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #3b5998;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.facebook-icon:hover {
    background-color: #2d4373;
    transform: translateY(-2px);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero-charpente.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 200px 20px 100px; /* Ajustement pour le header */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Services section */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.services h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}
/*77*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.service-list {
    padding: 0 20px 20px;
    list-style-type: none;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* About section */
.about {
    padding: 100px 0;
    background-color: white;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px 0 0;
}

.about p {
    margin-bottom: 20px;
}

.about ul {
    margin: 30px 0;
    list-style-position: inside;
}

.about ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* About section */
.about-content {
    padding-right: 30px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-signature {
    margin-top: 30px;
    text-align: right;
}

.signature {
    height: 50px;
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .about .container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding-right: 0;
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
}

/* Projects section */
.projects {
    padding: 100px 0;
    background-color: white;
}

.projects h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.projects h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin-bottom: 5px;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 35px;
    text-align: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: var(--primary-color);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 35px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Contact section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 30px;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Style pour la nouvelle image de contact */
.contact-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.contact-image:hover .responsive-image {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 30px;
    text-align: center;
}

.image-overlay .btn {
    margin: 0 10px 10px;
    display: inline-block;
}

/* Ajustement du conteneur */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Version mobile */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .image-overlay .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
}
/* Section Zone d'intervention */
.intervention {
    padding: 100px 0;
    background-color: var(--light-color);
}

.intervention h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.intervention h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

.intervention-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intervention-map {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.intervention-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intervention-text {
    text-align: center;    ;
}

.intervention-text h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.intervention-text ul {
    margin: 25px 0;
    list-style: none;
}

.intervention-text ul li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.intervention-text ul li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Version mobile */
@media (max-width: 768px) {
    .intervention-content {
        grid-template-columns: 1fr;
    }
    
    .intervention-map {
        height: 300px;
        order: -1;
    }
    
    .intervention {
        padding: 70px 0;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 0;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo p {
    margin-top: 10px;
    color: rgba(255,255,255,0.7);
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    background-color: var(--dark-color);
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1080px) {
    nav{
        padding-left: 220px;
    }
}
@media (max-width: 1020px) {
    nav{
        padding-left: 160px;
    }
}

.btn-phone {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-phone span {
    display: none; /* Cache le texte */
}

.btn-phone::before {
    content: "\f095"; /* Code icône téléphone Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}



/* menu burger */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/*77*/
/* Styles pour la version mobile */
@media (max-width: 840px) {
    .menu-toggle {
        display: block;
        order: 1; 
    }
    
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 200px;
        background-color: var(--light-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-left: 0;
        border-radius: 4px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        display: block;
        padding: 8px 15px; /* Ajout de padding pour le confort */
    }
    
    .social-header {
        margin-left: auto; /* Pousse les icônes à droite */
    }
    
    /* Animation du bouton burger */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 180px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
