:root {
    --primary-color: #8b5a2b;
    /* Wood color */
    --secondary-color: #2c3e50;
    /* Dark premium blue/grey */
    --text-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.4);
    --hover-overlay: rgba(0, 0, 0, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
    --transition-speed: 0.6s;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: var(--font-main);
    color: #333;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: background 0.3s;
}

.navbar .nav-logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
}

/* --- SPLIT SCREEN (INDEX) --- */
body.home {
    overflow: hidden;
}

.split-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #333;
}

.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width var(--transition-speed) ease-in-out;
}

.split.left {
    left: 0;
    background: url('../images/accueil_construction.webp') center center no-repeat;
    background-size: cover;
}

.split.right {
    right: 0;
    background: url('../images/accueil_menuiserie.webp') center center no-repeat;
    background-size: cover;
}

.split.left::before,
.split.right::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    transition: background-color var(--transition-speed);
}

.hover-left .left {
    width: 75%;
}

.hover-left .right {
    width: 25%;
}

.hover-right .right {
    width: 75%;
}

.hover-right .left {
    width: 25%;
}

.split.left:hover::before,
.split.right:hover::before {
    background-color: var(--hover-overlay);
}

/* Logo placement on Index */
.logo {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 150px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
    white-space: nowrap;
    z-index: 10;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--text-color);
    color: #000;
}

/* --- INNER PAGES --- */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-top: 0;
}

.page-header .header-content p {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    /* Large and elegant */
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
    /* In case it was UPPERCASE */
}

/* Utility Class */
.font-script {
    font-family: 'Pinyon Script', cursive;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.header-content {
    position: relative;
    z-index: 1;
}

.container-content {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* --- CATEGORY GRID (Menuiserie) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.category-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- CONTACT --- */
/* --- CONTACT (Footer Minimaliste) --- */
.contact-section {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.contact-section h2 {
    display: none;
    /* Hide heading by default, will remove from HTML later */
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin: 0;
}

.contact-info p {
    margin: 0;
}

.contact-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-section a:hover {
    color: var(--primary-color);
}

.legal-footer {
    background-color: #111;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.legal-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-footer a:hover {
    color: #fff;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        min-height: calc(100vh - var(--nav-height));
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .split {
        width: 100%;
        height: 50%;
    }

    .split.left {
        top: 0;
    }

    .split.right {
        top: 50%;
    }

    .hover-left .left,
    .hover-left .right,
    .hover-right .left,
    .hover-right .right {
        width: 100%;
        height: 50%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .sub-navbar {
        justify-content: flex-start;
        padding: 0 1rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav-links {
        gap: 1.5rem;
        padding-right: 1rem;
    }
}

/* --- SUB NAVBAR (Menuiserie) --- */
.sub-navbar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: top 0.3s;
}

.sub-nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.sub-nav-links li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.sub-nav-links li a:hover,
.sub-nav-links li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- SOCIETE PAGE STYLES --- */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.split-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.key-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
    border-radius: 4px;
}

.figure-item h3 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.figure-item p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .split-section {
        flex-direction: column !important;
        gap: 2rem;
    }

    .key-figures {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- CONTACT PAGE STYLES (Clean & Light) --- */
.contact-container {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header Specific for Contact */
.page-header-contact {
    height: 50vh;
    min-height: 400px;
    background-image: url('../images/contact_header.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: -5rem;
}

.page-header-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.page-header-contact .header-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.page-header-contact h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.page-header-contact p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Main Split Layout */
.contact-split {
    display: flex;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Ombre légère */
}

.contact-form-wrapper {
    flex: 3;
    padding: 4rem;
    background: white;
}

.contact-info-wrapper {
    flex: 2;
    background: #fdfbf7;
    /* Fond clair */
    color: #333;
    /* Texte sombre */
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
}

/* Suppression des décorations dorées/sombres */
.contact-info-wrapper::before {
    display: none;
}

.info-block {
    margin-bottom: 2.5rem;
    padding-left: 0;
    border-left: none;
}

.info-block h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-block p {
    font-family: var(--font-main);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    font-style: normal;
}

.info-block a {
    color: #333;
    text-decoration: underline;
    transition: color 0.3s;
}

.info-block a:hover {
    color: var(--primary-color);
}

/* Form Styling (Clean) */
.form-group-elegant {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group-elegant input,
.form-group-elegant textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 12px 0;
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: #333;
    background: transparent;
    transition: border-color 0.3s;
}

.form-group-elegant input:focus,
.form-group-elegant textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group-elegant label {
    position: absolute;
    top: 12px;
    left: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-group-elegant input:focus~label,
.form-group-elegant input:not(:placeholder-shown)~label,
.form-group-elegant textarea:focus~label,
.form-group-elegant textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-luxury {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-main);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn-luxury:hover {
    background-color: var(--secondary-color);
}

/* Map adjustments */
.map-section {
    width: 100%;
    height: 450px;
    background: #eee;
    margin-top: 0;
    /* Pas d'overlap */
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .contact-container {
        padding: 4rem 1rem;
    }

    .contact-split {
        flex-direction: column-reverse;
    }

    .contact-info-wrapper {
        border-left: none;
        border-top: 1px solid #eee;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* --- CTA SECTION (NEW) --- */
.cta-section {
    background-color: #1a1a1a;
    /* Dark background */
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    margin-top: 4rem;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.cta-section .btn-cta {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.cta-section .btn-cta:hover {
    background-color: white;
    color: #1a1a1a;
}

/* --- TEXT HIGHLIGHT (NEW) --- */
.section-highlight {
    font-family: 'Pinyon Script', cursive;
    /* Police Atypique */
    font-size: 3.5rem;
    /* Beaucoup plus grand pour du script */
    color: var(--primary-color);
    text-align: center;
    line-height: 1.2;
    margin: 3rem auto;
    max-width: 1000px;
    font-weight: 400;
    padding: 0 1rem;
}

.section-highlight .subtitle-highlight {
    display: block;
    font-family: var(--font-main);
    /* On garde une police lisible pour le sous-titre pour le contraste */
    font-size: 1.1rem;
    color: #555;
    margin-top: 1.5rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 3px;
}
/* --- FOOTER (Avis Page) --- */
footer {
    background-color: #111;
    color: #fff;
    padding: 6rem 2rem 2rem;
    font-family: var(--font-main);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-links h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-contact p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

