/* RESET ET STYLES DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
html {
    font-size: 105%;
}
body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #D4A017;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-realisations {
    display: inline-block;
    background-color: #cdeffa;
    color: rgb(5, 53, 9);
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-tel {
    display: inline-block;
    background-color: #013f1c;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #BF8C15;
    transform: translateY(-2px);
}

.btn-tel:hover {
    background-color: #002c12;
    transform: translateY(-2px);
}

/* HEADER */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50;
}

.logo span {
    color: #D4A017;
}

/* Navigation desktop */
.desktop-nav ul {
    display: flex;
    align-items: center;
}

.desktop-nav ul li {
    margin-left: 15px;
    display: flex;
    align-items: center;
    height: 40px;
}

.desktop-nav ul li:last-child a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    height: 40px;
    line-height: 1;
    white-space: nowrap;
}

.desktop-nav ul li a:not(.btn) {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

.desktop-nav ul li a:hover {
    color: #D4A017;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Navigation mobile fixée en bas */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 8px 0;
}

.mobile-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    flex: 1;
    text-align: center;
}

.mobile-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 0.7rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav li a i {
    font-size: 1.2rem;
    margin-bottom: 3px;
    color: #013f1c;
}

.mobile-nav li a:hover {
    color: #D4A017;
}

.mobile-nav li a:hover i {
    color: #D4A017;
}

.mobile-nav li a.btn {
    background: #D4A017;
    color: white;
    border-radius: 15px;
    padding: 8px 12px;
    margin: 0 5px;
}

