@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,700;1,700&display=swap');

/* Styles généraux */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F7F5F2;
    margin: 0;
    min-height: 100vh;
    color: #2D2D2D;
    line-height: 1.6;
}

/* Style pour la scrollbar */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background-color: white;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: #740c0d;
    border-radius: 10px;
    border: 2px solid white;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: rgb(54, 2, 2);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.353);
    z-index: 100;
}

/* Logo */
.logo {
    width: 230px;
    height: auto;
    transition: all 0.3s ease;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1) saturate(1);
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: brightness(0.85) saturate(1.2);
    transform: scale(1.05);
}

/* Conteneur menu */
#menu {
    z-index: 2;
    margin-right: 20px;
}

/* Menu burger */
#menu-bar {
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    background: rgba(139, 46, 46, 0.1);
    border-radius: 6px;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

#menu-bar:hover {
    background: rgba(139, 46, 46, 0.2);
    transform: scale(1.05);
    z-index: 100;
}

.bar {
    height: 2px;
    width: 24px;
    background-color: #8B2E2E;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#bar1 {
    top: 19px;
}

#bar2 {
    top: 26px;
}

#bar3 {
    top: 33px;
}

/* Animation burger */
.change .bar {
    background-color: #FFFFFF;
}

.change #bar1 {
    transform: translateY(7px) translateX(-50%) rotate(-45deg);
    top: 12px;
}

.change #bar2 {
    opacity: 0;
}

.change #bar3 {
    transform: translateY(-7px) translateX(-50%) rotate(45deg);
    top: 26px;
}