.mobile-nav li a.btn i {
    color: white;
    margin-bottom: 2px;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 50px;
    position: relative;
    background-color: rgb(237, 245, 247);
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    right: 0;
    background: url('images/accueil.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    right: 0;
    background: 
        linear-gradient(
            to right, 
            rgba(237, 245, 247, 1) 0%,
            rgba(237, 245, 247, 1) 5%,
            rgba(255, 255, 255, 0.7) 25%,
            rgba(255, 255, 255, 0) 60%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.4),
            rgba(0,0,0,0) 70%
        );
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* SERVICES SECTION */
.services {
    padding: 80px 0;
    background: linear-gradient(90deg, #edf5f7 1%, #c0e2e2 100%);        
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 15px;
}

.section-title p {
    color: #555;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    flex: 0 0 550px;
    height: 325px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image-container {
    position: relative;
    width: 100%;
    height: 325px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(1, 61, 28, 0.85) 0%,
        rgba(1, 61, 28, 0.4) 40%,
        rgba(1, 61, 28, 0.1) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image-container::after {
    background: linear-gradient(
        to top,
        rgba(1, 61, 28, 0.9) 0%,
        rgba(1, 61, 28, 0.5) 55%,
        rgba(1, 61, 28, 0.2) 90%,
        transparent 100%
    );
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-content {
    padding: 15px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(1, 63, 28, 0.9);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    height: auto;
    opacity: 0;
    z-index: 3;
}

.service-description {
    opacity: 0;
    transform: translateY(5px);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease 0.1s;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
}

.service-link {
    display: inline-block;
    color: #D4A017;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(5px);
}

.service-card:hover .service-content {
    transform: translateY(0);
    opacity: 1;
}

.service-card:hover .service-description {
    opacity: 1;
    max-height: 200px;
}

/* About */
.about {
    padding: 80px 0;
    background: linear-gradient(90deg, #edf5f7 1%, #c0e2e2 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2C3E50;
    position: relative;
    display: inline-block;
}

.about-text h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #D4A017;
    bottom: -10px;
    left: 0;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* REALISATIONS SECTION */
.realisations {
    padding: 80px 0;
    background: linear-gradient(90deg, #edf5f7 1%, #c0e2e2 100%);
}

/* COMPARISON GRID */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.comparison-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.comparison-title {
    text-align: center;
    margin: 1rem 0;
    color: #2C3E50;
    font-size: 1.3rem;
    padding: 0 15px;
}

.comparison-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.comparison-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.before-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.after-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.after-container img {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.comparison-slider::after {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2c3e50;
    font-size: 12px;
    font-weight: bold;
}

.comparison-slider:hover::before {
    width: 26px;
    height: 26px;
}

.image-label {
    position: absolute;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-weight: bold;
    border-radius: 3px;
    z-index: 15;
    font-size: 0.8rem;
}

.before-label {
    left: 12px;
}

.after-label {
    right: 12px;
}

.instructions {
    text-align: center;
    margin: 0.5rem 0 1rem;
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
    padding: 0 15px;
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
    grid-column: 1 / -1;
}

.gallery-item {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 15px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2C3E50;
    position: relative;
    display: inline-block;
}

.contact-info h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #D4A017;
    bottom: -10px;
    left: 0;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #555;
}

.contact-details i {
    margin-right: 15px;
    color: #D4A017;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2C3E50;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s;
    color: white;
}

.social-links a:hover {
    background-color: #D4A017;
    transform: translateY(-3px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #D4A017;
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-info h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-cta {
    max-width: 500px;
}

.footer-cta h2 {
    color: #000000;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-cta p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;  
    align-items: center;     
    gap: 10px;
    position: relative;      
    top: -250px;              
    left: -150px;             
}

.footer-nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 5px 0;
}

.copyright {
    font-size: 0.9rem;
}

/* Section Renovation Cahors */
.renovation-cahors {
    padding: 80px 0;
    background-color: white;
    background: linear-gradient(90deg, #edf5f7 1%, #c0e2e2 100%);        
}

.renovation-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
}

.renovation-text {
    flex: 1;
    padding-left: 40px;
    padding-right: 0;
}

.renovation-image {
    flex: 1;
    padding: 15px;
    background-color: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.renovation-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.renovation-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2C3E50;
    position: relative;
    display: inline-block;
}

.renovation-text h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #D4A017;
    bottom: -10px;
    left: 0;
}

.renovation-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

/* Section Peintre Cahors */
.peintre-cahors {
    padding: 80px 0;
    background: linear-gradient(90deg, #edf5f7 1%, #c0e2e2 100%);        
}

.peintre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.peintre-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2C3E50;
    position: relative;
    display: inline-block;
}

.peintre-text h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #D4A017;
    bottom: -10px;
    left: 0;
}

.peintre-text h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #2C3E50;
}

.peintre-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.peintre-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    background-color: white;
    border: 2px solid #f0f0f0;
}

.peintre-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 5px;
}

/* Section Atouts */
.atouts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
    max-width: 2000px;
    margin-left: -120px;
    margin-right: auto;
}

.atouts-containerr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px;
    align-items: stretch;
    padding: 10px 0;
}

.atout-card {
    padding: 30px 25px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    justify-content: space-between;
    min-height: 320px;
    width: 375px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.atout-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.atout-card.white {
    background-color: white;
    color: #2C3E50;
    border: 2px solid #e0e0e0;
}

.atout-card.green {
    background: linear-gradient(135deg, #013f1c 0%, #035c29 100%);
    color: white;
}

.atout-card.yellow {
    background: linear-gradient(135deg, #D4A017 0%, #e6b31e 100%);
    color: white;
}

.atout-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.atout-card.green .atout-icon,
.atout-card.yellow .atout-icon {
    color: white;
}

.atout-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.atout-card.white p {
    text-align: left;
    width: 100%;
}

/* Points verts pour la liste des prestations */
.prestation-list {
    text-align: left;
    width: 100%;
    padding-left: 0;
}

.prestation-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    list-style: none;
    font-size: 1rem;
    line-height: 1.5;
}

.prestation-list li::before {
    content: "•";
    color: #013f1c;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.atout-card.green .prestation-list li::before {
    color: white;
}

.atout-card.yellow .prestation-list li::before {
    color: #013f1c;
}

.zone-intervention {
    text-align: center;
}

.zone-intervention p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #013f1c;
    margin-top: 10px;
}

.atout-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Section Demande Devis */
.devis-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.devis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.devis-text {
    padding: 60px;
}

.devis-text h2 {
    font-size: 2.2rem;
    color: #2C3E50;
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.devis-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.7;
}

.devis-text .btn {
    background-color: #D4A017;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.devis-text .btn:hover {
    background-color: #BF8C15;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

.devis-image {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.devis-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Menu déroulant */
nav ul li.dropdown {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

nav ul li.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 10px;
    white-space: nowrap;
}

nav ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 150%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 100;
    flex-direction: column;
    padding: 10px 0;
    margin-top: 0;
}

nav ul li.dropdown .dropdown-menu li {
    margin: 0;
    height: auto;
    width: 100%;
}

nav ul li.dropdown .dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    height: auto;
    white-space: normal;
}

/* Style pour la page active */
nav ul li.active > a {
    color: #013f1c;
    font-weight: 600;
}

/* Hover normal */
nav ul li:not(.active) a:hover {
    color: #013f1c;
    background-color: transparent;
}

nav ul li.dropdown .dropdown-menu li a:hover {
    background-color: transparent;
    color: #00a859;
    text-shadow: 0 0 1px rgba(0, 168, 89, 0.3);
}

/* Affiche le menu au hover */
nav ul li.dropdown:hover .dropdown-menu {
    display: flex;
}

.highlight-text {
    border-left: 4px solid #013f1c;
    padding-left: 10px;
    margin: 10px 0;
}

.footer-link {
    color: #013f1c;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #D4A017;
}

.highlight-text span {
    color: #70471c;
    font-weight: bold;
    font-size: 1.1em;
}

/* Styles pour la barre de navigation horizontale */
.nav-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

.nav-buttons-bar {
    height: 3px;
    background-color: #D4A017;
    flex-grow: 1;
    max-width: 300px;
    margin: 0 20px;
}

.nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #013f1c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 20px;
    font-weight: bold;
}

.nav-button:hover {
    background-color: #D4A017;
    transform: scale(1.1);
}

.nav-button.prev::before {
    content: "←";
}

.nav-button.next::before {
    content: "→";
}

/* Styles pour le carrousel de services */
.services-carousel {
    position: relative;
    overflow: hidden;
    margin: 10px 0 10px 100px;
    max-width: none;
    padding: 0;
    width: calc(100% - 100px);
}

.services-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s ease-in-out;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #013f1c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border: none;
    z-index: 20;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: #D4A017;
    transform: translateY(-50%) scale(1.15);
}