/* Navigation */
.nav {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav ul {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.nav li {
    list-style: none;
    padding: 15px 25px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav li:hover {
    background: rgba(139, 46, 46, 0.1);
    border-radius: 6px;
}

.nav li a {
    color: black;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav li a:hover {
    color: #8B2E2E;
}

.nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #8B2E2E;
    transition: width 0.3s ease;
}

.nav li a:hover::after {
    width: 70%;
}

/* Style spécial pour Devis gratuit */
.devis-btn {
    background-color: #8B2E2E;
    color: #FFFFFF !important;
    padding: 15px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.devis-btn:hover {
    background-color: #740c0d;
    color: #FFFFFF;
}

.devis-btn::after {
    display: none;
}

/* Dropdown (Sous-menu Services) */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #2D2D2D;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    color: #8B2E2E !important;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu li a {
    font-size: 14px;
    color: #2D2D2D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-menu li:hover {
    background: rgba(139, 46, 46, 0.1);
}

.dropdown-menu li a:hover {
    color: #8B2E2E;
}

.dropdown-menu li a::after {
    bottom: 5px;
}

/* Effet d'arrière-plan */
.menu-bg {
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    margin: 15px 40px 0 0;
    background: radial-gradient(circle, rgb(139, 46, 46), rgb(139, 46, 46));
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.change-bg {
    width: 1000px;
    height: 1000px;
    transform: translate(50%, -20%);
}

/* Section À Propos */
.about-section {
    padding: 80px 40px;
    background: #FFFFFF;
    text-align: center;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
}

.about-text h3 {
    font-size: 20px;
    color: #2D2D2D;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-text h2 {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    -webkit-text-stroke: 2px black;
    font-size: 50px;
    color: #8B2E2E;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: #8B2E2E;
}

.about-text p {
    font-size: 18px;
    color: black;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text .highlight {
    color: #8B2E2E;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.about-text .highlight:hover {
    text-decoration: underline;
    color: #740c0d;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    max-height: 400px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Bordures partielles avec pseudo-éléments */
.about-image::before,
.about-image::after {
    content: '';
    position: absolute;
    z-index: 0;
    transition: all 0.4s ease;
}

/* Bordure haut gauche (rouge clair) */
.about-image::before {
    top: -2px;
    left: -2px;
    width: 60px;
    height: 60px;
    border-top: 8px solid #8B2E2E;
    border-left: 8px solid #8B2E2E;
}

/* Bordure bas droite (rouge foncé) */
.about-image::after {
    bottom: -2px;
    right: -2px;
    width: 60px;
    height: 60px;
    border-bottom: 8px solid #000000;
    border-right: 8px solid #000000;
}

/* Expansion des bordures au survol */
.about-image:hover::before {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}

.about-image:hover::after {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}



/* Section Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82vh;
    padding: 100px 40px 40px;
    background: linear-gradient(to right, rgba(139, 46, 46, 0.7), rgba(0, 0, 0, 0.5)),
        url('../images/intro.webp') no-repeat center/cover;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    -webkit-text-stroke: 2px #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    color: #F7F5F2;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-devis {
    text-align: center;
    gap: 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-actions .btn, .hero-devis .btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Flèche animée pour défiler vers le bas */
.scroll-down-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.scroll-down-arrow span {
    display: block;
    font-size: 36px;
    color: #FFFFFF;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite ease-in-out;
}


.see-more {
    font-size: 20px;
    color: #000000;
    text-decoration: none;
}

.btn-primary {
    background-color: #8B2E2E;
    color: #FFFFFF;
    border: 2px solid #8B2E2E;
}

.btn-primary:hover {
    background-color: #740c0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-contact {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover, .btn-contact:hover {
    background-color: rgb(255, 255, 255);
    border-color: #8B2E2E;
    color: #8B2E2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-image {
    display: none;
}

/* Section Description */
.description {
    padding: 80px 40px;
    background: #FFFFFF;
    text-align: center;
}

.description .content {
    max-width: 800px;
    margin: 0 auto;
}


.description p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.description ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 20px;
}

.description ul li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #2D2D2D;
}

.hero-content strong {
    color: #8B2E2E;
}

.description ul li strong {
    color: #8B2E2E;
}

/* Section Exemples */
.examples {
    padding: 80px 40px;
    background: #F7F5F2;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.example-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.example-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.example-card p {
    font-size: 16px;
    color: #2D2D2D;
    margin: 0;
}

/* Section Appel à l’action */
.cta {
    padding: 60px 40px;
    text-align: center;
    background: #ECE9E4;
}

.cta h3 {
    font-size: 30px !important;
}

.cta p {
    font-size: 16px;
    color: #424242;
    margin-bottom: 30px;
}

/* Section Services Preview */
.services-preview {
    padding: 100px 40px;
    background: linear-gradient(45deg, #F7F5F2, #EDEAE5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 46, 46, 0.1) 0%, transparent 70%);
    animation: pulse 15s infinite ease-in-out;
    z-index: 0;
}

.services-preview h3 {
    font-size: 40px;
    color: #8B2E2E;
    margin-bottom: 70px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.services-preview h3::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #8B2E2E, #740c0d);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    border: 2px solid #8B2E2E;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: #740c0d;
}

.service-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #2D2D2D;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(20%);
}

.service-card:hover .service-image img {
    transform: scale(1.15);
    filter: grayscale(0%);
}

.service-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 46, 46, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.service-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay .overlay-text {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transform: rotate(-10deg);
    transition: transform 0.5s ease;
}

.service-card:hover .image-overlay .overlay-text {
    transform: rotate(0deg);
}

.service-content {
    padding: 30px;
    text-align: center;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 46, 46, 0.2), transparent);
    transition: all 0.5s ease;
}

.service-card:hover .service-content::before {
    left: 100%;
}

.service-content h4 {
    font-size: 26px;
    color: #2D2D2D;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.service-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    font-style: italic;
}

.service-content .btn-fantasy {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #8B2E2E, #740c0d);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    /* Plus carré */
    border: 2px solid #740c0d;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-content .btn-fantasy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.service-content .btn-fantasy:hover::before {
    width: 300px;
    height: 300px;
}

.service-content .btn-fantasy:hover {
    background: linear-gradient(135deg, #740c0d, #8B2E2E);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 46, 46, 0.4);
}

/* Animations */
.animate-reveal {
    animation: reveal 1s ease forwards;
}



.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: #8B2E2E;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    text-decoration: underline;
    color: #740c0d;
}

/* Section Recent Projects */
.recent-projects {
    padding: 100px 40px;
    background: linear-gradient(180deg, #ECE9E4 0%, #F7F5F2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recent-projects h3, .services-preview h3, .description h3, .examples h3, .section-title, .cta h3 {
    -webkit-text-stroke: 1px #000;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    color: #8B2E2E;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.recent-projects h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #740c0d;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    /* Légèrement moins rond */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    /* Hauteur augmentée pour plus d’impact */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: blur(0px);
    /* Pas de flou par défaut */
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: blur(4px);
    /* Effet flou au survol */
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 46, 46, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.95);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: scale(1);
}

.project-overlay .see-more {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 25px;
    background: linear-gradient(135deg, #8B2E2E, #740c0d);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-overlay .see-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.project-overlay .see-more:hover::before {
    width: 300px;
    height: 300px;
}

.project-overlay .see-more:hover {
    background: linear-gradient(135deg, #740c0d, #8B2E2E);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Section Contact */
.contact-section {
    position: relative;
    width: 100%;
    background: #F7F5F2;
    padding: 0;
}

.map-container {
    width: 100%;
    height: 400px;
    /* Hauteur fixe, pas trop grande */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: contrast(110%) saturate(120%);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 245, 242, 1));
    border-top: 4px solid #8B2E2E;
}

.contact-info-column,
.contact-form-column {
    flex: 1;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.contact-info-column h3,
.contact-form-column h3 {
    font-size: 28px;
    color: #8B2E2E;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
}

.contact-info-column h3::after,
.contact-form-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #740c0d;
}

.contact-details p {
    font-size: 16px;
    color: #2D2D2D;
    margin: 15px 0;
    line-height: 1.8;
}

.contact-details p strong {
    color: #8B2E2E;
    font-weight: 600;
}

.contact-info-column .social-links {
    margin-top: 30px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #8B2E2E;
    color: #FFFFFF;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #740c0d;
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #CCCCCC;
    background: transparent;
    font-size: 16px;
    color: #2D2D2D;
    transition: all 0.4s ease;
}

.form-group textarea {
    resize: none;
    height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #8B2E2E;
    outline: none;
}

.form-group .form-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.4s ease;
}

.form-group input:focus~.form-label,
.form-group input:not(:placeholder-shown)~.form-label,
.form-group textarea:focus~.form-label,
.form-group textarea:not(:placeholder-shown)~.form-label {
    top: -10px;
    font-size: 12px;
    color: #8B2E2E;
    font-weight: 600;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.contact-form button {
    padding: 14px 40px;
    background: #8B2E2E;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-form button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form button:hover {
    background: #740c0d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 46, 46, 0.4);
}

footer {
    background: linear-gradient(180deg, #2D2D2D 0%, #1A1A1A 100%);
    color: #FFFFFF;
    padding: 60px 40px 30px;
    position: relative;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.contact-info h4,
.social-links h4,
.legal-links h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h4::after,
.social-links h4::after,
.legal-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #8B2E2E;
    transition: width 0.3s ease;
}

.contact-info h4:hover::after,
.social-links h4:hover::after,
.legal-links h4:hover::after {
    width: 100px;
}

.contact-info p {
    margin: 10px 0;
    color: #CCCCCC;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.contact-info p i {
    color: #8B2E2E;
    font-size: 18px;
}

.contact-info p:hover {
    color: #FFFFFF;
}

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

.social-links a,
.legal-links a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-icon a {
    color: #000 !important;
}

.social-links a i {
    font-size: 18px;
    color: #8B2E2E;
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.2);
}

.social-links a:hover,
.legal-links a:hover {
    color: #FFFFFF;
}

.social-links a::after,
.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B2E2E;
    transition: width 0.3s ease;
}

.social-links a:hover::after,
.legal-links a:hover::after {
    width: 100%;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8B2E2E;
    color: #FFFFFF;
    border: none;
    border-radius: 6%;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background: #740c0d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.realisations-section {
    padding: 80px 40px;
    background: #F7F5F2;
    text-align: center;
}

.realisations-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: #8B2E2E;
}

.filter-buttons {
    margin-bottom: 40px;
}

.filter-btn {
    background: #FFFFFF;
    border: 2px solid #8B2E2E;
    color: #8B2E2E;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #8B2E2E;
    color: #FFFFFF;
}

.filter-btn.active {
    background: #8B2E2E;
    color: #FFFFFF;
}

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

.realisation-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.realisation-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.realisation-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 46, 46, 0.8);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.realisation-card:hover .overlay {
    opacity: 1;
}