.carousel-button.prev { left: -10px; }

.carousel-button.prev::before {
    content: "←";
}

.carousel-button.next::before {
    content: "→";
}

.carousel-button.next { right: -10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background-color: #D4A017;
    transform: scale(1.2);
}

/* REMPLACER le style actuel de .devis-hero */
.devis-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #013f1c;
    background-color: rgba(237, 245, 247, 1);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.devis-hero::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    right: 0;
    background: url('images/devis.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.devis-hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    right: 0;
    background: 
        linear-gradient(
            to right, 
            rgba(237, 245, 247, 1) 10%,
            rgba(237, 245, 247, 1) 15%,
            rgba(255, 255, 255, 0.7) 35%,
            rgba(255, 255, 255, 0) 70%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.3),
            rgba(0,0,0,0) 70%
        );
    z-index: 2;
}

.devis-hero-content {
    max-width: 600px;
    padding-left: 60px;
    position: relative;
    z-index: 3;
}

.devis-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.devis-hero .btn {
    padding: 14px 35px;
    font-size: 1.1rem;
    border-radius: 25px;
}

/* Styles pour le menu des paramètres */
.settings-menu {
    margin-left: auto;
}

.settings-menu > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}

.settings-dropdown {
    width: 300px;
    right: 0;
    left: auto !important;
    padding: 0;
}