.realisation-card:hover img {
    transform: scale(1.05);
}

.realisation-card .overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.realisation-card .overlay p {
    font-size: 16px;
    font-weight: 400;
}

.realisation-card.hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFFFFF;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #8B2E2E;
}


body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open>*:not(.lightbox) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 46, 46, 0.8);
    color: #FFFFFF;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox:hover .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover {
    background: #8B2E2E;
    transform: translateY(-50%) scale(1.1);
}


.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

/* Section Erreur */
.error-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, #F7F5F2 0%, #ECE9E4 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 46, 46, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 10s infinite ease-in-out;
}

.error-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.error-content {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.error-content h1 {
    font-size: 48px;
    color: #8B2E2E;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.error-content h2 {
    font-size: 80px;
    color: #6B1E1E;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1;
}

.error-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions .btn {
    margin: 0 15px;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.error-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
}

.container li {
    list-style-type: none;
}

.error-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    max-height: 400px;
    transition: all 0.4s ease;
}

.error-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Animation de la flèche */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@media screen and (max-width: 1024px) {

    /* Ajuster le logo */
    .logo {
        width: 250px;
    }

    .nav li a {
        font-size: 15px;
    }

    .dropdown-toggle {
        font-size: 15px;
    }

    .dropdown-menu li a {
        font-size: 13px;
    }

    .devis-btn {
        font-size: 13px;
        padding: 12px 12px;
    }

    .nav li {
        padding: 15px 20px;
    }
}