.settings-header {
    padding: 15px;
    background-color: #013f1c;
    color: white;
    font-weight: bold;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.settings-subheader {
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #555;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.setting-item span {
    font-size: 0.95em;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #013f1c;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Theme toggle buttons */
.theme-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.theme-btn {
    padding: 4px 8px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s;
}

.theme-btn.active {
    background: #013f1c;
    color: white;
}

/* Size controls */
.size-controls {
    display: flex;
    align-items: center;
}

.size-btn {
    padding: 2px 8px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.9em;
}

.size-value {
    margin: 0 8px;
    font-size: 0.9em;
}

.settings-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

#reset-settings {
    background: none;
    border: none;
    color: #013f1c;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
}

/* Styles pour le mode sombre */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode header {
    background-color: #2d2d2d;
}

body.dark-mode .settings-dropdown {
    background-color: #2d2d2d;
    color: #f0f0f0;
    border: 1px solid #444;
}

body.dark-mode .setting-item {
    border-bottom: 1px solid #444;
}

body.dark-mode .theme-btn {
    background: #444;
    color: #f0f0f0;
}

body.dark-mode .theme-btn.active {
    background: #D4A017;
    color: #2d2d2d;
}

/* Styles pour le contraste élevé */
body.high-contrast {
    filter: contrast(1.4);
}

body.high-contrast a {
    text-decoration: underline;
}

/* Styles pour réduire les animations */
body.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Styles pour les barres de défilement classiques */
body.classic-scrollbars ::-webkit-scrollbar {
    width: 16px;
}

body.classic-scrollbars ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.classic-scrollbars ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
    border: 3px solid #f1f1f1;
}

body.dark-mode.classic-scrollbars ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

body.dark-mode.classic-scrollbars ::-webkit-scrollbar-thumb {
    background: #555;
    border: 3px solid #2d2d2d;
}