/* Media Query pour mobile */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 5px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 70%;
    }

    .logo {
        font-size: 22px;
    }

    #menu-bar {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translateY(-20px);
        width: 250px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: #c68989;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 20px;
        z-index: 1000;
    }

    .nav.change {
        opacity: 1;
        transform: translate(-50%, -50%);
        /* Centre exact sans décalage supplémentaire */
        pointer-events: all;
        z-index: -1;
    }

    .nav ul {
        display: block;
        text-align: center;
        background: none;
    }

    .nav li {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .devis-btn {
        display: inline-block;
        width: auto;
        padding: 10px 20px;
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background: none;
        width: 100%;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav.change .dropdown .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 80px 20px 40px;
        text-align: center;
        
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 36px;
        -webkit-text-stroke: white;
    }

    .hero h1 strong {
        font-weight: 800;
        font-size: 40px;
    }

    .hero h2 {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .btn {
        max-width: 300px;
        margin: 0 auto;
    }

    .description {
        padding: 60px 20px;
    }

    .description h3 {
        font-size: 26px;
    }

    .description ul {
        text-align: center;
    }

    .examples {
        padding: 60px 20px;
    }

    .examples h3 {
        font-size: 26px;
    }

    .cta {
        padding: 40px 20px;
    }

    .cta h3 {
        font-size: 22px;
    }

    .recent-projects h3 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .projects-grid {
        gap: 30px;
    }

    .project-image {
        height: 220px;
    }

    .project-card:hover .project-image img {
        transform: scale(1.05);
        filter: blur(3px);
    }

    .project-overlay .see-more {
        font-size: 16px;
        padding: 10px 20px;
    }

    .services-preview,
    .recent-projects {
        padding: 60px 20px;
    }

    .services-preview {
        padding: 60px 20px;
    }

    .services-preview h3 {
        font-size: 32px;
        margin-bottom: 50px;
    }

    .services-grid {
        gap: 30px;
    }

    .service-card {
        border-radius: 2px;
    }

    .service-image {
        height: 200px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h4 {
        font-size: 22px;
    }

    .image-overlay .overlay-text {
        font-size: 24px;
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.05);
    }

    .service-content .btn-fantasy {
        padding: 10px 20px;
        font-size: 14px;
    }

    .map-container {
        height: 300px;
    }

    .contact-content {
        flex-direction: column;
        padding: 40px 20px;
    }

    .contact-info-column,
    .contact-form-column {
        margin: 0 0 20px;
        padding: 20px;
    }

    .contact-info-column h3,
    .contact-form-column h3 {
        font-size: 24px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 0;
    }

    .form-group textarea {
        height: 100px;
    }

    .contact-form button {
        padding: 12px 30px;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-text {
        text-align: center;
        padding: 0;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image {
        padding: 15px;
    }

    .about-image img {
        max-height: 300px;
        border-radius: 4px;
    }

    .about-image::before,
    .about-image::after {
        width: 40px;
        height: 40px;
    }

    .about-image:hover::before {
        width: calc(100% + 2px);
        height: calc(100% + 2px);
    }

    .about-image:hover::after {
        width: calc(100% + 2px);
        height: calc(100% + 2px);
    }

    .about-image:hover img {
        transform: scale(1.01);
    }

    .scroll-to-top, .scroll-down-arrow {
        display: none;
    }

    .realisations-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
        margin: 5px;
    }

    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .realisation-card img {
        height: 200px;
    }

    .realisation-card .overlay h3 {
        font-size: 18px;
    }

    .realisation-card .overlay p {
        font-size: 14px;
    }

    .error-section {
        padding: 60px 20px;
    }

    .error-container {
        flex-direction: column;
        gap: 30px;
    }

    .error-content h1 {
        font-size: 36px;
    }

    .error-content h2 {
        font-size: 60px;
    }

    .error-content p {
        font-size: 16px;
    }

    .error-actions .btn {
        margin: 10px 0;
        padding: 10px 20px;
        font-size: 14px;
    }

    .error-image {
        padding: 0;
    }

    .error-image img {
        max-height: 300px;
    }

    footer {
        padding: 40px 20px 20px;
    }

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

    .contact-info h4,
    .social-links h4,
    .legal-links h4 {
        font-size: 20px;
    }

    .contact-info h4::after,
    .social-links h4::after,
    .legal-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info p {
        font-size: 14px;
        justify-content: center;
    }

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

    .social-links a,
    .legal-links a {
        font-size: 14px;
    }

    .legal-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .copyright {
        font-size: 12px;
    }
}