/* === POPUP À PROPOS - VERSION LARGE === */
.about-popup {
    position: fixed;
    top: 0;
    right: -35vw;
    width: 35vw;
    min-width: 100px;
    max-width: 1600px;
    height: 100vh;
    background: linear-gradient(135deg, #edf5f7 0%, #c0e2e2 100%);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.about-popup.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.popup-header {
    background: #013f1c;
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #D4A017;
    transform: scale(1.1);
}

.popup-content {
    padding: 30px;
}

.popup-section {
    margin-bottom: 35px;
}

.popup-section h3 {
    color: #2C3E50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 3px solid #D4A017;
    padding-bottom: 12px;
}

.popup-intro {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.popup-intro h4 {
    color: #D4A017;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-intro h3 {
    color: #2C3E50;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.popup-intro p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-btn {
    flex: 1;
    background: #D4A017;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-btn:hover {
    background: #BF8C15;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

.contact-btn.secondary {
    background: #2C3E50;
}

.contact-btn.secondary:hover {
    background: #34495e;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.contact-info {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    background: #D4A017;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    color: #2C3E50;
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-text p {
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.hours-info {
    background: #013f1c;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(1, 63, 28, 0.3);
}

.hours-info strong {
    color: #D4A017;
    font-size: 1.1rem;
}

.hours-info p {
    color: white !important;
    margin: 0;
    font-size: 1.1rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: #013f1c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
}

.action-btn:hover {
    background: #035c29;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(1, 63, 28, 0.3);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.social-btn {
    width: 55px;
    height: 55px;
    background: #2C3E50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-btn:hover {
    background: #D4A017;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

nav ul li a:not(.btn):not(.info-link):hover {
    color: #013f1c;
    background-color: transparent;
}

/* Styles pour le lien Infos pratiques avec cercle complet */
.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid #013f1c;
    background-color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #013f1c;
    font-weight: 500;
    height: 40px;
    line-height: 1;
    white-space: nowrap;
}

.info-link:hover {
    background-color: #013f1c;
    color: white;
    transform: scale(1.05);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #013f1c;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.info-link:hover .info-icon {
    background-color: white;
    color: #013f1c;
    transform: scale(1.1);
}

.info-text {
    white-space: nowrap;
}

nav ul li.dropdown > a:hover {
    color: #013f1c;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 1200px) {
    .atouts-containerr {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 95%;
    }
    
    .atout-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .atouts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    header {
        position: fixed;
        top: 0;
        bottom: auto;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .header-container {
        height: 80px !important;
        padding: 8px 0 !important;
    }
    
    .logo img {
        height: 70px !important;
        margin-right: 15px !important;
    }
    
    .logo span {
        font-size: 1.1em !important;
    }
    .logo span span:first-child {
        font-size: 1.3em !important;
    }
    
    .logo span span:last-child {
        font-size: 1.1em !important;
    }
    
    .menu-toggle {
        display: none;
    }
    /* Ajuster la section hero pour descendre le contenu */
    .contact-section {
        padding: 120px 0 80px 0 !important;
        margin-top: 0 !important;
    }

    /* Augmenter la taille du titre principal */
    .contact-info h2 {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
        text-align: center;
        margin: 10px;
    }
    .contact-section .container {
        padding-top: 20px;
    }

    .contact-info h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
        text-align: center;
        line-height: 1.3;
    }

    .contact-info h4 {
        font-size: 1.1rem !important;
        padding: 20px !important;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 25px !important;
    }

    /* Ajuster l'espacement global */
    .contact-container {
        gap: 30px !important;
        margin-top: 10px !important;
    }
    
    /* Ajuster le menu mobile pour compenser le header plus grand */
    body {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    .hero {
        height: 50vh;
        padding-left: 0;
        margin-top: 0;
        justify-content: center;
        text-align: center;
    }
    
    .hero::before {
        left: 0;
        background-position: center;
    }
    
    .hero::after {
        left: 0;
        background: linear-gradient(
            to bottom, 
            rgba(237, 245, 247, 0.3) 0%,
            rgba(237, 245, 247, 0.6) 30%,
            rgba(237, 245, 247, 0.8) 60%,
            rgba(237, 245, 247, 1) 100%
        );
    }
    
    
    
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: center;
    }
    
    .hero h1 span {
        display: block;
    }
    
   
    
    .hero .btn,
    .hero .btn-tel {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 6px auto !important;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .services-carousel {
        margin: 10px 0;
        width: 100%;
        padding: 0 10px;
    }
    
    .service-card {
        flex: 0 0 85%;
        height: 250px;
    }
    
    .service-image-container {
        height: 250px;
    }
    
    .carousel-button {
        display: none;
    }
    
    .peintre-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .peintre-text {
        order: 1;
        text-align: center;
    }
    
    .peintre-image {
        order: 2;
        margin-top: 20px;
    }
    
    .peintre-text h2 {
        font-size: 1.6rem !important;
        text-align: center;
    }
    
    .peintre-text h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .peintre-text h3 {
        font-size: 1.2rem !important;
        text-align: center;
    }
    
    .peintre-text p {
        font-size: 0.95rem !important;
        line-height: 1.6;
        text-align: left;
    }
    
    .peintre-cahors .btn {
        display: block;
        margin: 20px auto 0;
        max-width: 280px;
    }
    
    .highlight-text {
        font-size: 1rem !important;
        padding: 12px 15px;
        margin: 20px 0;
        text-align: center;
        border-left: none;
        border-top: 4px solid #013f1c;
        border-bottom: 4px solid #013f1c;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .about-text h1 {
        font-size: 1.6rem !important;
    }
    
    .about-text h3 {
        font-size: 1.1rem !important;
    }
    
   .atouts-container {
    grid-template-columns: 1fr;
    margin-left: 0;
    gap: 15px;
    /* MODIFICATIONS POUR PRENDRE TOUTE LA LARGEUR */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%; /* ← PREND TOUTE LA LARGEUR */
    margin: 10px 0; /* ← MARGES SIMPLIFIÉES */
    padding: 0 15px; /* ← ESPACE SUR LES CÔTÉS */
}

.atout-card {
    width: 100%; /* ← PREND TOUTE LA LARGEUR DISPONIBLE */
    min-height: 200px;
    padding: 25px;
    text-align: center;
    box-sizing: border-box;
}

.atout-icon {
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.atout-card h3 {
    font-size: 1.3rem;
    text-align: center;
}

.atout-card p {
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
}
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
        border: 8px solid #fff;
    }
    
    .renovation-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .renovation-text {
        padding-left: 0;
        order: 2;
        text-align: center;
    }
    
    .renovation-image {
        order: 1;
    }
    
    .renovation-text h2 {
        font-size: 1.6rem !important;
        text-align: center;
    }
    
    .renovation-text h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .renovation-text p {
        text-align: left;
    }
    
    .devis-hero {
        height: 50vh;
    }
    
    .devis-hero-content {
        padding-left: 20px;
        max-width: 90%;
    }
    
    .devis-hero h2 {
        font-size: 1.6rem !important;
    }
    
    .devis-hero p {
        font-size: 1rem !important;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-nav {
        position: static;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        top: 0;
        left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .about-popup {
        width: 100%;
        right: -100%;
    }
    
    .about-popup.active {
        right: 0;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .service-card { 
        flex: 0 0 95%; 
    }
    
    .carousel-button { 
        display: none; 
    }
    
    .image-label {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .before-label, .after-label {
        bottom: 8px;
    }
    
    .comparison-container {
        aspect-ratio: 4/3;
    }
    
    .hero h1 {
        font-size: 1.3rem !important;
    }
    
    .hero p {
        font-size: 0.8rem !important;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 75px !important;
    }
    
    .logo img {
        height: 60px !important;
        margin-right: 12px !important;
    }
    
    .logo span {
        font-size: 0.8em !important;
    }
    .contact-section {
        padding: 100px 0 60px 0 !important;
    }
    
    .contact-info h2 {
        font-size: 1.6rem !important;
    }
    
    .contact-info h3 {
        font-size: 1.3rem !important;
    }
    
    .contact-info h4 {
        font-size: 1rem !important;
        padding: 15px !important;
    }
    .mobile-nav {
        padding: 6px 0;
    }
    
    .mobile-nav li a {
        font-size: 0.65rem;
        padding: 4px 2px;
    }
    
    .mobile-nav li a i {
        font-size: 1rem;
    }
    
    .mobile-nav li a.btn {
        padding: 6px 10px;
        font-size: 0.65rem;
    }
    
    body {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero {
        height: 45vh;
    }
    
    .hero h1 {
        font-size: 1.3rem !important;
    }
    
    
    
    .service-card {
        flex: 0 0 90%;
        height: 220px;
    }
    
    .service-image-container {
        height: 220px;
    }
    
    .peintre-text h2 {
        font-size: 1.4rem !important;
    }
    
    .peintre-text h3 {
        font-size: 1.1rem !important;
    }
    
    .atout-card {
        min-height: 180px;
        padding: 15px;
    }
    
    .gallery-item {
        height: 200px;
        border: 5px solid #fff;
    }
    
    .devis-hero {
        height: 45vh;
    }
    
    .devis-hero h2 {
        font-size: 1.4rem !important;
    }
    
    .btn, .btn-tel {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
    
    header {
        top: 0;
        bottom: auto;
    }
    
    .menu-toggle {
        display: none;
    }
    
    nav ul {
        display: flex !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    
    
    .renovation-content {
        gap: 30px;
    }
    
    .renovation-text h2 {
        font-size: 1.8rem !important;
    }
    
    .renovation-text p {
        font-size: 0.95rem !important;
    }
}

.atout-card.yellow h3 span {
    color: #013f1c !important;
    font-weight: 700;
}

.atout-card.yellow p span {
    color: #000000;
    font-weight: 600;
    font-size: 1.1rem;
}

/* CORRECTION MENUS DÉROULANTS */
nav ul li.dropdown .dropdown-menu {
    display: none !important;
}

nav ul li.dropdown:hover .dropdown-menu {
    display: flex !important;
}

/* Pour mobile : menu déroulant cliquable */
@media (max-width: 768px) {
    nav ul li.dropdown.active .dropdown-menu {
        display: flex !important;
    }
}
/* Style pour le lien Haut de page */
.back-to-top {
    color: #013f1c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-top:hover {
    color: #D4A017;
    transform: translateY(-2px);
}
/* Style pour la page active avec trait vert */
nav ul li.active > a {
    color: #013f1c;
    font-weight: 600;
    position: relative;
}

nav ul li.active > a::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #013f1c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hover avec animation - uniquement sur les liens principaux SAUF le bouton Contact */
nav ul > li > a:not(.btn) { /* Exclut le bouton Contact */
    position: relative;
    transition: color 0.3s ease;
}

nav ul > li > a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    right: 50%;
    height: 3px;
    background-color: #013f1c;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0;
}

nav ul > li > a:not(.btn):hover::after,
nav ul > li.active > a:not(.btn)::after,
nav ul li.dropdown:hover > a::after { /* AJOUT : Garde le trait quand le dropdown est ouvert */
    left: 10px;
    right: 10px;
    opacity: 1;
}
nav ul > li.active > a:not(.btn)::after {
    opacity: 1;
}

/* Pour le menu déroulant - s'assurer que le trait s'applique bien */
nav ul > li.dropdown > a::after {
    bottom: -20px;
}

/* Désactiver le trait pour les sous-menus du dropdown */
nav ul li.dropdown .dropdown-menu li a::after {
    display: none !important;
}

/* Style spécifique pour le bouton Contact avec effet de survol plus visible */
nav ul > li > a.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet de fond plus visible au survol */
nav ul > li > a.btn:hover {
    background-color: #BF8C15; /* Couleur plus foncée au survol */
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
    transform: translateY(-3px);
}

/* Effet de glow externe */
nav ul > li > a.btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #D4A017, #BF8C15, #D4A017);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav ul > li > a.btn:hover::after {
    opacity: 0.3;
}

/* S'assurer que le trait reste visible sur mobile aussi */
@media (max-width: 768px) {
    .mobile-nav li a:not(.btn)::after {
        bottom: -5px;
        left: 50%;
        right: 50%;
        width: 0;
        height: 2px;
    }
    
    .mobile-nav li a:not(.btn):hover::after,
    .mobile-nav li.active a:not(.btn)::after {
        left: 50%;
        right: 50%;
        width: 20px;
        transform: translateX(-50%);
    }
    
    /* Pour le bouton Contact sur mobile */
    .mobile-nav li a.btn:hover {
        background-color: #BF8C15;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
    }
}
/* Correction du trait sur mobile pour la page Réalisations */
@media (max-width: 768px) {
    .mobile-nav li.active a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background-color: #013f1c;
        border-radius: 1px;
    }
    
    /* S'assurer que seul l'élément actif a le trait */
    .mobile-nav li:not(.active) a::after {
        display: none;
    }
    
    /* Correction spécifique pour la page Réalisations */
    .mobile-nav li a[href="realisations.html"].active::after {
        background-color: #013f1c;
    }
    
    .mobile-nav li a[href="index.html"].active::after {
        background-color: #013f1c;
    }
}
/* Correction pour l'icône Info pratiques sur mobile */
@media (max-width: 768px) {
    .mobile-nav .info-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-nav .info-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: #013f1c; /* couleur du texte/icône uniquement */
        font-size: 12px;
        margin-bottom: 2px;
        margin-top: 0px;
        background: none; /* supprime le fond vert */
        border-radius: 0; /* supprime la forme circulaire */
    }
    
    .mobile-nav .info-text {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .mobile-nav .info-link .info-icon i {
        display: block !important;
    }
    .mobile-nav .info-link .info-icon i {
        position: relative;
        top: 5px; /* descend légèrement l’icône, ajuste à 1px ou 3px si besoin */
    }
    
    

}

/* ===== CORRECTIONS GLOBALES ===== */

/* Problème 1 & 3 : Correction des traits verts indésirables */
@media (max-width: 768px) {
    .mobile-nav li a::after {
        display: none !important;
    }
    
    .mobile-nav li.active a::after {
        display: block !important;
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background-color: #013f1c;
        border-radius: 1px;
    }
}





/* Correction desktop pour les traits */
@media (min-width: 769px) {
    /* Le trait ne doit apparaître que pour l'élément actif */
    nav ul li:not(.active) > a:not(.btn):hover::after {
        opacity: 0.7;
        left: 10px;
        right: 10px;
    }
    
    nav ul li.active > a:not(.btn)::after {
        opacity: 1;
        left: 10px;
        right: 10px;
    }
}
/* Désactiver les traits verts sur la page Contact */
body.contact-page nav ul li:not(.active) > a:not(.btn):hover::after {
    opacity: 0 !important;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: center;
        padding: 10px 0;
    }
    
    .logo {
        margin: 0 auto;
    }
    
    .menu-toggle {
        left: 15px;
    }
    
    /* Optionnel : réduire la taille du logo sur mobile */
    .logo img {
        height: 70px !important;
    }
    
    .logo span {
        font-size: 1.2em !important;
    }
}
